Skip to content
Snippets Groups Projects
Commit ad02912b authored by jkerdreu's avatar jkerdreu
Browse files

Fix attribute list

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1567 b32b6428-25c9-4566-ad07-03861ab6144f
parent 4e850354
No related branches found
No related tags found
No related merge requests found
...@@ -49,9 +49,9 @@ class OWMManager: ...@@ -49,9 +49,9 @@ class OWMManager:
def update(self): def update(self):
place = self.cfg['config']['place'] place = self.cfg['config']['place']
weather = self.owm.weather_at_place(place).get_weather() weather = self.owm.weather_at_place(place).get_weather()
self.devs['press'].attributes[0].value = weather.get_pressure()['press'] self.devs['press'].get_attribute("pressure").value = weather.get_pressure()['press']
self.devs['temp'].attributes[0].value = weather.get_temperature(unit='celsius')['temp'] self.devs['temp'].get_attribute("temperature").value = weather.get_temperature(unit='celsius')['temp']
self.devs['hum'].attributes[0].value = weather.get_humidity() self.devs['hum'].get_attribute("humidity").value = weather.get_humidity()
def run(): def run():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment