Discussion:
[gentoo-user] InfluxDB python library?
(too old to reply)
J. Roeleveld
2023-05-10 08:00:01 UTC
Permalink
Hi all,

I've been using a python script for the past 4 years to read out my solar
panels and write the data into InfluxDB to get nice graphs in Grafana.

Unfortunately, the library I use to write to InfluxDB has a dead upstream and
doesn't work with Python 3.11 anymore.
Does anyone know of a different way to load the data into InfluxDB using Python
that is likely to be supported for the foreseeable future?

Many thanks,

Joost
Andrew Udvare
2023-05-10 08:10:01 UTC
Permalink
Post by J. Roeleveld
Hi all,
I've been using a python script for the past 4 years to read out my solar
panels and write the data into InfluxDB to get nice graphs in Grafana.
Unfortunately, the library I use to write to InfluxDB has a dead upstream and
doesn't work with Python 3.11 anymore.
Does anyone know of a different way to load the data into InfluxDB using Python
that is likely to be supported for the foreseeable future?
The line protocol is pretty simple. It is trivial to write a serialiser for
it.

https://docs.influxdata.com/influxdb/v2.7/write-data/developer-tools/api/

If you can't get a good nanosecond timestamp you can reduce it to second
precision.

Loading...