Author Topic: NWS Detailed Point Forecast Problem  (Read 10671 times)

0 Members and 1 Guest are viewing this topic.

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NWS Detailed Point Forecast Problem
« Reply #50 on: December 31, 2017, 05:16:47 PM »
+1 for Jasiu's explanation.

The one word for "why relative paths" is portability.  Every installation on a website has a unique set of absolute paths.  The only way to make code portable is to use relative paths and insist on a common relative path directory structure.  The Saratoga template always uses relative paths, and when unpacked into the document root of a webserver (preserving the directory structure), will work 'out of the box'.  It will even work when installed in a subdirectory of the document root if the ajaxXXwx.js files are changed to point to the URI of the realtime file.

So... using relative paths means portability and your website will work even if your hoster changes the absolute path to your document root (by moving you to a different webserver).
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 tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: NWS Detailed Point Forecast Problem
« Reply #51 on: December 31, 2017, 06:46:04 PM »
Thank you both for the explanation!

Offline RickNY

  • Contributor
  • ***
  • Posts: 116
    • College Hills Weather - Farmingville, NY
Re: NWS Detailed Point Forecast Problem
« Reply #52 on: January 02, 2018, 12:34:24 PM »
Im not really sure what is going on with my site and the NWS forecast..  Right now when I look at the NWS forecast, I'm seeing what appears to be a cached zone forecast from 12/28... However, if I switch back to the older 4.02 script, I'm getting nothing but a link to force the update -- but still comes back with nothing.. https://www.indigopc.com/wxNWSforecast.php

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: NWS Detailed Point Forecast Problem
« Reply #53 on: January 02, 2018, 02:10:00 PM »
Im not really sure what is going on with my site and the NWS forecast..  Right now when I look at the NWS forecast, I'm seeing what appears to be a cached zone forecast from 12/28... However, if I switch back to the older 4.02 script, I'm getting nothing but a link to force the update -- but still comes back with nothing.. https://www.indigopc.com/wxNWSforecast.php

As you'll see in earlier posts in this thread, the symptom you are seeing is most likely NOT an issue with your website but rather, an issue with NWS itself. Most of us see this behavior on a regular basis. We just have to be patient and wait until the NWS forecast is running again.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline RickNY

  • Contributor
  • ***
  • Posts: 116
    • College Hills Weather - Farmingville, NY
Re: NWS Detailed Point Forecast Problem
« Reply #54 on: January 02, 2018, 02:11:38 PM »
In theory though, 4.02 should be working correctly though, yes? 

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: NWS Detailed Point Forecast Problem
« Reply #55 on: January 02, 2018, 02:15:04 PM »
In theory though, 4.02 should be working correctly though, yes?

I've had intermittent issues with both versions. Thus, the reason for the "patience" comment...  :?
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline RickNY

  • Contributor
  • ***
  • Posts: 116
    • College Hills Weather - Farmingville, NY
Re: NWS Detailed Point Forecast Problem
« Reply #56 on: January 02, 2018, 02:17:19 PM »
I guess what I'm confused about is if I use the URLs from my Settings.php with the old mapclick URLs, I do get a valid point forecast.. Just not sure why when using the 4.02 version of the script, I come up empty.

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: NWS Detailed Point Forecast Problem
« Reply #57 on: January 02, 2018, 02:27:29 PM »
Have you tried copying that URL from advforecast2.php and pasting it into your browser's address bar to see if it is a good working URL? 

Offline RickNY

  • Contributor
  • ***
  • Posts: 116
    • College Hills Weather - Farmingville, NY
Re: NWS Detailed Point Forecast Problem
« Reply #58 on: January 02, 2018, 02:30:48 PM »
Alright.. I have 4.02 working again.. Had to change the URL in Settings.php to a regular http link instead of https..

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: NWS Detailed Point Forecast Problem
« Reply #59 on: January 02, 2018, 02:31:23 PM »
Looking at Ken's post (https://www.wxforum.net/index.php?topic=33332.msg339272#msg339272) he mentions that 4.02 will break when NWS goes to the V3 format. Perhaps that is what is happening.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: NWS Detailed Point Forecast Problem
« Reply #60 on: January 02, 2018, 02:41:11 PM »
Quote
Perhaps that is what is happening.

They have not switched.  There will be ample notice before they do.

Quote
Had to change the URL in Settings.php to a regular http link instead of https..

Both http and https work from here.

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #61 on: January 03, 2018, 07:50:22 AM »
Yea, the NWS forecast stuff has been messed up for a week now. I just had to do a force=2 to get the zone, all the point shows is an error.

Offline RickNY

  • Contributor
  • ***
  • Posts: 116
    • College Hills Weather - Farmingville, NY
Re: NWS Detailed Point Forecast Problem
« Reply #62 on: January 03, 2018, 09:19:43 AM »
In the end -- I just added a 2nd link on my site for the 5.04 version of the script for now and kept 4.02 as the default.. Changed the 5.04 version to advforecast2a.php and made a copy of wxNWSforecast.php called wxNWSforecast2.php and told it to use the advforecast2a.php

That'll do at least until they work everything out. I dont believe there will be any issues with the cache files as the 5.04 files add the json to the filenames from what I can tell.

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NWS Detailed Point Forecast Problem
« Reply #63 on: January 03, 2018, 10:55:30 AM »
Yes, there are no issues running both scripts -- the cache file names were deliberately set to not interfere with the V4 and V5 versions.

Sadly, I'm getting the issues here in the Western Region.. I'll likely revert too until the NWS can get it together reliably.
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 DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #64 on: January 03, 2018, 11:02:22 AM »
Just sent a message to our SOO here at the Atlanta NWS on NWSChat asking who to contact at the NWS about the issue.

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #65 on: January 03, 2018, 11:12:58 AM »
They are looking into it.

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #66 on: January 03, 2018, 11:19:43 AM »
Was just told the ITO is making a ticket on the issue.

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #67 on: January 03, 2018, 11:24:24 AM »
OK guys, I need data.

When did the problem start?
How often does it occur?
NWS office or region?

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #68 on: January 03, 2018, 12:10:50 PM »
Has anyone noticed that the alert link doesn't work? I am under a Wind Chill Advisory and it doesn't show up with the forecast. If you hover over the link, you see the advisory, but when you click the link, it is invalid on the NWS site.

Anyone else?

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NWS Detailed Point Forecast Problem
« Reply #69 on: January 03, 2018, 12:26:19 PM »
The link seems to go to alerts.weather.gov and not alerts-V2.weather.gov.

Are you running advforecast2.php Version 5.04 - 11-Oct-2017 ?
Is
Code: [Select]
$useProdNWS = false; // =false, use preview V3 sites,set in the script?

If so, then
Code: [Select]
if ($useProdNWS) {
  // final production URLs
  define('APIURL', "https://api.weather.gov");
  define('FCSTURL', "https://forecast.weather.gov");
  define('ALERTAPIURL', 'https://api.weather.gov/alerts?active=1&zone=');
  define('ALERTURL', 'https://alerts.weather.gov/products/');
}
else {
  // pre-production/testing URLs
  define('APIURL', "https://api.weather.gov");
  define('FCSTURL', "https://forecast-v3.weather.gov");
  define('ALERTAPIURL', 'https://api.weather.gov/alerts?active=1&zone=');
  define('ALERTURL', 'https://alerts-v2.weather.gov/products/'); // TODO: fix this to final loc.
}
should set the alert URL to use the beta product site.
« Last Edit: January 03, 2018, 12:27:51 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 DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #70 on: January 03, 2018, 12:44:33 PM »
$useProdNWS - true is my setting and it apparently is getting the correct alert (as evidenced by the ability to "see" the alert when you hover) but when I click the link it doesn't work. If I change the link to the "v2" link it works.


Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NWS Detailed Point Forecast Problem
« Reply #71 on: January 03, 2018, 12:48:11 PM »
You should have $useProdNWS = false; for the setting.. the alerts.weather.gov doesn't honor the same URLs as the alerts-V2.weather.gov site does.
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 DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NWS Detailed Point Forecast Problem
« Reply #72 on: January 03, 2018, 12:50:52 PM »
Ahhhhh... working

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: NWS Detailed Point Forecast Problem
« Reply #73 on: January 28, 2018, 07:12:14 AM »
Looks like  NWS issue with api.weather.gov and point-forecast data for some offices today. Including mine out of North Platte. Another one same issue is Goodland.

Get a blank black page with chrome browser and with IE 7 day icons are missing. On website get the strange heat index numbers.
 [ You are not allowed to view attachments ]
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: NWS Detailed Point Forecast Problem
« Reply #74 on: January 28, 2018, 04:09:18 PM »
So are there any alternatives when the local office doesn't fix the forecast point and click. Over 9 hours now and still down.

http://www.weather.gov/lbf/   I just get a blank page clicking on map unless I go outside of region.
Randy

 

anything