From d607c27c42fad62b625553832e505212c420360a Mon Sep 17 00:00:00 2001 From: "Ryan@pi02" Date: Tue, 27 Feb 2024 19:04:34 -0500 Subject: [PATCH] fix bucket --- Listen2Arduino.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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():