Hi All,
Does anyone have domoticz working with InfluxDB v2.4? I've just created a new influxd server because of some issues with my old one and I went for the latest version, but I can't get it to connect.
The error in the dz log reports 'unauthorized access'. When I create a token for domoticz in Influx, all I can see is the descriptive name, no actual token value; what do I need to give domoticz for the 'token' value and where in Influx's UI or CLI do I find that?
Thanks!
InfluxDB 2.4
Moderators: leecollings, remb0
-
- Posts: 75
- Joined: Monday 23 January 2017 23:30
- Target OS: Linux
- Domoticz version: 2023.1
- Location: UK
- Contact:
InfluxDB 2.4
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: InfluxDB 2.4
Just to be sure: You have enabled the Influx V2.0 API switch in the influx General settings page (Setup - More options - Data Push - InfluxDB)?
See wiki page https://www.domoticz.com/wiki/Influxdb
Available in Stable 2022.1
See wiki page https://www.domoticz.com/wiki/Influxdb
Available in Stable 2022.1
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: InfluxDB 2.4
And additional influxdb documentation
Organization: https://docs.influxdata.com/influxdb/cl ... view-orgs/
Tokens: https://docs.influxdata.com/influxdb/cl ... ate-token/
Organization: https://docs.influxdata.com/influxdb/cl ... view-orgs/
Tokens: https://docs.influxdata.com/influxdb/cl ... ate-token/
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 75
- Joined: Monday 23 January 2017 23:30
- Target OS: Linux
- Domoticz version: 2023.1
- Location: UK
- Contact:
Re: InfluxDB 2.4
Yes, v2 API enabled, I should have said that (though I didn't notice the input fields change, even when I cleared the cache and refreshed the page) and yes, I've read both those Influx articles; sadly I'm no wiser as a result!
I was expecting Influx to generate a token string, or to ask me to provide one, which I'd then give to domoticz. All that happens when I create a token in Influx v2.4 is that it takes the descriptive name and the list of permitted buckets, but no sign of a token string to give to the API client!
Does domoticz want the org and bucket hex IDs, or their names? Are hex IDs 0x123abc or just abc123?
However... tried to list organisations with the influx CLI to check the org ID and got 'unauthorised' there too. I think this problem might be a bit wider than just the API access. Something wrong with my influxdb.conf, I'll bet...
I was expecting Influx to generate a token string, or to ask me to provide one, which I'd then give to domoticz. All that happens when I create a token in Influx v2.4 is that it takes the descriptive name and the list of permitted buckets, but no sign of a token string to give to the API client!
Does domoticz want the org and bucket hex IDs, or their names? Are hex IDs 0x123abc or just abc123?
However... tried to list organisations with the influx CLI to check the org ID and got 'unauthorised' there too. I think this problem might be a bit wider than just the API access. Something wrong with my influxdb.conf, I'll bet...
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
-
- Posts: 75
- Joined: Monday 23 January 2017 23:30
- Target OS: Linux
- Domoticz version: 2023.1
- Location: UK
- Contact:
Re: InfluxDB 2.4
Okay, got it fixed
Turns out that when the documentation says that the Influx UI will show you the token value just once at creation, what it really means is that it won't do that and in fact you can - and must - click on the token name to see it at any time after creation
Config file is not as the docs say, either, it's some .toml file pointing to a nasty file in /var; I guess Influxdata haven't updated all their documentation for the latest version.
Domoticz is fine with the org ID in hex, no '0x' prefix, and the token is just pasted in as raw text. Database can be the friendly name, no need for IDs there.
Turns out that when the documentation says that the Influx UI will show you the token value just once at creation, what it really means is that it won't do that and in fact you can - and must - click on the token name to see it at any time after creation
Config file is not as the docs say, either, it's some .toml file pointing to a nasty file in /var; I guess Influxdata haven't updated all their documentation for the latest version.
Domoticz is fine with the org ID in hex, no '0x' prefix, and the token is just pasted in as raw text. Database can be the friendly name, no need for IDs there.
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
Who is online
Users browsing this forum: No registered users and 1 guest