I try to implement Charts for Temoerature of my heaters and Outdoor. If I set only an Item and set “everyMinute” everything is working fine. But if I change to “everyChange” no values is saved.
Further I cannot set multiple Charts be setting a group I here i get no chart (not an empty one - totally no chart)
What I doing wrong?
This is my (working) rrd4j.persist :
Strategies {
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
}
Items {
//ein Item wird jede Minute persistiert:
WohnzimmerCurrentTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
KuecheCurrentTemp : strategy = everyMinutee //jede Minute wird der Wert gespeichert
SchlafzimmerCurrentTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
GaestezimmerCurrentTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
ArbeitszimmerCurrentTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
BadCurrentTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
MFZCurrentTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
NetatmoIndoorTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
NetatmoOutdoorTemp : strategy = everyMinute //jede Minute wird der Wert gespeichert
}
This is my not working File:
Strategies {
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
}
Items {
//ein Item wird jede Minute persistiert:
WohnzimmerCurrentTemp : strategy = everyChange //Bei Änderung wird der Wert gespeichert
KuecheCurrentTemp : strategy = everyChange //Bei Änderung wird der Wert gespeichert
SchlafzimmerCurrentTemp : strategy = everyChange //Bei Änderung wird der Wert gespeichert
GaestezimmerCurrentTemp : strategy = everyChange //Bei Änderung wird der Wert gespeichert
ArbeitszimmerCurrentTemp : strategy = everyChange //Bei Änderung wird der Wert gespeichert
BadCurrentTemp : strategy = everyChange //Bei Änderung wird der Wert gespeichert
MFZCurrentTemp : strategy = everyChange //jede Minute wird der Wert gespeichert
NetatmoIndoorTemp : strategy = everyChange //jede Minute wird der Wert gespeichert
NetatmoOutdoorTemp : strategy = everyChange //jede Minute wird der Wert gespeichert
HeizungCurrentTemp * : strategy = restoreOnStartup, everyChange //bei jeder Änderung des Wertes wird dieser gespeichert
}
While I can confirm I’ve hit the same problem when I omitted everyMinute, I wonder whether the docs are correct here. Is it really everyMinute that has to be there or could it be any strategy as defined in the Strategies{} section ? everyMinute is causing unnecessary load and writes (bad if going to SD cards).
Could you check if it works with everHour or similar (plus everyChange, of course) as well ?
You can setup debugging to get output on items being persisted: org.openhab.persistence.rrd4j if I’m not mistaken.
My experience with rrd4j is quite old but it used to be that if you don’t use everyMinute with rrd4j you cannot generate charts and you cannot query for historic data from rrd4j. Since a write only database isn’t all that useful…
It has something to do with the way rrd4j works internally. The rrd4j config can be changed so you could use some other periodic strategy (don’t ask me how), but there must be a value saved every so often for the database to function.
did you add everyMinute to the Group’s persistence?
HeizungCurrentTemp* : strategy = everyMinute, everyChange, restoreOnStartup, //bei jeder Änderung des Wertes wird dieser gespeichert
Which Items are members of the HeizungCurrentTemp Group?
If you list the Group, you don’t need to list the individual Items belonging to the Group in your rrd4j.persist
in this case, you only need to list the Group to cover them
any additional Items which are not members of this Group, you can list them individually (but remember to add the everyMinute strategy in your rrd4j.persist
do you have more than 1 persistence service installed? or only rrd4j?
You are right, thank You - Now I deleted the individual Items which member in the Group and the indevidual Charts still working! But I cannot see the Multiple Chart of the group.
I really don’t know what is wrong… your Chart element looks correct to me
maybe leave some time to pass for the system to collect some data in persistence and then try to display the graph?
Me too! I created a chart with a 2 member group just last night and don’t see the problem. The last Point you didn’t post so far (Definition of Group and items) seems to be correct (otherwise the persistence would have stopped).