diff --git a/heatingMeter.py b/heatingMeter.py index 301a6a4..60c960f 100644 --- a/heatingMeter.py +++ b/heatingMeter.py @@ -7,7 +7,7 @@ from influxdb_client import Point, WritePrecision from influx import writeToDB stream = SmlStreamReader() -port = serial.Serial(port='/dev/ttyUSB1', baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS) +port = serial.Serial(port='/dev/ttyUSB0', baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS) energyCounter = 0 # Counter for values that should only be pushed to db every minute @@ -64,4 +64,4 @@ while True: writeToDB(pointList) # Write pointlist to db - time.sleep(10) # Sleep 10 seconds before reading the next value \ No newline at end of file + time.sleep(10) # Sleep 10 seconds before reading the next value diff --git a/officeMeter.py b/officeMeter.py index f29e0d1..dc979fc 100644 --- a/officeMeter.py +++ b/officeMeter.py @@ -7,7 +7,7 @@ from influxdb_client import Point, WritePrecision from influx import writeToDB stream = SmlStreamReader() -port = serial.Serial(port='/dev/ttyUSB0', baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS) +port = serial.Serial(port='/dev/ttyUSB1', baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS) energyCounter = 0 # Counter for values that should only be pushed to db every minute @@ -60,4 +60,4 @@ while True: writeToDB(pointList) # Write pointlist to db - time.sleep(10) # Sleep 10 seconds before reading the next value \ No newline at end of file + time.sleep(10) # Sleep 10 seconds before reading the next value