As discussed in multiple topics (f.i. webcam 2 ** Solved **) it is sometimes impossible to get a snapshot from a camera with a valid https-url.
I wrote a smal script, I could not find the previous topic where a similar script was posted.
Put it in your pwsWD/_my_settings/ folder .
Modify the line 8 from
$image_url_sml = 'http://xxxxxxx:[email protected]:9999/auto.jpg';
to the exact link to your webcam snapshot.
Do not use the local-lan link such as http://192.168.xxx.yyy
This link is accessed from your webserver which is on the internet (normally) so you need the external link, which is passing through your router to the webcam.
The script will load the image from your camera and cache it.
In normal cases the same image can be used in the block-background as in the pop-up.
But to cater to all situations, you can have the script download two images (with a different size ?) .
The larger image link is set at line 12.
Easyweathersettings:
Tab => Devices
==> question Your weather-cams
====> Specify the link to your webcam image set to: _my_settings/imgcurl.php
If you use the second image, the link would be _my_settings/imgcurl.php?large
Support:
This is a private script, so there is no way to see the source.
If posting questions about it, make a copy and rename it to problem.txt
Please test carefully.
Wim
P.S. there is a similar script ( _redirect.php) to download but it does not cache the image.
http://discourse.weather-watch.com/p/547908
Edit 2021-02-14 new version to suppress the url in error messages
imgcurl.php.zip (1.97 KB)