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

0 Members and 1 Guest are viewing this topic.

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: advforecast2.php issue
« Reply #25 on: September 24, 2018, 06:18:50 PM »
hello...


my friend jerry's forecast is also going haywire since last thurs/fri...although occasionally I see the correct data on his page, as of right now the older than 18 hours data is on his forecast page...



http://www.victoriatexasweather.net/wxforecast.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2.php issue
« Reply #26 on: September 24, 2018, 06:51:27 PM »
Quote
<!-- advforecast2.php (JSON) - V5.09 - 26-May-2018 on PHP 5.6.36-->
<!-- RAW NWS URL: http://forecast.weather.gov/MapClick.php?lat=28.82420&lon=-96.9829&unit=0&lg=english&FcstType=text&TextType=2 -->
<!-- zone=TXZ234 -->
<!-- loaded URLcache from ./cache/forecast-URLcache.txt with 1 entries -->
<!-- corrected NWS API URL='https://api.weather.gov/points/28.8242,-96.9829/forecast' -->
<!-- replaced point URL with gridpoint URL from URLcache -->
<!-- curl fetching 'https://api.weather.gov/gridpoints/CRP/128,77/forecast' -->
<!-- HTTP stats:  RC=200 dest=23.194.108.143 port=443 (from sce=10.24.3.8)
      Times: dns=0.000 conn=0.032 pxfer=0.107 get=0.985 total=1.091 secs -->
<!-- loaded point-forecast https://api.weather.gov/points/28.8242,-96.9829/forecast - 11105 bytes -->
<!-- wrote cache file ./cache/forecast-TXZ234-0-json.txt -->
<!-- point forecast more than 18hrs old (age h:m:s is 122:32:41) .. use Zone forecast instead -->
Even the Zone forecast on the new script is old.  I suggest he revert to the 4.05 version 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 miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: advforecast2.php issue
« Reply #27 on: September 24, 2018, 08:03:12 PM »
Same kind of problem here with old zone-only forecasts. Other local areas are pulling today's but not for my county (Presque Isle Co, MI).

See:

http://rogerscityweather.com/wxforecast.php?z=0 Rogers City (3 days old)
http://rogerscityweather.com/wxforecast.php?z=1 Onaway (seems to be only an hour old, but still "zone")
http://rogerscityweather.com/wxforecast.php?z=2 Alpena (same story)
http://rogerscityweather.com/wxforecast.php?z=3 Cheboygan (same here)

The zone forecast for my area is old, the others are not as bad. Still no point forecast though.

I tried reverting to V4.05, and got a blank-ish screen. Forcing the update didn't help.

I guess that I will just have to wait for NWS to fix it. I'll put a notice on my page about the issue.

Greg H.



Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: advforecast2.php issue
« Reply #28 on: September 24, 2018, 08:50:33 PM »
Hey Greg, I was having same problem and did as Ken suggested - reverted to v4.05 and mine is working.
Cheboygan - https://lakehuronweather.org/wxforecast.php?z=3
Rogers City - https://lakehuronweather.org/wxforecast.php?z=18

So you did try clearing the cache right?

CW3699

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: advforecast2.php issue
« Reply #29 on: September 24, 2018, 08:51:47 PM »

I tried reverting to V4.05, and got a blank-ish screen. Forcing the update didn't help.


The likely reason for that is the format of the forecast URL ($SITE['fcsturlNWS']) in your settings file. From a view-source on your site:

Code: [Select]
<!-- RAW NWS URL: https://forecast-v3.weather.gov/point/45.4071,-83.8129 -->

If you use a URL of the "MapClick" variety, it will work with the 4.x script and the 5.x script will convert it to the "point" format; i.e., it works with both.  Example:

Code: [Select]
<!-- RAW NWS URL: https://forecast.weather.gov/MapClick.php?CityName=Lexington&state=MA&site=MTR&textField1=42.4399&textField2=-71.2405&e=1&TextType=2 -->
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 #30 on: September 24, 2018, 08:53:58 PM »
Correct.. the MapClick formatted point-printable forecast URLs are the only format that works with both old and new scripts.  The /point/ URLs only work with the V5.x script and the beta site.
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 gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: advforecast2.php issue
« Reply #31 on: September 24, 2018, 09:01:52 PM »
Thanks for help....

got victoria texas forecast working for now with the older version script trick

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: advforecast2.php issue
« Reply #32 on: September 25, 2018, 08:52:07 AM »
It looks like I needed both the V 4.05 and the Mapclick fix. It is working now.

Thanks for the suggestions.

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2.php issue
« Reply #33 on: September 25, 2018, 11:19:45 AM »
Apparently they're still working on the Point Forecasts at https://forecast-v3.weather.gov/ because I received a valid and complete Point Forecast there earlier this morning.  I tried to implement it, and failed.  Then I rechecked the site and it didn't deliver once again.  I did receive a response yesterday from the W-Oax Webmaster - NOAA Service Account <w-oax.webmaster@noaa.gov> thanking me and stating that they would look into it.  I sent a service request over the weekend when all I got was an error message and service number to send along to them.
« Last Edit: September 25, 2018, 11:21:38 AM 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 #34 on: September 26, 2018, 10:37:14 AM »
My Point Forecast is back up this morning, but for how long remains to be seen.  Here's hoping...
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: advforecast2.php issue
« Reply #35 on: September 28, 2018, 10:24:19 AM »
I have been seeing a lot of fetch calls with the new API time out for weeks now. I've let the NWS folks know, so they are aware of it. I'll poke them again...
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2.php issue
« Reply #36 on: September 28, 2018, 10:47:38 AM »
Poking the NWS can get results.  After my second email of the given service number to the address listed on https://forecast-v3.weather.gov/ following another failed attempt to retrieve a local Point Forecast there, a 'ticket' was created that was sent to 14 other noaa.gov individuals as well as myself.  Within 48 hours all of my Point Forecast problems were resolved!

