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

Oups I did it again

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1631 b32b6428-25c9-4566-ad07-03861ab6144f
parent 85952987
Branches
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class GW:
def process(self):
smooth(self.temp,round(self.sensor.read_temperature(),1),0.1)
smooth(self.hum.value,round(self.sensor.read_humidity(),0),1)
smooth(self.hum,round(self.sensor.read_humidity(),0),1)
def run():
eng = xaal.lib.Engine()
......
......@@ -10,9 +10,9 @@ eng.start()
while 1:
#eng.send_request(dev,[target,],'dim',{'target':random.randint(0,100)})
#eng.loop()
#time.sleep(5)
eng.send_request(dev,[target,],'dim',{'target':random.randint(0,100)})
eng.loop()
time.sleep(5)
eng.send_request(dev,[target,],'on')
print('ON')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment