I want to persist my energy consumtion in a RRD4J Database. The values are stored every 5 seconds and should represent on one side the average and the maximum value (to analyse peaks).
In my rrd4j.cfg I configured the following structure:
rrd4j:Energy.def=GAUGE,3600,U,U,60 rrd4j:Energy.archives=AVERAGE,0.5,1,3200:AVERAGE,0.5,6,3200:AVERAGE,0.5,36,3200:AVERAGE,0.5,144,3200:AVERAGE,0.5,1008,3200:AVERAGE,0.5,4320,3200:AVERAGE,0.5,52560,3200:AVERAGE,0.5,525600,3200 rrd4j:Energy.archives=MAX,0.5,1,3200:MAX,0.5,6,3200:MAX,0.5,36,3200:MAX,0.5,144,3200:MAX,0.5,1008,3200:MAX,0.5,4320,3200:MAX,0.5,52560,3200:MAX,0.5,525600,3200 rrd4j:Energy.archives=MIN,0.5,1,3200:MIN,0.5,6,3200:MIN,0.5,36,3200:MIN,0.5,144,3200:MIN,0.5,1008,3200:MIN,0.5,4320,3200:MIN,0.5,52560,3200:MIN,0.5,525600,3200 rrd4j:Energy.items=Energy_P1, Energy_P2, Energy_P3
With the rrdtool i could graph both values as follows (based upon the following guide: http://www.jibble.org/currentcost/) :
rrdtool graph /var/www/currentcost/graphs/power-week.png
–start end-7d --width 700 --end now --slope-mode
–no-legend --vertical-label Watts --lower-limit 0
Is it possible to visualize both values with openhab? Until now I was only able to get the average.
Thanks for your help!