controller id is now sent with sensor data

This commit is contained in:
Senad Uka
2016-02-14 12:10:39 +01:00
parent 2156651cb2
commit e985699645

View File

@@ -16,10 +16,6 @@ print 'Bacva puna: {}'.format(tankFull)
SENSOR_TYPE = Adafruit_DHT.DHT11
controller_id = config.CONTROLLER_ID
owner = "Controller: %s" % controller_id
else:
print 'usage: sudo ./sensors.py '
print 'example: sudo ./sensors.py Send temperature for controller in config'
sys.exit(1)
# Try to grab a sensor reading. Use the read_retry method which will retry up
# to 15 times to get a sensor reading (waiting 2 seconds between each retry).