<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hello list,<br/>
I have a problem calculating thte difference between a MAX and a MIN value<br/>
this is my GRAPH:</div>
<div>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"</div>
<div><br/>
I get this error:<br/>
ERROR: the RRD does not contain an RRA matching the chosen CF</div>
<div>I just want to display the diff from the MAX and MIN Value of Watt_tot in VSM.rrd<br/>
</div>
<div>kind regards<br/>
Stefan</div>
</div></div></body></html>