[SOLVED] Charts gone after a restart

Dear all,

I have just restarted my OH yesterday and my charts are gone. Now all chart are empty. I’m using rr4dj persistence. I have tried deleting the .rrd files, no success… However I have found a typo in persist (it worked before with this) but that didn’t helped as well.

Strategies {
	everyMinute : "0 * * * * ?"
	everyHour: "0 0 * * * ?"
	everyDay: "0 0 0 * * ?"
	default = everyChange

Items {
	* : strategy = everyUpdate, everyMinute, restoreOnStartup

Ps.: Also it will be great if not all item will be persisted now (I just set-up this when I started using OH), but I can’t really understand how this works. Just add the groups and strategy which I want to be persisted? (Where now is just an asterisk). Do I need do anything else?

Ps2.: Is rrd4j a “good” persistance service? Which do you recommend? Or use multiple services for different use-case?


Yes indeed

rrdj4 stores numbers only
mapdb is great for restoreOnStartup (It only stores the last value)
I use influxdb for other items I want history on (Presence, Weather, Server state…)
The rest I don’t persist

Make a list of your items and decide what you want to persist and why

Thanks, I’ll look later into this, because using just rrd4j and exposing all items doesn’t seem the best idea (performance vise…)

Ps.: After a little time (when I deleted all the files) the charts are back…