aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-03 22:54:35 +0200
committerMattias Andrée <maandree@kth.se>2016-08-03 22:54:35 +0200
commitd41b77f90edb5eb361ec70ee724745d9ad0d23fe (patch)
tree36e5b4da26a181152351e5f1d2374d5ff76d756e /src/plugins
parenttodo: unlist calenar support and summer/standard time announcement, fits better in rotd (diff)
downloadxpybar-d41b77f90edb5eb361ec70ee724745d9ad0d23fe.tar.gz
xpybar-d41b77f90edb5eb361ec70ee724745d9ad0d23fe.tar.bz2
xpybar-d41b77f90edb5eb361ec70ee724745d9ad0d23fe.tar.xz
Update: the metar resources have moved1.16
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/plugins/weather.py3
1 files changed, 2 insertions, 1 deletions
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