# please note that currently the first archive in each RRD defines the consolidation
# function (e.g. AVERAGE) used by OpenHAB, thus only one consolidation function is
# fully supported
#
# default_numeric and default_other are internally defined defnames and are used as
# defaults when no other defname applies
#<defname>.def=[ABSOLUTE|COUNTER|DERIVE|GAUGE],<heartbeat>,[<min>|U],[<max>|U],<step>
#<defname>.archives=[AVERAGE|MIN|MAX|LAST|FIRST|TOTAL],<xff>,<steps>,<rows>
#<defname>.items=<list of items for this defname>
At least the last line has to be used, otherwise nothing will get persisted. In the rrd4j.persist the strategy is set, in here the items are selected for persistence.
Why did you do anything with my sql ? Your db is rrd4j, isn’t it?
You have to set the last three lines in the rrd4j.cfg starting with the name of your db " openhab".
If you have problems with those settings, just tell for how long you want to persist (maximum time you want to keep the data), since it is a temperature, I guess a maximum as consolidating function would be OK. I’l write back the suggested settings for those lines.
I’m using 3 archives, the first holds 1440 values for the last 1440 minutes (i.e. one value per minute), the second 2016 values for the last 2016 5 minute steps (i.e. one value every 5 minute step over the last 52016 minutes) and the third holds 2688 values for the last 2688 15 minute steps (i.e. one value every 15 minute step over the last 152688 minutes)
The first archive is used to display the last 24 houres (2460=1440!)
The second archive is used to display the last week (52016=10080 or 72460=10080)
The third archive is used to display the last four weeks (152688=40320 472460=40320)
tnx, im confused!
so i need only rrd4j? i thought i need both!
and what is my rrd4j database name then? your database is PreisLogger, but i can not find the database name of rrd4j
should i create one?
tnx agian
Check to folder “/var/lib/openhab/persistence/rrd4j”, delete all *.rrd files (you should have only “esp_dht22_t.rrd”, but delete them all). rrd4j is known to have problems when changing the setup. Then wait some minutes and check the logging if values are persisted.