Jasiu -
I was thinking of doing the same thing for the exact reasons that happened today. Can you share how you have yours setup?
I already have my alerts setup as a cron job.
I checked my fetch times - What I don't understand is where it is getting the
https://api.weather.gov/points/43.8728,-85.4089/forecast URL from - the first line in my settings.php for $SITE['NWSforecasts'] is:
"MIZ039|Hersey|https://forecast.weather.gov/MapClick.php?lat=43.8728&lon=-85.4089#.XfwoXGRKjI",
So it fails over - which also takes some time...
This script will check the load times and the ability to save cache files for the included support scripts with your template package.
Included Settings.php time=0.003 secs.
Using lang=en as default for testing
--checking NWS Forecast URL --
Using first entry in Settings.php $SITE['NWSforecasts'] for test.
URL:
https://api.weather.gov/points/43.8728,-85.4089/forecastCache: ./cache/forecast-MIZ039-test-json.txt
curl fetching '
https://api.weather.gov/points/43.8728,-85.4089/forecast'
curl Error: Operation timed out after 3676 milliseconds with 0 bytes received
note: fetched '
https://api.weather.gov/gridpoints/GRR/46,89/forecast' after redirect was followed.
HTTP stats: RC=301 dest=23.11.216.18 port=443 (from sce=74.208.57.165)
Times: dns=0.000 conn=0.000 pxfer=0.000 get=3.456 total=3.456 secs
headers returned:
RC=, bytes=4
------------
Headers returned:
------------
Skipped cache write test to ./cache/forecast-MIZ039-test-json.txt file.
Test was NOT successful.
--end NWS Forecast URL check --
--checking NWS Warning Zone ATOM/CAP Feed --
Using Settings.php $SITE['noaazone'] entry for test.
URL:
https://alerts.weather.gov/cap/wwaatmget.php?x=MIZ039Cache: ./cache/atom-advisory-MIZ039.txt
curl fetching '
https://alerts.weather.gov/cap/wwaatmget.php?x=MIZ039'
HTTP stats: RC=200 dest=23.11.216.18 port=443 (from sce=74.208.57.165)
Times: dns=0.004 conn=0.016 pxfer=0.045 get=0.269 total=0.314 secs
RC=200, bytes=2050
Wrote 2050 bytes to ./cache/atom-advisory-MIZ039.txt successfully.
Test was SUCCESSFUL.
--end NWS Warning Zone ATOM/CAP Feed check --
--checking UV Forecast from temis.nl --
Using Settings.php $SITE['UVscript'] entry for test.
URL:
http://www.temis.nl/uvradiation/nrt/uvindex.php?lon=-85.4105&lat=43.8225Cache: ./cache/uv-forecast.txt
curl fetching '
http://www.temis.nl/uvradiation/nrt/uvindex.php?lon=-85.4105&lat=43.8225'
HTTP stats: RC=200 dest=145.23.254.72 port=80 (from sce=74.208.57.165)
Times: dns=0.004 conn=0.107 pxfer=0.107 get=1.053 total=1.160 secs
RC=200, bytes=6381
Wrote 6381 bytes to ./cache/uv-forecast.txt successfully.
Test was SUCCESSFUL.
--end UV Forecast from temis.nl check --
Total time taken = 0.003 secs.
Elapsed 5 seconds.
PHP Version 7.3.12
Memory post_max_size 64M bytes.
Memory usage 972080 bytes.
Memory peak usage 1144296 bytes.
Thanks!