mqttwarn
mqttwarn copied to clipboard
[InfluxDB] Support for InfluxDB 2
InfluxDB version 2 has a slightly different API, mainly:
- Now using API tokens instead of username/password
- Replacing database/retention policy with bucket
This needs a few changes how the HTTP POST looks like, see Write data with the InfluxDB API.
Hi Tobias,
it would be sweet to have an adapter for InfluxDB 2 for mqttwarn. Do you see a chance of contributing it?
influxdb.py has the code for InfluxDB 1. Maybe it will not be too hard to conceive a page of code having corresponding support for InfluxDB 2. I would implement the adapter within a separate file called influxdb2.py.
With kind regards, Andreas.
I cannot promise anything, but I might give it a try some when :+1:
Dear Tobias,
I cannot promise anything, but I might give it a try some when 👍.
I am sure any patch in this regard will be very much appreciated, with ❤️.
With kind regards, Andreas.