I’m quite frustrated. I tried to setup rrd4j persistence and store the temperature data of one item.
Unfortunately nothing gets stored. I have no clue.
Here the steps I did:
1.) Installed rrd4j binding via Paper UI
Karaf Console says: 190 │ Active │ 80 │ 1.11.0.201711190210 │ openHAB RRD4j Persistence Bundle
2.) I left rrd4j.cfg untouched
3.) I change in PaperUI the default persistence to rrd4j
4.) I change addons.cfg: persistence = rrd4j
5.) I created a file rrd4j.persists
// 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 * * * * ?"
everyHour : "0 0 * * * ?"
}
Items {
// which data to be stored
Outdoor_Temperature : strategy = everyMinute
}
The Outdoor_Temperature Item is defined as Number Outdoor_Temperature "Aussentemperatur [%.1f]" <temperature> (gTemperature) {knx="<1/1/5"}
6.) I restarted OH2 Service
7.) No errors in any log files
8.) No Output in /var/lib/openhab2/persistence/rrd4j
I tried to generate a chart, which is for sure generating an error: 2017-11-22 19:44:20.998 [ERROR] [4j.internal.charts.RRD4jChartServlet] - Error generating graph: {} java.io.FileNotFoundException: Could not open /var/lib/openhab2/persistence/rrd4j/Outdoor_Temperature.rrd [non existent]