Alert if webcam image out-of-date
Posted: Sat 03 Sep 2016 6:11 pm
Hi all,
I wonder if anyone has any suggestions on this one.
On my weather site, I have a display of my station data courtesy of Cumulus and the Saratoga PHP scripts. I also used Cumulus to upload a webcam image every 10 minutes.
It's not uncommon for something to go wrong - either the station stops collecting data, the PC locks.reboots or there's an error, which means my online data is out-of-date. I use a number of solutions to keep everything working (Cumulus Toolbox plus a PHP script that checks all's up to date. Everything works well, and I get email alerts if the weather data is out-of-date. The only thing I can't fix, is the webcam.
On occasion, the webcam capture software stops. Cumulus dutifully uploads whatever image it can find, so the website reports there's a recently-uploaded image, and the site displays an image.
Ideally, what I need is for Cumulus to spot that the image has a filestamp of >15 minutes, generate a tag, and I can detect that tag on the site.
My status page is here: http://www.sarfend.co.uk/weather/status.php - and using a site monitor, I can get an email alert if any errors appear on this page - what I can't do, is identify the age of the local jpg prior to Cumulus uploading it.
Anyone think of any clever ways around this?
Thanks,
Pete
I wonder if anyone has any suggestions on this one.
On my weather site, I have a display of my station data courtesy of Cumulus and the Saratoga PHP scripts. I also used Cumulus to upload a webcam image every 10 minutes.
It's not uncommon for something to go wrong - either the station stops collecting data, the PC locks.reboots or there's an error, which means my online data is out-of-date. I use a number of solutions to keep everything working (Cumulus Toolbox plus a PHP script that checks all's up to date. Everything works well, and I get email alerts if the weather data is out-of-date. The only thing I can't fix, is the webcam.
On occasion, the webcam capture software stops. Cumulus dutifully uploads whatever image it can find, so the website reports there's a recently-uploaded image, and the site displays an image.
Ideally, what I need is for Cumulus to spot that the image has a filestamp of >15 minutes, generate a tag, and I can detect that tag on the site.
My status page is here: http://www.sarfend.co.uk/weather/status.php - and using a site monitor, I can get an email alert if any errors appear on this page - what I can't do, is identify the age of the local jpg prior to Cumulus uploading it.
Anyone think of any clever ways around this?
Thanks,
Pete