diff --git a/Listen2Arduino.py b/Listen2Arduino.py index 01ea3d7..c0c7435 100755 --- a/Listen2Arduino.py +++ b/Listen2Arduino.py @@ -15,7 +15,7 @@ token = first_line org = "FSUFoxLab" ip = "https://fsunuc.physics.fsu.edu/influx/" write_client = influxdb_client.InfluxDBClient(url=ip, token=token, org=org) -bucket = "testing" +bucket = "interlock" write_api = write_client.write_api(write_options=SYNCHRONOUS) print(token) @@ -96,7 +96,7 @@ while True: for key, value in format_value.items(): # print(f"{key} value={value}") - point.field(key, value) + point.field(key, float(value)) with open(outFile, "w") as file: for key, value in format_value.items():