chickenhouse: add climate control
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
'''
|
||||
Created on Dec 19, 2016
|
||||
|
||||
@author: klaehn
|
||||
'''
|
||||
import time
|
||||
import sys
|
||||
import logging
|
||||
import gate_guard.gate
|
||||
|
||||
def main():
|
||||
logging.basicConfig(filename='/var/log/gate_guard.log', level=logging.DEBUG, format='%(asctime)s %(message)s')
|
||||
gate_state = gate_guard.gate.Gate()
|
||||
try:
|
||||
while True:
|
||||
gate_state.poll()
|
||||
time.sleep(0.1)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print "key exit"
|
||||
return None
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
Reference in New Issue
Block a user