From 7eb20d198d6f56d6d874672543ea51028968bf85 Mon Sep 17 00:00:00 2001 From: "Ryan@interlock" Date: Thu, 9 May 2024 15:51:27 -0400 Subject: [PATCH] remove \n for token --- Listen2Arduino.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Listen2Arduino.py b/Listen2Arduino.py index be9bc68..af282f0 100755 --- a/Listen2Arduino.py +++ b/Listen2Arduino.py @@ -12,7 +12,7 @@ with open('/home/pi03/influx_token.txt', 'r') as f: #token = os.environ.get("INFLUXDB_TOKEN") -token = first_line +token = first_line.replace('\n', "") org = "FSUFoxLab" ip = "https://fsunuc.physics.fsu.edu/influx/" write_client = influxdb_client.InfluxDBClient(url=ip, token=token, org=org)