Author Topic: More NWS forecast script issues.  (Read 290 times)

0 Members and 1 Guest are viewing this topic.

Offline dasman

  • Forecaster
  • *****
  • Posts: 421
    • Wx Peotone
More NWS forecast script issues.
« on: February 07, 2018, 05:48:48 PM »
My NWS forecast script has been going haywire all day. 1st it was "stale" data from a few days ago. Then it was the zone forecast (again from a few days ago. Now i get nothing! You can view it on my main page ar www.peotoneweather.com and at http://peotoneweather.com/nwsforecast.php
 I know that it usually means there are national weather service issues with their server, however I checked a couple other personal weather stations near me and their point forecasts seemed to be working.
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6387
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: More NWS forecast script issues.
« Reply #1 on: February 07, 2018, 06:01:47 PM »
It does seem that the api.weather.gov contents go flakey and stale (Zone forecasts) more frequently now.

Revert to advforecast2.php V4.02 here if you like (and still have the mapclick point-printable forecast URLs in your Settings.php).  That venerable script scrapes the production forecast.weather.gov site and does not use the API.. it also uses different cache names and so is compatible with the newer 5.02 JSON script.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline dasman

  • Forecaster
  • *****
  • Posts: 421
    • Wx Peotone
Re: More NWS forecast script issues.
« Reply #2 on: February 07, 2018, 06:11:11 PM »
Thanks Ken. When I get home from work tonight I will switch the script back.
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline dasman

  • Forecaster
  • *****
  • Posts: 421
    • Wx Peotone
Re: More NWS forecast script issues.
« Reply #3 on: February 07, 2018, 10:51:23 PM »
I have changed to the older version of the script. The zone forecast is showing. However I'm still showing 2 errors on my main page..
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline dasman

  • Forecaster
  • *****
  • Posts: 421
    • Wx Peotone
Re: More NWS forecast script issues.
« Reply #4 on: February 08, 2018, 12:00:18 AM »
For now I have turned error reporting off to get rid of the mess!
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6387
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: More NWS forecast script issues.
« Reply #5 on: February 08, 2018, 11:48:55 AM »
It may be the coding on your index.php page.. the V4.02 script returns fewer icons (like the current weather.gov site) than the API returned with the 5.02 script.  If you hard-coded it for 10 icons, you should change it to use a upper limit of count($forecasticons)-1 instead.
« Last Edit: February 08, 2018, 12:18:38 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline dasman

  • Forecaster
  • *****
  • Posts: 421
    • Wx Peotone
Re: More NWS forecast script issues.
« Reply #6 on: February 08, 2018, 12:15:30 PM »
Thanks Ken!
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 597
  • BismarckWeather.net
    • BismarckWeather.net
Re: More NWS forecast script issues.
« Reply #7 on: February 08, 2018, 02:49:31 PM »
When all the others were reporting issues about a month ago, my site was fine.  Starting yesterday afternoon, I started getting the approx signs and less than signs with temps.  It also resorted to Zone casts by end of day.

I flipped back to V4 this morning.   I'll have to manually load the V5 page off/on and see if they get it fixed again.
http://www.BismarckWeather.net
Davis VP2, Cumulus, Blitzortung, Bloomsky, Saratoga Scripts

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6387
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: More NWS forecast script issues.
« Reply #8 on: February 08, 2018, 04:23:52 PM »
The approximate/less than/greater than signs are displayed when a Zone forecast is parsed (in both 4.02 and 5.02 scripts) -- the NWS text-only forecast is parsed for words describing the temperature range/values and conditions description, since the Zone forecast does not include icon/detailed temperature items.

With all the turmoil about stale/nonsensical forecasts available with api.weather.gov lately, it's wise to downgrade to the older script (4.02).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything