I try to store data over a longer period from my daily power consumption. I track the kWh and reset the value every day. I installed rrd4j a long time ago at it works fine for the general data storage (only put an item in the .persist file). Now I try to use the rrd4j.cfg file to consolidate the data over a longer time.
I have this in the rrd4j.cfg:
And I need to have this in the .rrd4j.persist file
zwave_device_3cab72a2_node51_meter_watts : strategy = everyMinute, restoreOnStartup zwave_device_3cab72a2_node51_meter_kwh : strategy = everyMinute, restoreOnStartup
even though it is a double definition. Without the stategy in the persist file I do not get stored values.
The rrd data files that is created is only 2kB (folder userdata…). I was expecting it creates either several files or one file with different time spans and time interval. What I get are 144 data points that are 10 min. apart. The time span does not change over the file.
The archive definition should create indeed at first 10 min. time spans:
I would expect 60 points with 10 min. interval because of this:
I was expecting 24 points in the file that cover a time span of 600s*60=3600s (1h) each.
The last row should create a point every day for 720 days.
It seems the consolidating function does not work (I have another case with AVERAGE consolidating function that also does not works).
Does it work for anyone? What is wrong in the definitions?