My name is Josep and I’m doing a school research project on home automation.
I’m trying to link openHAB to InfluxDB in order to link it later to Grafana graphs. I’m running the latest Raspbian version on a Raspberry Pi 3 B+.
I’ve installed Influx DB by the Add-ons persistence section on PaperUI. Then I can find the files influxdb.cfg and influxdb.persist and configured properly:
influxdb.cfg
url=http://192.168.1.220:8086
user=openhab
password=openhab
db=openhab_db
retentionPolicy=autogen
# 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(s)://<host>:<port>
# The name of the database user, e.g. openhab.
# Defaults to: openhab
# user=<user>
# The password of the database user.
# password=
# The name of the database, e.g. openhab.
# Defaults to: openhab
# db=<database>
Disclaimer: I am not using either, but here some pointers.
Did you need to do it all by yourself or can you use OpenHABian. The configurations are not super difficult but can be a little tricky and OpenHABian is doing it all for you, right out of the box: https://www.openhab.org/docs/tutorial/logs.html#looking-to-the-logs
You can do that, but you will then need to ensure that you pull the right persistence service. You probably have your reasons, but at first glance it seems simply to be a duplication, as you can have influxDB persist everything that rrd4j would be able to persist.
Good morning and thank you very much for your response.
I still don’t understand if the unique persistence system that’s activated is the default set on the openHAB system config or that all the persistence systems that are installed and configurated are activated.
The thing would be the system to activate more than one system.
Then, I have entered to the log folder, seeing the link you have attatched me and on InfluxDB folder, there’s nothing. No log.
On the openHAB log folder, yes, there are some log files which not include any InfluxDB log.
All persistence service work at the same time
I use InfluxDB, rddj4 and mapDB
They all have their advantages
InfluxDB for pretty graphing
Rdd4j for fast graphing in sitemaps
mapdb for restoreonstartup