Author Topic: advforecast2.php issue  (Read 5090 times)

0 Members and 1 Guest are viewing this topic.

Offline daybreak

  • Senior Member
  • **
  • Posts: 96
    • Alma Weather
advforecast2.php issue
« on: August 15, 2018, 11:04:32 AM »
I noticed this on my page this morning.  http://www.daybreakimagery.com/weather/forecast.php Did something change or is it temporary?

Thanks,

Richard

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php issue
« Reply #1 on: August 15, 2018, 11:36:07 AM »
I noticed this on my page this morning.  http://www.daybreakimagery.com/weather/forecast.php Did something change or is it temporary?

Thanks,

Richard
That message
Quote
The detailed point forecast weather data is not currently available.
The zone forecast data for ILZ070 (Marion) will be displayed
until the point forecast data is again available.
If this persists, contact the NWS St. Louis/St. Charles, MO WFO
at 636-441-8467 or email at w-lsx.webmaster@noaa.gov
to have them update the point forecast for /gridpoints/LSX/139,79 on api.weather.gov
happens if there is a point forecast issue for your specific area.  Give it a few hours, and if it persists, call the WFO and alert them to the issue.
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 daybreak

  • Senior Member
  • **
  • Posts: 96
    • Alma Weather
Re: advforecast2.php issue
« Reply #2 on: August 15, 2018, 11:43:52 AM »
Ok thanks Ken!

Richard

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: advforecast2.php issue
« Reply #3 on: August 15, 2018, 12:13:09 PM »
Same issue here and in HI, CA, and NB. Haven't seen that message in a long time. Maybe not localized?
« Last Edit: August 15, 2018, 12:18:55 PM by jgillett »
John
W7JKG

Offline ctccbc

  • Senior Contributor
  • ****
  • Posts: 276
  • Acurite 01035, Weather Display
    • Chris Collins Morehead City, NC Weather
Re: advforecast2.php issue
« Reply #4 on: August 15, 2018, 12:20:00 PM »
I think it is a national issue, I'm having it to.  Usually they clear up in a few hours, unless Ken has to make a change to the code.

Chris

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: advforecast2.php issue
« Reply #5 on: August 15, 2018, 12:21:35 PM »
It's only an issue with the JSON/API code (v5.09).  The old code is returning the point forecast.  So... they must be mucking with it.  (remember that the API is still in BETA).
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php issue
« Reply #6 on: August 15, 2018, 12:24:47 PM »
Looking at the view-source of the page, I see
Quote
<!-- point forecast more than 18hrs old (age h:m:s is 24:38:36) .. use Zone forecast instead -->
and that's why the Zone is shown instead.

They're a bit behind in the ingress of gridpoint data to the api.weather.gov service .. usually, that happens every 8 hours or so.
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 daybreak

  • Senior Member
  • **
  • Posts: 96
    • Alma Weather
Re: advforecast2.php issue
« Reply #7 on: August 15, 2018, 02:00:53 PM »
My forecast is back to normal.

Richard

Offline daybreak

  • Senior Member
  • **
  • Posts: 96
    • Alma Weather
Re: advforecast2.php issue
« Reply #8 on: August 22, 2018, 06:45:18 AM »
My forecast page http://www.daybreakimagery.com/weather/forecast.php has been giving issues now for at least 18 hours again.  I don't know if they changed something?  When I look at my printable forecast on the NWS page it looks fine.  I've noticed others are having issues also.

Richard

Offline UpstateWeather.com

  • Signature
  • Contributor
  • ***
  • Posts: 146
    • Upstate Weather
Re: advforecast2.php issue
« Reply #9 on: August 22, 2018, 09:02:02 AM »
My forecast page http://www.daybreakimagery.com/weather/forecast.php has been giving issues now for at least 18 hours again.  I don't know if they changed something?  When I look at my printable forecast on the NWS page it looks fine.  I've noticed others are having issues also.

Richard

I'm having the same problem. It was fine yesterday oddly enough, but today's same error.

Offline Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1485
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: advforecast2.php issue
« Reply #10 on: August 22, 2018, 09:08:11 AM »
Yup.  Things are slightly askew for me this morning...

ForecastProblem_08222018 by Intheswamp, on Flickr

