I have a working InfluxDb2 server and, on a Raspberry Pi, the Python client library. I’ve generated the the tokens in the server UI and copied an all-areas one into the Python. The test bucket is set up in the UI too. In the Python program I have this:
bucket = "test"
org = "test-org"
#
token = "blabla=="
# Store the URL of your InfluxDB instance
url="http://10.0.1.1:8086/api/v2"
client = influxdb_client.InfluxDBClient(
url=url,
token=token,
org=org
)
I’ve also gone back to Curl which gives me not authorized problem with the same parameters. Any help appreciated, beginning to regret trying to upgrade now.
Thanks and thanks for quick reply, this is looking good, program doesn’t break, though I can’t see data at present. More when I’ve modified the Point to store the real data.
What’s in time(1), unix epoch or what? Need better example, I think?
Incidentally I used to use json for previous influx projects, but this one is high intensity, so I believe I should be using batched up points? Lots of questions, sorry.
I’m getting: lvl=info msg=Unauthorized log_id=0a5ZUrPG000 error="toke in journalctl currently