aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/weather.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-08 03:30:57 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-08 03:30:57 +0100
commit45eb36168a647690b8b5f5eef8bc0e4c5c609384 (patch)
tree86da235b4c13485bb0c7718ebd11d4583f2ac691 /src/plugins/weather.py
parentupdate todo: ping monitor (diff)
downloadxpybar-45eb36168a647690b8b5f5eef8bc0e4c5c609384.tar.gz
xpybar-45eb36168a647690b8b5f5eef8bc0e4c5c609384.tar.bz2
xpybar-45eb36168a647690b8b5f5eef8bc0e4c5c609384.tar.xz
use curl instead of wget
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-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 a02bf85..f04fe9d 100644
--- a/src/plugins/weather.py
+++ b/src/plugins/weather.py
@@ -55,7 +55,7 @@ class Weather:
'''
self.icao = station
url = 'http://weather.noaa.gov/pub/data/observations/metar/decoded/%s.TXT' % station
- decoded = spawn_read('wget', url, '-O', '-').split('\n')
+ decoded = spawn_read('curl', url).split('\n')
# How to parse: http://www.wunderground.com/metarFAQ.asp
station_header, self.headers, decoded = decoded[0].split(', '), decoded[:2], decoded[2:]