Closed DennisCor closed 2 months ago
Hi Team Influx,
I have just installed InfluxDB (v2.7.6) on my Raspberry and set up Python using "Get Started" via the browser (.../new-user-setup/python)
I find the type of step-by-step instructions with the code displayed very advanced, thank you for that. However, I noticed an error:
Under the item "Initialize Client" you initialize the client as "write_client ":
write_client = influxdb_client.InfluxDBClient(url=url, token=token, org=org)
But in the next step at "Write Data" you call it with "client":
write_api = client.write_api(write_options=SYNCHRONOUS)
I Think it should be insteded:
write_api = write_client.write_api(write_options=SYNCHRONOUS)
I hope I'm not wrong and this tip helps.
Kind Regards,
Dennis Cording
You're correct--thanks for reporting this! You might also be interested in our IoT starter tutorial for Python: https://docs.influxdata.com/influxdb/v2/api-guide/tutorials/python/
Hi Team Influx,
I have just installed InfluxDB (v2.7.6) on my Raspberry and set up Python using "Get Started" via the browser (.../new-user-setup/python)
I find the type of step-by-step instructions with the code displayed very advanced, thank you for that. However, I noticed an error:
Under the item "Initialize Client" you initialize the client as "write_client ":
write_client = influxdb_client.InfluxDBClient(url=url, token=token, org=org)
But in the next step at "Write Data" you call it with "client":
write_api = client.write_api(write_options=SYNCHRONOUS)
I Think it should be insteded:
write_api = write_client.write_api(write_options=SYNCHRONOUS)
I hope I'm not wrong and this tip helps.
Kind Regards,
Dennis Cording