Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- file=open('/usr/local/smarthome/test.log', 'a')
- #sh.knx.groupread('1/2/2')
- temp=sh.EG.Temperature()
- hum=sh.EG.Humidity()
- co2=sh.EG.CO2()
- win=sh.EG.Window()
- #temp = sh.knx.encode(temp, 9)
- file.write('Temp:' + str(temp) +' RH:'+str(hum)+' CO2:'+str(co2)+' WinOpen:' + str(win)+ '\r\n')
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement