Is there any way that this block can detect if the image isn't available and not show?
My WebCam has a nasty habit of going off line every once in a while, and the images uploaded by my cron job are 0 bytes long. When this block attempts to show the timelapse any block below it on the pages jumps!
See http://sanfordweather.com on the left side down about half way!
Bill
webcamTimelapse
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: webcamTimelapse
Hi,
the problem is that the image is updated in realtime. So this could theoretically work, but it would have to be checked by the block upon loading.
What I mean is, there could be the following two problematic situations:
- image available when homepage is loaded, when it is supposed to be update, it no longer is -> in such case it would show broken image
- image N/A and becomes later available - update would not be performed at all because the block upon loading will check and label the image as N/A and not even try to update it - it wont exist
the problem is that the image is updated in realtime. So this could theoretically work, but it would have to be checked by the block upon loading.
What I mean is, there could be the following two problematic situations:
- image available when homepage is loaded, when it is supposed to be update, it no longer is -> in such case it would show broken image
- image N/A and becomes later available - update would not be performed at all because the block upon loading will check and label the image as N/A and not even try to update it - it wont exist
-
BlueBear
- Forecaster

- Posts: 101
- Joined: Sun Aug 20, 2017 1:04 pm
- Location: Sanford, Manitoba, Canada
- Station model: Davis VP2
- Software: WeeWx
- Contact:
Re: webcamTimelapse
I'll have to go back and try and handle the situation in the script that does the upload, tried once before unsuccessfully!
I'm sure it can be done.
Bill
I'm sure it can be done.
Bill