<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello<br>
<br>
I believe you're are using a rrd file without RRA MINIMUM or
MAXIMUM or both.<br>
<br>
Can you post the "rrdtool create" command you used to create
WSM.rrd ?<br>
<br>
To use :<br>
<u><font color="#0782c1"><br>
DEF:kwhx=VSM.rrd:Watt_tot:MAX ^<br>
DEF:kwhn=VSM.rrd:Watt_tot:MIN ^<br>
</font></u><br>
you need a leat on RRA:MAX:<i>xff</i><b>:</b><i>steps</i><b>:</b><i>rows</i>
and one <i>RRA:MIN:xff</i><b>:</b><i>steps</i><b>:</b><i>rows</i><br>
<br>
if you juste compute delta between MININUM and MAXIMUM of your
average RRA, this is the wrong way to process.<br>
<br>
Yannick Marquet<br>
<br>
Le 27/06/2013 09:50, Stefan Bruder a écrit :<br>
</div>
<blockquote
cite="mid:trinity-2b4bc5fe-4a31-4f42-a46b-a2ca76ba22bf-1372319426669@3capp-gmx-bs46"
type="cite">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rrd-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
</pre>
</blockquote>
<br>
</body>
</html>