From 6f84cda12a4c9a1b936a18d921a9de35b0d9352a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 5 Feb 2019 22:08:39 +0100 Subject: Update METAR url 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/weather.py b/src/plugins/weather.py index 3b69ff0..60b7456 100644 --- a/src/plugins/weather.py +++ b/src/plugins/weather.py @@ -72,7 +72,7 @@ class Weather: 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://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT' % station + url = 'https://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