Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influx db2 is working? #1160

Closed
hilleke-dirk opened this issue Oct 11, 2022 · 7 comments
Closed

influx db2 is working? #1160

hilleke-dirk opened this issue Oct 11, 2022 · 7 comments
Assignees

Comments

@hilleke-dirk
Copy link

V12.0.1
I tried to activate the influxdb setting, but i am not sure, if it works with the V2 Database
No entries in my database until now and no error in the log only: 2022-10-11T14:45:28: FlowControll.doFlow - ClassFlowInfluxDB

Influxdb
Uri http://x.x.x.x:8086
database daten
measurement gas
user username
password yes_set

I can open the influxdb-gui with these parameters without any problem. The database should work.

@jomjol
Copy link
Owner

jomjol commented Oct 12, 2022

InfluxDB has not been tested intensively and was implemented by a supporter additionally. To my knowledge most of the users are taking the data over the MQTT interface.

I would need to test the influxdb (setup a server etc.). As my main computer is down, this will take quite some time. But I leave this issue open for the time being.

@infa-presales
Copy link

Actually it does not work with influxdb v1 either. I have configured the connection but neither measurement or data in existing measurements are created. In addition, even with full log enabled I cannot see any traces in the logs according to failed or successful write attempt.
The connection with MQTT works, albeit there are multiple shipments of different pieces of the data on different topics under given topic/main (like single shipments in raw payload such as freeMem, wifiRSSI, CPUtemp, but one main/json with a set of the meter data

@dstoianov
Copy link

It works with such config

{22-10-15 11:42}pi-unifi:~ pi% influxd version
InfluxDB v1.8.10 (git: 1.8 688e697c51fd)

image

image

Measurements

> select * from gas LIMIT 4;
name: gas
time                main/value
----                ----------
1665824667000000000 1907002
1665824847000000000 1907002
1665825027000000000 1907002
1665825207000000000 1907002

@jomjol
Copy link
Owner

jomjol commented Oct 15, 2022

I can confirm, that InfluxDB is also working with the version 12.x.y

Configuration:
grafik

Version:
grafik
(Version with respect to InfluxDB identical with 12.x.y)

But it can be, that this is only working up to InfluxDB 1.8 and NOT with InfluxDB 2.x.

@jomjol jomjol closed this as completed Oct 15, 2022
@caco3 caco3 reopened this Oct 15, 2022
@caco3
Copy link
Collaborator

caco3 commented Oct 15, 2022

The original question is about InfluxDB2! Since it was implemented for InfluxDB 1, it most likely will not work for influx DB2 as there are changes on the API from 1 to 2! I have such a DB running for my Homeassistant and can try it out sometimes.

In any way, pull requests to extend support to InfluxDB 2 are welcome!

@caco3 caco3 self-assigned this Oct 15, 2022
@jomjol
Copy link
Owner

jomjol commented Oct 16, 2022

I think, INfluxDB v2 is rather a new feature than an issue. Because the API changed quite a lot and is not downwards compatible (neither in the interface, nor in the db itself).
I suggest to make a remark in the configuration page (done) and put this to the feature request list (done).

@caco3
Copy link
Collaborator

caco3 commented Oct 16, 2022

closing as I better spend my time on other issues

@caco3 caco3 closed this as completed Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants