Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

NWS forecast.weather.gov changing 24-Apr-2017. New advforecast2.php V5.00

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

NWS forecast.weather.gov changing 24-Apr-2017. New advforecast2.php V5.00

Post by saratogaWX »

FROM - NCO / NIDS
TO - ALL
SUBJECT - NIDS MAINTENANCE - 04/24/17
.
A reminder - There will be an upgrade to forecast.weather.gov
on 4/24/2017 - the work is scheduled to run during the
following maintenance window
.
Start - 1400 UTC
Stop - 2100 UTC
.
The entire maintenance window is reserved for this upgrade.
We expect there will be minor interruptions in service
during this event.
.
If you have any questions or issues, please notify our Tier
I group at 301.713.0902 or send an email to the following
address - toc.nwstg -at- noaa.gov.
.
If Critical Weather is declared for this maintenance window,
the upgrade work will be rescheduled.
.
Your patience as we work to improve our support and service
is truly appreciated.
.
NIDS/KM

I've pushed the release version of advforecast2.php V5.00 (JSON) to the Saratoga template update tool.

Saratoga template: update tool with a query for Base-USA, *-plugin, 22-Apr-2017

Standalone: script page
Note: you'll also need the V1.01 of DualImage.php and a few new icons -- there's a update .zip for that on the script page.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: NWS forecast.weather.gov changing 24-Apr-2017. New advforecast2.php V5.00

Post by saratogaWX »

Methinks the NWS has rolled back the change due to issues, so the old forecast.weather.gov is working again.

While it is, you may want to check your Settings.php for $SITE['NWSforecasts'] = array( ... ); or if standalone, the $NWSforecasts = array( ... ); entries.

If they look like

Code: Select all

  "VTZ007|Coles Pond Area|http://forecast.weather.gov/MapClick.php?site=btv&FcstType=text&site=BTV&map.x=290&map.y=88&TextType=2",
  "VTZ004|Island Pond VT|http://forecast.weather.gov/MapClick.php?lat=44.817889670988784&lon=-71.87667846679688&site=btv&unit=0&lg=en&FcstType=text&TextType=2",
  "NHZ001|Pittsburg NH|http://forecast.weather.gov/MapClick.php?lat=45.05606124274415&lon=-71.38778686523438&site=gyx&unit=0&lg=en&FcstType=text&TextType=2",
  "VTZ007|St Johnsbury VT|http://forecast.weather.gov/MapClick.php?map.x=307&map.y=100&site=BTV&FcstType=text&zmx=1&zmy=1&TextType=2",
  "VTZ017|Burlington VT|http://forecast.weather.gov/MapClick.php?map.x=208&map.y=93&site=BTV&FcstType=text&zmx=1&zmy=1&TextType=2",
  "VTZ008|Montpelier VT|http://forecast.weather.gov/MapClick.php?map.x=261&map.y=118&site=BTV&FcstType=text&zmx=1&zmy=1&TextType=2",
  "VTZ003|Newport VT|http://forecast.weather.gov/MapClick.php?map.x=289&map.y=43&site=BTV&FcstType=text&zmx=1&zmy=1&TextType=2",
you should (while you can) convert them to MapClick.php URLS that have lat= and long= in them like

Code: Select all

  "VTZ007|Coles Pond Area|http://forecast.weather.gov/MapClick.php?lat=44.5421&lon=-72.215&unit=0&lg=english&FcstType=text&TextType=2",
  "VTZ004|Island Pond VT|http://forecast.weather.gov/MapClick.php?lat=44.81788&lon=-71.87667&unit=0&lg=english&FcstType=text&TextType=2",
  "NHZ001|Pittsburg NH|http://forecast.weather.gov/MapClick.php?lat=45.05606&lon=-71.38778&unit=0&lg=english&FcstType=text&TextType=2",
  "VTZ007|St Johnsbury VT|http://forecast.weather.gov/MapClick.php?lat=44.4156&lon=-71.975&unit=0&lg=english&FcstType=text&TextType=2",
  "VTZ017|Burlington VT|http://forecast.weather.gov/MapClick.php?lat=44.4881&lon=-73.2262&unit=0&lg=english&FcstType=text&TextType=2",
  "VTZ008|Montpelier VT|http://forecast.weather.gov/MapClick.php?lat=44.2665&lon=-72.5719&unit=0&lg=english&FcstType=text&TextType=2",
  "VTZ003|Newport VT|http://forecast.weather.gov/MapClick.php?lat=44.937&lon=-72.2089&unit=0&lg=english&FcstType=text&TextType=2",
The easy way to do this (while the current forecast.weather.gov is up) is to:
1) copy the URL into the browser and remove the &TextType=2 from the end of the URL and press enter.
2) near the bottom of the page, right click on the "Printable Forecast" link and copy THAT URL to replace your URL in the list. It will have lat=...&lon=... in it.
3) repeat for your entire list. then save the update to Settings.php (or the advforecast2.php script if standalone).

Then you'll be fully ready for the conversion of the forecast.weather.gov site when it finishes.

Also, there is a small setting in advforecast2.php (JSON) V5.00 that controls what URLs are used for the clickable Alert and detail links. It is currently set as

Code: Select all

$useProdNWS = true; // =false, use preview V3 sites, =true, use production sites (after 24-Apr-2017)
which causes the detail alerts from alerts.weather.gov and detail page links to forecast.weather.gov.
You might want to change it to

Code: Select all

$useProdNWS = false; // =false, use preview V3 sites, =true, use production sites (after 24-Apr-2017)
to have the (working) alert details from alerts-v2.weather.gov and the (working) forecast-v3.weather.gov sites until the real conversion is finished.

Fortunately, the api.weather.gov site (used for all the JSON retrieval) has been stable during their fiddling with forecast.weather.gov.

Best regards,
Ken
Post Reply