Advertisement
Guest User

test.py

a guest
Nov 22nd, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2. #!/usr/bin/env python3
  3.  
  4. file=open('/usr/local/smarthome/test.log', 'a')
  5. #sh.knx.groupread('1/2/2')
  6. temp=sh.EG.Temperature()
  7. hum=sh.EG.Humidity()
  8. co2=sh.EG.CO2()
  9. win=sh.EG.Window()
  10.  
  11. #temp = sh.knx.encode(temp, 9)
  12.  
  13. file.write('Temp:' + str(temp) +' RH:'+str(hum)+' CO2:'+str(co2)+' WinOpen:' + str(win)+ '\r\n')
  14. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement