1
Weather Website PHP/AJAX scripting / Re: Advforecasr2.php and ajaxdashboard.php errors suddenly show
« Last post by saratogaWX on Today at 02:58:05 PM »So, a couple of issues. First, the NOAA Forecast Zone you have is incorrect:
Second, the point forecast is not currently available, so the script tries to use the Zone forecast, but since the zone is incorrect, It just returns null data to the dashboard and wxforecast.php giving you the Undefined errata.
Do the correction to Settings.php, then run wxforecast.php?force=1 to reload the cache.. the Zone forecast should then be displayed if the point forecast isn't available.
Related: the NCEP ops site just posted
Quote
<!-- WARNING: NOAAZone='MNZ049' is not correct. Will use 'MNZ050' for this point location per NWS. -->so change all occurrences of "MNZ049" to "MNZ050" in Settings.php and upload it.
<!-- point forecastURL = 'https://api.weather.gov/gridpoints/MPX/78,102/forecast' -->
<!-- zone forecastURL = 'https://api.weather.gov/zones/forecast/MNZ050/forecast' -->
<!-- logged 'Fetch fail' to './cache/advforecast2-log-2024-04-24.txt' -->
<!-- curl fetching 'https://api.weather.gov/gridpoints/MPX/78,102/forecast' -->
<!-- HTTP stats: RC=502 dest=23.220.140.14 port=443 (from sce=192.252.154.18)
Times: dns=0.001 conn=0.020 pxfer=0.045 get=0.091 total=0.136 secs -->
Second, the point forecast is not currently available, so the script tries to use the Zone forecast, but since the zone is incorrect, It just returns null data to the dashboard and wxforecast.php giving you the Undefined errata.
Do the correction to Settings.php, then run wxforecast.php?force=1 to reload the cache.. the Zone forecast should then be displayed if the point forecast isn't available.
Related: the NCEP ops site just posted
Quote
SENIOR DUTY METEOROLOGIST NWS ALERT ADMINISTRATIVE MESSAGEso your fix (still needed) may not be available if api.weather.gov is still having issues.
NWS NCEP CENTRAL OPERATIONS COLLEGE PARK MD
1732Z WED APR 24 2024
...API.WEATHER.GOV DOWN...
Api.weather.gov is currently down. NCO is investigating.
Gerhardt/SDM/NCO/NCEP