Changes due to different comports
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user