Dom_KS
(Dom KS)
January 23, 2023, 6:28pm
1
Platform information:
Hardware: Rpi4 4GB
OS: Rapbian + Docker
Java Runtime Environment: which java platform is used and what version
openHAB version: 3.4.1
First of all - my knowledge about linux is weak so I’ve got a question. How I can check that openhab is ussing influxdb not RRD4j ?
Docker looks good there is no errors . Influxdb container is running properly.
Wolfgang_S
(Wolfgang_S)
January 23, 2023, 7:08pm
2
According to the docs:
NOTE: rrd4j is for storing numerical data only.
influxdb:
All values are stored in a field called “value” using the following types:
float for DecimalType and QuantityType
integer for OnOffType
and OpenClosedType
(values are stored using 0 or 1) and DateTimeType
(milliseconds since 1970-01-01T00:00:00Z)
string for the rest of types
So as long as you only use RRD4J and/or influxdb and you manage it to store/restore string values.
Then it is influxdb.
You can use the influx command line client to do a query on your influxdb instance:
connect to it:
influx -database openhab -port 8086 -host localhost
in the client login with:
auth
You will be asked for user and password
After entering user and password you can have a look if there are any databases:
show databases
Select your database by using it:
use openhab
With select statement you then should be able to have a look into your persisted data.
rlkoshak
(Rich Koshak)
January 23, 2023, 7:51pm
3
I’ll propose an easier approach.
First of all, assuming you do not want to use rrd4j at all, simply uninstall the rrd4j add-on.
If you want to use both, you can change the default persistence under Settings → Persistence to influxdb. Then bring up a chart. If you see anything you know data is being stored in InfluxDB.
Note that persistence databases are not mutually exclusive. You can use InfluxDB and rrd4j at the same time.