cloudy cloudy

Author Topic: Solved: wxnws-details.php not updating  (Read 626 times)

0 Members and 1 Guest are viewing this topic.

Offline ANPweather

  • Posts: 407
  • Anthem, AZ
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.87
    • Anthem North Parkside
Solved: wxnws-details.php not updating
« on: June 15, 2018, 01:30:11 AM »
I've been going through and updating all my webfiles. wxnws-details.php doesn't seem to be updating and there are some broken links showing. A broken link shows up in the excessive heat watch  warning on the home page as well.
« Last Edit: June 16, 2018, 04:40:44 PM by Jerry Riechert »

Offline zeppline

  • Posts: 534
  • Las Vegas, Nevada
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 60.0
    • Las Vegas Weather Guy
Re: wxnws-details.php not updating
« Reply #1 on: June 15, 2018, 04:29:43 AM »
Check Saratoga web site for updates all the maps have changed.

Rainwise MKlll w/ cc3000 logger Win 7

Offline saratogaWX

  • Global Moderator
  • Posts: 5,839
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • Saratoga Weather
Re: wxnws-details.php not updating
« Reply #2 on: June 15, 2018, 04:48:37 AM »
Looks like it's all good now on your site.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline ANPweather

  • Posts: 407
  • Anthem, AZ
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.87
    • Anthem North Parkside
Re: wxnws-details.php not updating
« Reply #3 on: June 15, 2018, 03:33:39 PM »
As far as I know, I have updated all the files from Saratoga.  Before I finished updating the files, the excessive heat watch showed that it was from 2016. There are currently no excessive heat watches for my location, only an air quality alert. The upcoming temperatures shown in the watch do not match the actual forecast.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 67.0.3396.87
Re: wxnws-details.php not updating
« Reply #4 on: June 15, 2018, 04:11:45 PM »
I see the 2016 Watch data on your site.

"Excessive Heat Watch - Expires: Tuesday 6/21/2016 8:00 pm"

"Effective: Tue, 6/14 9:54am   Updated: Tue, 2/14 6:22pm   Urgency: Future
Expires: Tue, 6/21 8:00pm"


Offline saratogaWX

  • Global Moderator
  • Posts: 5,839
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • Saratoga Weather
Re: wxnws-details.php not updating
« Reply #5 on: June 15, 2018, 04:13:11 PM »
Your nws-alerts.php script shows
Quote
<!-- nws-alerts noCron=true .. running nws-alerts.php inline -->
<!-- nws-alerts.php - V1.42 - 27-Jan-2018 -->
<!-- 1 unique Zone entries found. Zones='AZZ023' -->
<!-- cache age 41956624 seconds - fetch needed -->
<!-- Cron job not used -->
<!-- non XML source: https://alerts.weather.gov/cap/wwaatmget.php?x=AZZ023&y=1 -->
<!-- HTTP stats:  RC=200 dest=2001:428:2004:3a7::116 port=443 (from sce=2602:ff3c:0:1:20e:b6ff:fe67:ce98)
      Times: dns=0.004 conn=0.013 pxfer=0.041 get=0.009 total=0.050 secs -->
<!-- header type='text/html; charset=UTF-8' -->
<!-- First attempt in getting preliminary URL failed -->
<!-- non XML source: https://alerts.weather.gov/cap/wwaatmget.php?x=AZZ023&y=1 -->
<!-- HTTP stats:  RC=200 dest=2001:428:2004:3a7::116 port=443 (from sce=2602:ff3c:0:1:20e:b6ff:fe67:ce98)
      Times: dns=0.000 conn=0.008 pxfer=0.037 get=0.010 total=0.046 secs -->
<!-- header type='text/html; charset=UTF-8' -->
<!-- Second attempt failed & skipped -->

<!-- NO cache files updated -->
<!-- Total process time: 1.0998 seconds -->
Looks like the DNS lookup returned an IPV6 address for the alerts.weather.gov, and your webserver failed twice to retrieve the alerts -- that's why it's not updating.  Running http://www.azjerry.com/ANPW/check-fetch-times.php?show=info shows everything is 'Ok' on your PHP 5.6.36

Running view-source:https://alerts.weather.gov/cap/wwaatmget.php?x=AZZ023&y=1 however, returns content of
Quote
? invalid zone 'AZZ023'
so that is likely the real issue..

Looking at https://alerts.weather.gov/cap/az.php?x=2 shows no entry for AZZ023 Zone ..   Based on your Forecast of https://forecast-v3.weather.gov/point/33.4484,-112.074 , I'd suggest AZZ543 for your zone.. then it should likely work for you.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline ANPweather

  • Posts: 407
  • Anthem, AZ
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.87
    • Anthem North Parkside
Re: wxnws-details.php not updating
« Reply #6 on: June 15, 2018, 05:06:36 PM »
They must have dropped AZZ023 in 2016 as that was what I used for my old web site prior to my move in 2015. I just carried it forward to the new site as I couldn't find, at the time, a better zone to use. Looking at the list, I see that AZZ544 or AZZ545 sound to be closer to my location. Unfortunately the link to the map that would allow me to see the zones returns a 404 error.

Putting in a valid zone definitely fixed the problem, though. Thanks.

 

cumulus