Davis VP2, v3.12
Cumulus v1.9.4  Build 1079
Today's weather beats no weather at all!
www.beeweather.com
www.beausandbonnets.com

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: advforecast2.php issue
« Reply #11 on: August 22, 2018, 10:03:33 AM »
Yes mine as well this morning, the last forecast was from yesterday.

CW3699

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: advforecast2.php issue
« Reply #12 on: August 22, 2018, 10:59:02 AM »
No forecast here since 8-20 @ 8:46PM

Offline tshattuck

  • Forecaster
  • *****
  • Posts: 337
    • Your Local Weather - Clay, NY
Re: advforecast2.php issue
« Reply #13 on: August 22, 2018, 11:13:01 AM »
Mine is down also.

It would be nice if we could have a similar but abbreviated error message appear on our Index/Main page of our websites with the forecast icons at the bottom of the page.

My Point Forecast was working yesterday so I don't know why the zone forecast displayed is from August 15th. The Zone forecast on my Index page is not even close to being correct.

 [ You are not allowed to view attachments ]
« Last Edit: August 22, 2018, 11:29:55 AM by tshattuck »

Offline dasman

  • Forecaster
  • *****
  • Posts: 491
    • Wx Peotone
Re: advforecast2.php issue
« Reply #14 on: August 22, 2018, 02:23:15 PM »
I just tried ?force=1 and my forecast has finally updated.
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1485
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: advforecast2.php issue
« Reply #15 on: August 23, 2018, 12:20:52 AM »
Just got home and checked BeeWeather and the forecasts are working again!!!  =D&gt;

Davis VP2, v3.12
Cumulus v1.9.4  Build 1079
Today's weather beats no weather at all!
www.beeweather.com
www.beausandbonnets.com

Offline tshattuck

  • Forecaster
  • *****
  • Posts: 337
    • Your Local Weather - Clay, NY
Re: advforecast2.php issue
« Reply #16 on: August 23, 2018, 02:49:32 PM »
Mine is also working again.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2.php issue
« Reply #17 on: September 20, 2018, 04:45:20 PM »
Something new here for my point forecast this afternoon:  it's unavailable via advforecast2.php, as is a current zone forecast.

Yet this shows up when I go to OAX and click on my location.

Is there a new wrinkle here?

Edit 3:40 PM CDT 2018 Sept 20:  The advforecast2.php is now returning a more complete forecast, but yesterday's icons are still present.  Apparently the NWS is fiddling with these forecasts, and we have as yet to see the final results.  I think nothing is warranted at this point except sitting tight.
« Last Edit: September 20, 2018, 04:52:43 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2.php issue
« Reply #18 on: September 21, 2018, 09:39:32 AM »
My advforecast2.php still gives me an old zone forecast, and the same is true for all of the OAX forecasts listed under my NWS Forecasts.  Yet my point forecast displays on the NWS/OAX site.

I'm not sure what's going on here.  Any thoughts?
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php issue
« Reply #19 on: September 21, 2018, 10:45:46 AM »
There's a bit of apples:oranges here.  The website is using the V5 JSON forecast, and the point-forecast link you cited is for the 'old' (not V3) forecast, which seems to work.  Doing a view-source on your page with ?force=1 shows
Quote
<!-- advforecast2.php (JSON) - V5.09 - 26-May-2018 on PHP 5.4.19-->
<!-- RAW NWS URL: https://forecast.weather.gov/MapClick.php?CityName=Lincoln&state=NE&site=OAX&textField1=40.8164&textField2=-96.6882&e=0&TextType=2 -->
<!-- zone=NEZ066 -->
<!-- loaded URLcache from ./cache/forecast-URLcache.txt with 3 entries -->
<!-- corrected NWS API URL='https://api.weather.gov/points/40.8164,-96.6882/forecast' -->
<!-- replaced point URL with gridpoint URL from URLcache -->
<!-- curl fetching 'https://api.weather.gov/gridpoints/OAX/56,39/forecast' -->
<!-- HTTP stats:  RC=200 dest=23.45.184.117
      Times: dns=0.000 conn=0.010 pxfer=0.056 get=0.251 total=0.307 secs -->
<!-- loaded point-forecast https://api.weather.gov/points/40.8164,-96.6882/forecast - 10364 bytes -->
<!-- wrote cache file ./cache/forecast-NEZ066-0-json.txt -->
<!-- point forecast more than 18hrs old (age h:m:s is 63:37:11) .. use Zone forecast instead -->
<!-- curl fetching 'https://api.weather.gov/zones/JSON-LD/NEZ066/forecast' -->
<!-- HTTP stats:  RC=200 dest=23.45.184.117
      Times: dns=0.000 conn=0.010 pxfer=0.056 get=0.011 total=0.067 secs -->
