Page 1 of 1

Pushing smart meter data to InfluxDB database

Posted: Tuesday 22 November 2022 15:40
by JosFr
After succesfully connecting my Smart Meter to Domoticz and retrieving Power and Gas values from the meter, I'm now trying to store these values in an InfluxDB database. I set up the database, created a user, retrieved the InfluxDB authorization token and with these values configured the Data push/InfluxDB General Settings. I then added added links for Gas, Power/Delivery 1 and Power/Usage 1. This results in a connection with the database as a "influx query 'import "influxdata/influxdb/schema" schema.measurements(bucket: "domoticz")' command shows. The schema however only shows "Gas-usage" as result.

The wiki page (https://www.domoticz.com/wiki/Influxdb) gives little help on this topic, so what should be the schema for the database and should I create this by hand or will Domoticz take care of that?

Re: Pushing smart meter data to InfluxDB database

Posted: Friday 02 December 2022 19:32
by waltervl
From what I understand (I do not use influxdb) you just make an influxdb database (with user and token) and push the data.
Domoticz will create the necessary fields in influxdb.
What does the domoticz log file say when power data is pushed?