Fingers crossed, it's still working as intended.
« Last Edit: September 28, 2018, 10:50:40 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Re: advforecast2.php issue
« Reply #37 on: September 28, 2018, 04:07:20 PM »
Strange, I haven't had any problems with Ver 5.09 the last 10 - 14 days that everyone's having problems with.  :? Maybe a problem with some regions and not others?

Cheers

 :grin:

MikeyM

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: advforecast2.php issue
« Reply #38 on: October 08, 2018, 06:12:50 AM »
Mine has been working, now force 1 or 2 doesn't make any difference. Forecast stuck at Sept 26...

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: advforecast2.php issue
« Reply #39 on: October 08, 2018, 07:06:05 AM »
Using the latest script mine has been down for Days!  I have contacted the local NWS Office and they replied that they are working on it.  I have reverted to the 4.05 version of the script until it is fixed.

CW3699

Offline Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1485
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: advforecast2.php issue
« Reply #40 on: October 08, 2018, 09:01:53 AM »
My point forecast has been shifted to the zone forecast.  I can't remember if I checked the forecast yesterday or not, though, so I'm not sure when the point forecast stopped.  For me it looks like the Birmingham, Mobile/Pensacola, and Tallahassee NWS offices are down...Peachtree City (Atlanta) office appear to be up and running.  The Pensacola forecast appears to be completely down.  I'll wait and see what happens...seems to correct itself...eventually.  :???:

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 DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: advforecast2.php issue
« Reply #41 on: October 08, 2018, 09:07:02 AM »
Atlanta is still not working for me, still stuck on Sept 26th. I'm not dropping back to an old script.

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: advforecast2.php issue
« Reply #42 on: October 08, 2018, 09:39:13 AM »
My local zones in NE Lower Michigan are still OK using the v4.05 script.

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1485
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: advforecast2.php issue
« Reply #43 on: October 08, 2018, 12:38:36 PM »
Atlanta is still not working for me, still stuck on Sept 26th. I'm not dropping back to an old script.
That's odd.  I just went to your website and I see what you're talking about.  But, if I pull the forecast up on my website it looks good.   http://www.beeweather.com/wxforecast.php?z=14   :?:

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 Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1485
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: advforecast2.php issue
« Reply #44 on: October 08, 2018, 12:48:18 PM »
Something else kind of screwy...  If I check the forecast for Andalusia, AL, which is covered by Mobile/Pensacola NWS and located about 40 miles SW of me, I get a good point forecast.  But if I check my local Rutledge forecast it gives me the zone forecast....and it Rutledge is covered by Mobile/Pensacola, too.  #-o

HOLD ON A MINUTE....!!!!!
Now my local forecast has dropped back to yesterday and Andalusia is showing Sept 4.....?????   #-o :shock:

Ok, I'm going to turn around and slowlyyyyyy walk away.......

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 DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: advforecast2.php issue
« Reply #45 on: October 08, 2018, 12:53:58 PM »
LOL! If you don't, it will drive you crazy. :-)

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: advforecast2.php issue
« Reply #46 on: October 08, 2018, 02:55:15 PM »
Dacula,

Looks like you are running V5.04 of the script.  Latest/greatest is V5.09.

Yours:

Code: [Select]
<!-- advforecast2.php (JSON) - V5.04 - 11-Oct-2017 on PHP 7.1.22-->
Mine:

Code: [Select]
<!-- advforecast2.php (JSON) - V5.09 - 26-May-2018 on PHP 7.2.10-->
I strongly suggest upgrading.
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 #47 on: October 08, 2018, 03:24:44 PM »
Correct.  The version history for the JSON script is:

//  Version 5.00 - 22-Apr-2017 - complete rewrite to use api.weather.gov JSON feeds for forecasts and alerts
//  Version 5.01 - 26-Apr-2017 - switch to use test NWS site for data waiting for June 19, 2017 prod cutover
//  Version 5.02 - 22-May-2017 - added temperature trend indicator
//  Version 5.03 - 16-Jul-2017 - if point forecast HTTP return code > 400, force zone forecast fetch
//  Version 5.04 - 11-Oct-2017 - fix for stale point-forecast via API to failover to Zone forecast
//  Version 5.05 - 27-Feb-2018 - more fixes for point-forecast/refetch fail->Zone failover
//  Version 5.06 - 12-Apr-2018 - fix PHP warning when no alerts available
//  Version 5.07 - 14-Apr-2018 - add caching for point->gridpoint forecast URLs + WFO info on Zone fcst
//  Version 5.08 - 25-May-2018 - fixes for point/zone JSON changes from api.weather.gov
//  Version 5.09 - 26-May-2018 - added new NWS API icons for tropical storm/hurricane

Based on the current api.weather.gov implementation, you need 5.09 to work correctly for their new website responses.
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 Intheswamp

  • Early on one frosty morn'...
  • Forecaster
  • *****
  • Posts: 1485
  • Sure...I know enough to be dangerous, now.
    • Beeweather
Re: advforecast2.php issue
« Reply #48 on: October 08, 2018, 03:25:02 PM »
LOL! If you don't, it will drive you crazy. :-)
Uh, I just checked BeeWeather and....it's back working.   :roll: =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 Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: advforecast2.php issue
« Reply #49 on: October 08, 2018, 03:35:21 PM »
Same here, I just checked and the "new" version is working again so I again changed back to version 5.09.  Will just keep an eye on it.

CW3699