silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.53k stars 493 forks source link

Installing new instance shows "Index of /" and the actual html rather than the index.html straight away. #306

Open thomasgatt opened 7 years ago

thomasgatt commented 7 years ago

I installed a new instance of RPI_Cam on an RPI 3 and RPI Model B and noticed that when loading up the page in the browser I get to see the actual Index of / page rather than the index.html file directly. Then, I re-installed but this time chose not to select the 'html' subfolder. This worked fine in terms of getting the index.html page directly however now I'm having issues with the camera starting automatically. I would need to start the camera directly myself through cli.

I also noticed that I cannot change Annotation text through the settings on the webpage. This happened when I removed the subfolder from the setup - maybe it's a device issue?

Also noticed that when I select apache security during installed this gets ignored and I have to reset it in the configure menu.

I hope I have submitted enough information. If not, please do not hesitate to contact me back.

Thanks in advance for your time and dedication on this project!

roberttidey commented 7 years ago

The installer puts the code in whatever subfolder is defined (e.g. none or html). The web url to access the camera interface is http://ipaddress if no subfolder is used or http://ipaddress/subfolder if a subfolder is used (e.g. http://ipaddress/html).

This is done deliberately so that the web server may be used for other webfunctions. So for example if a gpio control program was used it could be at http://ipaddress/gpio. The same effect could have been achieved by using different port addresses under ipaddress for the different functions but this was not popular when we tried this.

Annotation changing definitely works even when no subfolder is used. Check the uconfig file in the web install folder, It should contain any new settings that are made so you should see the annotation change made there.

I'd also need other info on the start up and security issues as these also definitely work by default. FOr start up to be automatic you must select that option during an install. If you check the /etc/rc.local file then you should see a START RASPIMJPEG SECTION with the code that starts raspimjpeg and the scheduler.

It sounds like you might be using the RPi_Cam_Web_Interface_Installer.sh method rather than the new install.sh method. If so then please the install.sh method. The other is the original installer method which is just left in for compatibility.