weather fixes

This commit is contained in:
Cezary Biele 2013-10-14 12:11:31 +02:00
parent dc85b64631
commit b3ae571389

View File

@ -22,7 +22,6 @@ class Weather(IntervalModule):
format = "{current_temp}" format = "{current_temp}"
def run(self): def run(self):
#current_temp = pywapi.get_weather_from_weather_com(self.location_code)['current_conditions']['temperature']
result = pywapi.get_weather_from_weather_com(self.location_code, self.units) result = pywapi.get_weather_from_weather_com(self.location_code, self.units)
conditions = result['current_conditions'] conditions = result['current_conditions']
temperature = conditions['temperature'] temperature = conditions['temperature']