Page 1 of 1

webcamTimelapse

Posted: Thu Oct 26, 2017 1:33 pm
by BlueBear
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

Re: webcamTimelapse

Posted: Thu Oct 26, 2017 2:02 pm
by Jachym
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

Re: webcamTimelapse

Posted: Fri Oct 27, 2017 4:05 pm
by BlueBear
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