<!-- loaded (Zone forecast) https://api.weather.gov/zones/JSON-LD/NEZ066/forecast - 4104 bytes -->
<!-- wrote cache file ./cache/forecast-NEZ066-0-json.txt -->
<!-- meta info re: point='40.8164,-96.6882' zone='NEZ066' metacache= './cache/forecast-NEZ066-0-json-meta.txt' -->
<!-- metaZoneURL='https://api.weather.gov/zones/forecast/NEZ066' -->
<!-- loaded meta info from ./cache/forecast-NEZ066-0-json-meta.txt -->
<!-- META
Array
(
    [city] => Lincoln
    [state] => NE
    [point] => 40.8164,-96.6882
    [forecastOfficeURL] => https://api.weather.gov/offices/OAX
    [forecastZoneURL] => https://api.weather.gov/zones/forecast/NEZ066
    [forecastZone] => NEZ066
    [forecastHourlyURL] => https://api.weather.gov/points/40.8164,-96.6882/forecast/hourly
    [forecastGridDataURL] => https://api.weather.gov/gridpoints/OAX/56,39
    [observationStationsURL] => https://api.weather.gov/points/40.8164,-96.6882/stations
    [countyZoneURL] => https://api.weather.gov/zones/county/NEC109
    [countyZone] => NEC109
    [fireWeatherZoneURL] => https://api.weather.gov/zones/fire/NEZ066
    [fireWeatherZone] => NEZ066
    [timeZone] => America/Chicago
    [radarStation] => KOAX
    [zoneName] => Lancaster
    [WFOname] => Omaha/Valley, NE
    [WFOphone] => 402-359-5166
    [WFOemail] => w-oax.webmaster@noaa.gov
)
 -->
<!-- ZONE forecast processing -->
which shows the issue is an old gridpoint forecast (more than 18 hrs) using the JSON API, so the script loads the Zone forecast instead.  For some reason, the NWS is not refreshing the gridpoint forecast with current data -- should be no more than 8 hours old.  It's an NWS issue with the api.weather.gov server.
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 gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2.php issue
« Reply #20 on: September 21, 2018, 11:28:22 AM »
Thanks for the educational and informative reply, as always, Ken!  I'll send an email to the zone forecast's nws address to see if something can be done about it.

I'll correct the 'Special Message' on my website.
« Last Edit: September 21, 2018, 11:31:30 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php issue
« Reply #21 on: September 21, 2018, 07:03:23 PM »
I'd suggest you revert to the advforecast2.php V4.05 for the time being.  I've set up my testing site to use your Lincoln, NE URL so I can look too. 

I notice that the https://forecast-V3.weather.gov/ site (API driven) is going very slowly now, and sometimes failing (with 500-Server Error) on point forecast requests.  Glad that site is not production yet... :roll:
« Last Edit: September 21, 2018, 07:04:58 PM by saratogaWX »
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 gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2.php issue
« Reply #22 on: September 21, 2018, 07:44:59 PM »
Thanks, Ken, for ferreting out the problem and suggesting the solution!  I've reverted to the smaller icons with v4.05 by modifying advforecast2.php (v4.05), DualImage.php, and Settings.php.

It works (somewhat in that I only have a single row of icons right now): https://www.gwwilkins.org/wxforecast.php

« Last Edit: September 21, 2018, 07:48:35 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php issue
« Reply #23 on: September 22, 2018, 12:09:02 AM »
The 4.x version of the script only does 1 row.. the 5.x version does two rows because more icons were available :)

Glad you've bypassed the issues with the NWS V3 forecast beta for now...
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 gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2.php issue
« Reply #24 on: September 22, 2018, 09:36:11 AM »
Aha!  I had forgotten about the single row in V4.xx.

Interestingly, 'check-fetch-times.php' now correctly prompts me to update my advforecast2.php to v5.09.  :-)  The link you provided, https://forecast-v3.weather.gov/, allows me to check on the current status of my OAX pre-production point forecasts.  They're still unavailable as of today. :-(
Regards, Jerry Wilkins
gwwilk@gmail.com

 

anything