I’m having an issue with getting influx to persist data, I have validated that the module is loading, I’ve validated permissions in influx and validated that I have connections to influx. I just upgraded to OpenHab2.5 and decided it was time to install influx
from openhab2.log
2020-02-13 18:54:18.131 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘influx.persist’
here’s my influxdb.cfg
# The database URL, e.g. http://127.0.0.1:8086 or https://127.0.0.1:8084 .
# Defaults to: http://127.0.0.1:8086
url=http://localhost:8086
# The name of the database user, e.g. openhab.
# Defaults to: openhab
# user=
user=openhab
# The password of the database user.
# password=
password=
# The name of the database, e.g. openhab.
# Defaults to: openhab
# db=
db=openhab_db
retentionPolicy=autogen
What I’m trying to capture are these events:
2020-02-13 18:58:12.067 [vent.ItemStateChangedEvent] - AquaLinkAirTemp changed from 85.0 °F to 84.0 °F
2020-02-13 18:59:13.062 [vent.ItemStateChangedEvent] - AquaLinkAirWater changed from 80.0 °F to 79.0 °F
Here’s my influx install:
Connected to http://localhost:8086 version 1.7.10
InfluxDB shell version: 1.7.10
> auth
username: openhab
password:
> use openhab_db
Using database openhab_db
> show series
Did configure debug logging for the persistence layer, the influxdb client and the items in question?
Because none of those is shown in what you captured.
Those writes look okay. You are getting 204 responses, so they seem to be accepted.
When you connect to the Influx command line, can you type “show measurements”. If you see your measurement, type “select * from name” where name is the name of your measurement.