aboutsummaryrefslogtreecommitdiff
path: root/addons/weather.wunderground/default.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/weather.wunderground/default.py')
-rw-r--r--addons/weather.wunderground/default.py3
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('&auml;','รค') # 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')