Just installed DietPi on a Pi4. Got it all set up and then added RPiCam. Install went fine, and I can access the live feed at http://[myipaddress]/rpicam. Unfortunately, any button I try to use on the web page doesn't work (like record video, record image, timelapse start, etc.) I did some googling, and found the following page:
https://elinux.org/RPi-Cam-Web-Interfac ... n.27t_work
which seems to describe my problem exactly. While the file locations from that link aren't exactly the same, the files are there, they are linked and the linked file has "READY" as it's only contents. For reference, the original file is at /run/shm/mjpeg/status_mjpeg.txt (same as the link above) and that has a symbolic link to /var/www/rpicam/status_mjpeg.txt. So far, so good. I then loaded the page in new Edge and went to developer options, and I see the stream of images loading and this status update checking every second or so. It's running a php script that's in the /var/www/rpicam folder, and it appears to be returning "last=ready".
The php script is as follows:
Code: Select all
<?php
// send content
$file_content = "";
for($i=0; $i<30; $i++) {
$file_content = file_get_contents("status_mjpeg.txt");
if($file_content != $_GET["last"]) break;
usleep(100000);
}
touch("status_mjpeg.txt");
echo $file_content;
?>
Any help is greatly appreciated.
Thanks,
Gary