Commit ff6b84d7 authored by nextime's avatar nextime

owm now use Celsius, not Kelvin

parent 341f7b43
...@@ -81,15 +81,15 @@ class OWMWeather(object): ...@@ -81,15 +81,15 @@ class OWMWeather(object):
except: except:
self.data['pressure'] = 'unknown' self.data['pressure'] = 'unknown'
try: try:
self.data['temp.min'] = data[u'main'][u'temp_min']-273.15 self.data['temp.min'] = data[u'main'][u'temp_min'] #-273.15
except: except:
self.data['temp.min'] = 'unknown' self.data['temp.min'] = 'unknown'
try: try:
self.data['temp.max'] = data[u'main'][u'temp_max']-273.15 self.data['temp.max'] = data[u'main'][u'temp_max'] #-273.15
except: except:
self.data['temp.max'] = 'unknown' self.data['temp.max'] = 'unknown'
try: try:
self.data['temp'] = data[u'main'][u'temp']-273.15 self.data['temp'] = data[u'main'][u'temp'] #-273.15
except: except:
self.data['temp'] = 'unknown' self.data['temp'] = 'unknown'
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment