Another Mystery Unfolds
I had pretty much given up on this effort, but when logwatch resurrected itself and sent another email, I found myself with recharged enthusiasm. So, I decided to set up and test the two scripts that grab an image from a USB webcam, badge it and upload to a web host and that assemble 24 hours worth of images into a time-lapse video and upload that video to the same web host.
I'm doing all this on a newly purchased Pi. I also purchased a cheap USB camera for testing purposes.
I use fswebcam to grab images from the camera. One line of the fswebcam configuration file is this:
To test the script I just ran it from the command line (it's normally a systemd service/timer) and checked the webcam.jpg file to see if an image was grabbed.
To my complete surprise that file contained not an image from the new cheap-cam, but an image taken over four years ago from a camera that is now in a different location and pointed in a different direction.
How is this possible? It must have come from somewhere, but where?
I did copy the webcam directory from the currently deployed Pi. But that particularly file is overwritten by fswebcam every two minutes 24/7. So, it had to have been overwritten at least a million times since that image was taken.
So, where did it come from? We'll never know.
Just another rabbit hole in the Bookworm journey.
I had pretty much given up on this effort, but when logwatch resurrected itself and sent another email, I found myself with recharged enthusiasm. So, I decided to set up and test the two scripts that grab an image from a USB webcam, badge it and upload to a web host and that assemble 24 hours worth of images into a time-lapse video and upload that video to the same web host.
I'm doing all this on a newly purchased Pi. I also purchased a cheap USB camera for testing purposes.
I use fswebcam to grab images from the camera. One line of the fswebcam configuration file is this:
Code:
save /home/pi/webcam/webcam.jpg
To my complete surprise that file contained not an image from the new cheap-cam, but an image taken over four years ago from a camera that is now in a different location and pointed in a different direction.
How is this possible? It must have come from somewhere, but where?
I did copy the webcam directory from the currently deployed Pi. But that particularly file is overwritten by fswebcam every two minutes 24/7. So, it had to have been overwritten at least a million times since that image was taken.
So, where did it come from? We'll never know.
Just another rabbit hole in the Bookworm journey.
Statistics: Posted by Ratsima — Mon Nov 11, 2024 5:02 am