diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-08 03:30:57 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-08 03:30:57 +0100 |
commit | 45eb36168a647690b8b5f5eef8bc0e4c5c609384 (patch) | |
tree | 86da235b4c13485bb0c7718ebd11d4583f2ac691 /src/plugins/weather.py | |
parent | update todo: ping monitor (diff) | |
download | xpybar-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 'src/plugins/weather.py')
-rw-r--r-- | src/plugins/weather.py | 2 |
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:] |