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

new schemas

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2485 b32b6428-25c9-4566-ad07-03861ab6144f
parent b5d26a70
Branches
No related tags found
No related merge requests found
......@@ -81,9 +81,9 @@ class GW:
self.devs[2].attributes['pressure'] = weather.get_pressure().get('press',None)
wind = weather.get_wind().get('speed',None)
if wind: wind = round(wind * 3600 / 1000, 1) # m/s => km/h
self.devs[3].attributes['windStrength'] = wind
self.devs[3].attributes['windAngle'] = weather.get_wind().get('deg',None)
self.devs[3].attributes['gustStrength'] = weather.get_wind().get('gust',None)
self.devs[3].attributes['wind_strength'] = wind
self.devs[3].attributes['wind_angle'] = weather.get_wind().get('deg',None)
self.devs[3].attributes['gust_strength'] = weather.get_wind().get('gust',None)
def _exit(self):
cfg = tools.load_cfg(PACKAGE_NAME)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment