remove \n for token

This commit is contained in:
Ryan Tang 2024-05-09 15:51:27 -04:00
parent 4efb01b3f5
commit 7eb20d198d

View File

@ -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)