Wim,
Is there a way to set the script so it looks at http: AND https: so when a change is made by another site, it will automatically redirect?
Sent from my SM-G935R4 using Tapatalk
Yes you can set a CURL-option "allow redirect" and when using http it will also accept the data when the site itself redirects to another site with https.
BUT as this is a major security risk, a lot of webhosting companies do not allow that and the script will fail there with a security error.
AND redirects do not remain permanently available. So after some months, maybe a few years, the script needs to be adapted anyway.
When there is a problem with a forecast script being unavailable, there are multiple other forecast scripts available and only one setting needs to be changed for that.
Another minor problem, the icons
http://forecast.weather.gov/newimages/medium/sct.pngThey are not available yet on https, or at least I can not locate them.
The big problem will be the warnings. But that is for later this month.
Wim