From d41b77f90edb5eb361ec70ee724745d9ad0d23fe Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 3 Aug 2016 22:54:35 +0200 Subject: Update: the metar resources have moved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/weather.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/weather.py b/src/plugins/weather.py index 15e8573..0b6428f 100644 --- a/src/plugins/weather.py +++ b/src/plugins/weather.py @@ -69,7 +69,8 @@ class Weather: station = file.read() station = station.decode('utf-8', 'strict').split('\n')[0] self.icao = station - url = 'http://weather.noaa.gov/pub/data/observations/metar/decoded/%s.TXT' % station + #url = 'http://weather.noaa.gov/pub/data/observations/metar/decoded/%s.TXT' % station + url = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT' % station decoded = spawn_read('curl', url).split('\n') # How to parse: http://www.wunderground.com/metarFAQ.asp -- cgit v1.2.3-70-g09d2