controller id is now sent with sensor data
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user