Hi all,
I’m trying to set up persistence on OpenHab2 Beta 4.
I’ve done the following:
Items/my.items:
Number Living_Room_Temp "Living Room Temperature [%.1f °C]" <temperature> (Temperature_Sensors) {mqtt="<[oh2:hab/livingroom/temperature/1:state:default]"}
Persistence/my.persist:
// persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
// for rrd charts, we need a cron strategy
everyMinute : "0 * * * * ?"
default = everyMinute
}
Items {
// which data to be stored
Living_Room_Temp : strategy = everyMinute
}
Services/rrd4j.cfg
# 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>
rrd4j:ctr5min.def=COUNTER,900,0,U,300
rrd4j:ctr5min.archives=AVERAGE,0.5,1,365:AVERAGE,0.5,7,300
rrd4j:ctr5min.items=Living_Room_Temp
Checking in the Karaf database it says:
config:property-list
ctr5min.archives = AVERAGE,0.5,1,365:AVERAGE,0.5,7,300
ctr5min.def = COUNTER,900,0,U,300
ctr5min.items = Living_Room_Temp
service.pid = org.openhab.rrd4j
Then to show the chart in my sitemap file:
Chart item=Living_Room_Temp service="rrd4j" period=12h
Yet the chart doesn’t show anything. Where have I gone wrong?