weather can not get data ( http://weather.noaa.gov has been discontinued)

Bug #1621179 reported by rec9140
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
weather-util (Debian)
Fix Released
Unknown
weather-util (Ubuntu)
Fix Released
High
Jeremy Stanley

Bug Description

The NWS has taken the system that weather relies on offline, thus the text products will need to be recovered from some other URL and parsed.

$ weather --version
weather 2.0
$ weather -i KLAX
WARNING: the --id option is deprecated and will eventually be removed
Searching via station...
[caching result Los Angeles Interntl Airport, CA, United States]
weather error: failed to retrieve
   http://weather.noaa.gov/pub/data/observations/metar/decoded/KLAX.TXT
   HTTPError: HTTP Error 404: Not Found

METAR Data might be recoverable here:

https://www.aviationweather.gov/metar/data?ids=KLAX&format=raw&date=0&hours=0

See:

NOUS41 KWBC 011148 CCB

PNSWSH

Service Change Notice 16-16 Corrected

National Weather Service Headquarters Washington DC

748 AM EDT Mon Aug 1 2016

To: Subscribers:

           -NOAA Weather Wire Service

           -Emergency Managers Weather Information Network

           -NOAAPORT

           Other NWS partners and NWS employees

From: Luis Cano

          Director, Office of Operational Systems

Subject: Corrected: Termination of the NWS Weather.Noaa.Gov

          (WNG) Web Service effective June 15, 2016

Corrected to add updated links for radar monitoring web pages as

follows:

WNG Current Site Data Link Replacement Links

-------------------------- -----------------

weather.noaa.gov/monitor/radar3 http://radar3pub.ncep.noaa.gov

weather.noaa.gov/monitor/radar2 http://radar2pub.ncep.noaa.gov

Corrected to change disable date to August 3, 2016

The NWS will eliminate the web service found at the following

address effective August 3, 2016:

http://weather.noaa.gov

Comments on this change were requested via the following notice:

www.nws.noaa.gov/os/notification/pns16-05decommissioning_web.htm

After addressing all questions, comments and feedback, a

decision was made to terminate the service.

This legacy web site was launched over a decade ago to provide

accessibility to NWS weather products for the general public.

The WNG website will be decommissioned as part of the

NWSTG Re-Architecture project. The WNG web site is obsolete

because NWS weather.gov site is now the primary hub for NWS web

services and data products. A list of options available for

obtaining weather data normally found via the WNG URL is

provided below.

WNG Site Data Link: Alternative Links

------------------

United States Weather: http://weather.gov

Radar Graphics: http://radar.weather.gov

Weather Maps: ftp://tgftp.nws.noaa.gov/fax

                            http://tgftp.nws.noaa.gov

International Weather: https://www.aviationweather.gov/metar

Aviation Weather: https://www.aviationweather.gov

United States Weather: http://weather.gov

Marine Weather: http://weather.gov

                            http://opc.ncep.noaa.gov

WNG Site Data Link: Replacement Links

------------------

CURRENT REPLACEMENT

weather.noaa.gov/monitor/radar3 http://radar3pub.ncep.noaa.gov

weather.noaa.gov/monitor/radar2 http://radar2pub.ncep.noaa.gov

For questions or comments on this notice, please contact:

Kevin Conaty

NOAA/NWS/IDP NRT PM

Silver Spring, MD 20910

301-427-9169

<email address hidden>

National Service Change Notices are online at:

http://www.nws.noaa.gov/om/notif.htm

NNNN

Mathew Hodson (mhodson)
Changed in weather-util (Ubuntu):
importance: Undecided → High
tags: added: trusty xenial yakkety
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in weather-util (Ubuntu):
status: New → Confirmed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

As mentioned in one of the duplicates, http://weather.noaa.gov/ says:
In Accordance with NWS Service Change Notice 16-16 this service has been discontinued. Please see Weather.gov and tgftp.nws.noaa.gov (raw data)

Replacing the url http://weather.noaa.gov/pub with http://tgftp.nws.noaa.gov should work, and this also seems to be the suggestion from the Debian maintainer (see the upstream bug report). He was working on an update, so hopefully that shouldn't be too far away.

summary: - weather can not get data
+ weather can not get data ( http://weather.noaa.gov has been
+ discontinued)
Thomas Ward (teward)
Changed in weather-util (Ubuntu):
status: Confirmed → Triaged
Changed in weather-util (Debian):
status: Unknown → New
no longer affects: weather-util
Changed in weather-util (Debian):
status: New → Confirmed
Revision history for this message
erick (droblivion) wrote :

I have a hack for this, gunzip the stations.gz file in /usr/share/weather-util. Edit it and replace all the http entries string "http://tgftp.nws.noaa.gov/pub" with the string "http://tgftp.nws.noaa.gov/", save and re-gzip. Then backup the old stations.gz file somewhere and copy the new one (using sudo) in it's place.

The weather function should now work using the new URL!

Revision history for this message
erick (droblivion) wrote :

One mistake above, replace the old "http://weather.noaa.gov/pub" with "http://tgftp.nws.noaa.gov/" I meant..!

Changed in weather-util (Debian):
status: Confirmed → Fix Released
Revision history for this message
Jeremy Stanley (fungi) wrote :

This was fixed in the 2.3-1 upload to Debian/sid, subsequently imported to Ubuntu/zesty.

Changed in weather-util (Ubuntu):
assignee: nobody → Jeremy Stanley (fungi)
status: Triaged → Fix Released
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for fixing this, Jeremy. :)

Are there any plans to fix the URL for packages in older Ubuntu releases via SRU (https://wiki.ubuntu.com/StableReleaseUpdates#Procedure)?

Revision history for this message
adam plaice (adam.plaice) wrote :

Further elaborating on the hack above (https://bugs.launchpad.net/ubuntu/+source/weather-util/+bug/1621179/comments/3 ) — useful for anyone who doesn't want to build from source — the following commands carry out the necessary changes:

sudo cp /usr/share/weather-util/stations.gz /usr/share/weather-util/stations.gz.back

sudo bash -c "zcat /usr/share/weather-util/stations.gz.back | sed 's;http://weather.noaa.gov/pub/;http://tgftp.nws.noaa.gov/;' | gzip - > /usr/share/weather-util/stations.gz"

(Thanks for the very useful utility, Jeremy! :) )

Revision history for this message
Todd Platt (todd231) wrote :

This worked amazing. Thank you from a beginner (used it on my raspberry pi zero)!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.