<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<p><u><font color="#0782c1">Hello list,<br/>
I have a problem calculating thte difference between a MAX and a MIN value<br/>
this is my GRAPH:</font></u></p>
<p><u><font color="#0782c1">rrdtool graph VSM.png --start end-24h --end now ^<br/>
--title "Aktueller Stromverbrauch" --width 600 --height 330 --alt-y-grid --slope-mode ^<br/>
--upper-limit 5000 --lower-limit 0 --rigid ^<br/>
--color BACK#A9F5F288 --vertical-label "Verbauch in kW" ^<br/>
DEF:Watt=VSM.rrd:Watt_cur:MAX LINE1:Watt#FF0000:"Verbrauchskurve" ^<br/>
VDEF:Wavg=Watt,AVERAGE ^<br/>
VDEF:Wmin=Watt,MINIMUM ^<br/>
VDEF:Wmax=Watt,MAXIMUM ^<br/>
VDEF:Wact=Watt,LAST ^<br/>
DEF:kwhx=VSM.rrd:Watt_tot:MAX ^<br/>
DEF:kwhn=VSM.rrd:Watt_tot:MIN ^<br/>
VDEF:kwhmax=kwhx,MAXIMUM ^<br/>
VDEF:kwhmin=kwhn,MINIMUM ^<br/>
CDEF:delta=kwhx,kwhn,- ^<br/>
VDEF:dd=delta,MINIMUM ^<br/>
COMMENT:"\l" ^<br/>
COMMENT:"Verbrauch max " GPRINT:Wmax:"%%6.2lf [W]\l" ^<br/>
COMMENT:"Verbrauch min " GPRINT:Wmin:"%%6.2lf [W]\l" ^<br/>
COMMENT:"Verbrauch " GPRINT:Wavg:"%%6.2lf [W]\l" ^<br/>
COMMENT:"Zaehlerstand max " GPRINT:kwhmax:"%%6.2lf [kW]\l" ^<br/>
COMMENT:"Zaehlerstand min " GPRINT:kwhmin:"%%6.2lf [kW]\l" ^<br/>
COMMENT:" " GPRINT:dd:"%%6.2lf [kW]\l" ^<br/>
COMMENT:"Verbrauch aktuell " GPRINT:Wact:"%%6.2lf [W]\l"</font></u></p>
<p><br/>
<u><font color="#0782c1">I get this error:<br/>
ERROR: the RRD does not contain an RRA matching the chosen CF</font></u></p>
<p><u><font color="#0782c1">I just want to display the diff from the MAX and MIN Value of Watt_tot in VSM.rrd<br/>
</font></u></p>
<p><u><font color="#0782c1">kind regards<br/>
Stefan </font></u></p>
</div></div></body></html>