aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-05 22:08:39 +0100
committerMattias Andrée <maandree@kth.se>2019-02-05 22:08:39 +0100
commit6f84cda12a4c9a1b936a18d921a9de35b0d9352a (patch)
tree4b86e6ea3b2ff64376cfcbe0e85c0a98742a4ef7
parentUpdate for Python 3.7 (broke syntax backwards compatibility) and update year and email (diff)
downloadxpybar-6f84cda12a4c9a1b936a18d921a9de35b0d9352a.tar.gz
xpybar-6f84cda12a4c9a1b936a18d921a9de35b0d9352a.tar.bz2
xpybar-6f84cda12a4c9a1b936a18d921a9de35b0d9352a.tar.xz
Update METAR url
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--src/plugins/weather.py2
1 files changed, 1 insertions, 1 deletions
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