Author Topic: Forecast burp?  (Read 1256 times)

0 Members and 1 Guest are viewing this topic.

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Forecast burp?
« on: August 02, 2017, 02:55:25 AM »
Attached shot taken on 1 Aug at 2345 MST. Why is "This Afternoon" forecast still showing?

Certainly not a big problem - just curious.

Thanks.
John
W7JKG

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast burp?
« Reply #1 on: August 02, 2017, 10:21:19 AM »
Looks like the api.weather.gov site had not 'pruned' the stale Afternoon forecast from the JSON feed.   The script just formats what is in the JSON feed for a point forecast (or Zone forecast).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Forecast burp?
« Reply #2 on: August 02, 2017, 12:45:51 PM »
Thanks, Ken, Definitely was NOT pointing at your script. Just one more thing NWS is messing with?
John
W7JKG

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: Forecast burp?
« Reply #3 on: August 02, 2017, 01:23:28 PM »
Yeah, they are screwing with something.  Mine was stale data this morning.  It is now showing today's date again.

My high temps are right.  But lows are coming in as 9.96921E+36 degrees F.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: Forecast burp?
« Reply #4 on: August 02, 2017, 01:24:09 PM »
Oh, and every day is now getting 4 inches of rain!  NOT.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Forecast burp?
« Reply #5 on: August 02, 2017, 05:02:22 PM »
Ken, when does "This Afternoon" go away in favor of "Tonight"? 1800?

Thanks.
John
W7JKG

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast burp?
« Reply #6 on: August 02, 2017, 05:26:58 PM »
I think it is supposed to 'expire' when it's 'endTime' is over per the JSON
Code: [Select]
    "periods": [
        {
            "number": 1,
            "name": "This Afternoon",
            "startTime": "2017-08-02T14:00:00-07:00",
            "endTime": "2017-08-02T18:00:00-07:00",
            "isDaytime": true,
            "temperature": 93,
            "temperatureUnit": "F",
            "temperatureTrend": "falling",
            "windSpeed": "9 mph",
            "windDirection": "N",
            "icon": "https://api.weather.gov/icons/land/day/tsra_hi?size=medium",
            "shortForecast": "Slight Chance T-storms",
            "detailedForecast": "A slight chance of thunderstorms after 5pm. Mostly sunny. High near 93, with temperatures falling to around 90 in the afternoon. North wind around 9 mph."
        },
I think the api.weather.gov server should remove that JSON period after the endTime and scoot up the other entries, but I've not studied it in detail and there's no docs available except for how to request the JSON itself.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Forecast burp?
« Reply #7 on: August 02, 2017, 09:30:52 PM »
Thanks, Ken. It's back to working as advertised today.
John
W7JKG

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Forecast burp?
« Reply #8 on: August 20, 2017, 11:56:03 AM »
NWS is back to messing with PSR but this time no error messages at all. At 0845 today (Sunday) it's still showing the forecast for last night. Just an observation.

Maybe the upcoming eclipse is at fault...   :roll:
John
W7JKG