remove \n for token
This commit is contained in:
parent
4efb01b3f5
commit
7eb20d198d
|
@ -12,7 +12,7 @@ with open('/home/pi03/influx_token.txt', 'r') as f:
|
||||||
|
|
||||||
|
|
||||||
#token = os.environ.get("INFLUXDB_TOKEN")
|
#token = os.environ.get("INFLUXDB_TOKEN")
|
||||||
token = first_line
|
token = first_line.replace('\n', "")
|
||||||
org = "FSUFoxLab"
|
org = "FSUFoxLab"
|
||||||
ip = "https://fsunuc.physics.fsu.edu/influx/"
|
ip = "https://fsunuc.physics.fsu.edu/influx/"
|
||||||
write_client = influxdb_client.InfluxDBClient(url=ip, token=token, org=org)
|
write_client = influxdb_client.InfluxDBClient(url=ip, token=token, org=org)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user