diff options
author | Martijn Kaijser <mcm.kaijser@gmail.com> | 2012-12-06 20:54:22 +0100 |
---|---|---|
committer | Martijn Kaijser <mcm.kaijser@gmail.com> | 2012-12-06 20:54:22 +0100 |
commit | 38f02a81e4c6938c6416027cf85648c7497666ef (patch) | |
tree | 020c403f5e1ea373b1056704c0fab41fae380b19 /addons/weather.wunderground/default.py | |
parent | 7a5f64c3266a0aa21429df70f122f6f05c0134b2 (diff) |
[addons] sync with repo
Diffstat (limited to 'addons/weather.wunderground/default.py')
-rw-r--r-- | addons/weather.wunderground/default.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/weather.wunderground/default.py b/addons/weather.wunderground/default.py index 38edc88cdc..9d3c736bff 100644 --- a/addons/weather.wunderground/default.py +++ b/addons/weather.wunderground/default.py @@ -167,7 +167,8 @@ def clear(): def parse_data(json): try: - reply = json.replace('"-999%"','""').replace('"-9999.00"','""').replace('"-9998"','""').replace('"NA"','""').replace(' <? END CHANCE OF PRECIP\n\n?>','') # wu api bug + raw = json.replace('<br>',' ').replace('ä','รค') # wu api bugs + reply = raw.replace('"-999%"','""').replace('"-9999.00"','""').replace('"-9998"','""').replace('"NA"','""') # wu will change these to null responses in the future data = simplejson.loads(reply) except: log('failed to parse weather data') |