<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Andreas</div><div><br data-mce-bogus="1"></div><div>ah it is a counter ... then you use COUNTER ... I thought you had something detecting events ... then you could use update to 'load' and event into the rrd.</div><div><br data-mce-bogus="1"></div><div>cheers</div><div>tobi</div><div><br></div><span id="zwchr" data-marker="__DIVIDER__">----- On Mar 10, 2017, at 4:37 PM, Andreas Schuldei <andreas@schuldei.org> wrote:<br></span><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr">I changed that and am puzzled. <div>how do i deal with the huge offset? In that setup, the value the device returns is ~8000, and its a 64bit counter...</div><br><div>in an other thread (<a href="https://lists.oetiker.ch/pipermail/rrd-users/2014-September/020015.html" target="_blank">https://lists.oetiker.ch/pipermail/rrd-users/2014-September/020015.html</a>) that seems to deal with a similar issue,  someone recommend:</div><br><div>"Alternatively, you could use Absolute and reset the counter each time - then you don't need to worry about storing the total." </div><br><div>I can not reset the counter in the device. Or is that some rrdtool counter that i can reset with some clever CDEF magic?</div><br><div>And how will the data, which "absolute" would give me, be usable in my case? from the documentation (<a href="https://oss.oetiker.ch/rrdtool/tut/rrd-beginners.en.html" target="_blank">https://oss.oetiker.ch/rrdtool/tut/rrd-beginners.en.html</a>) i understand i would get an slowly ascending staircase. But in what way can i use that to emulate my incoming power? ever increasing power from my solar panels would be awesome, but that is not what I experienced before using rrdtool :-)</div><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Mar 10, 2017 at 3:10 PM Tobias Oetiker <<a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div class="gmail_msg"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;" class="gmail_msg" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;"><div class="gmail_msg">if you have 'pulses' use the ABSOLUTE DS type ... </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">and the multiply the result by whatever a pulse is worth</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">cheers</div><div class="gmail_msg">tobi</div></div></div><div class="gmail_msg"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;" class="gmail_msg" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><span id="m_-403608630817418923zwchr" class="gmail_msg">----- On Mar 10, 2017, at 2:46 PM, Andreas Schuldei <<a href="mailto:andreas%2Brrdtool@schuldei.org" class="gmail_msg" target="_blank">andreas+rrdtool@schuldei.org</a>> wrote:<br class="gmail_msg"></span></div></div><div class="gmail_msg"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;" class="gmail_msg" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;"><div class="gmail_msg"><blockquote style="border-left: 2px solid #1010ff; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" class="gmail_msg" data-mce-style="border-left: 2px solid #1010ff; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr" class="gmail_msg"><img pnsrc="cid:15ab85d652567b157151" alt="drraw.png" style="max-width: 100%; opacity: 1;" class="gmail_msg" data-mce-style="max-width: 100%; opacity: 1;" src="cid:15ab85d652567b157151"><br class="gmail_msg"><div class="gmail_msg">This is a graph i get with my current intake of sun and my setup, consisting of thermo sensors on in- and outgoing water pipes, as well as a water meter, emitting S0 impulses, indicating that 10l of fluid were pumped. </div><div class="gmail_msg">My Issue is with dealing with the impulses in a sensible way. The interval of these impulses varies, depending on the sun intake. </div><br class="gmail_msg"><div class="gmail_msg">currently my CDEF for the solar power is</div><div class="gmail_msg">d,c,-,a,*,10,*,4.190,*<br class="gmail_msg"></div><div class="gmail_msg">where c and d are my temperatures, and a is my counter, indicating 10 liters. (4.190 is the specific heat constant of water.)</div><br class="gmail_msg"><div class="gmail_msg">Now what is calculated by that CDEF is not really the solar power, its the momentary value, only, calculated for the duration of the impulse, which is the width of my sampling rate (which is 10sec). it would have been more accurate to take the time between the impulses and calculate the incoming energy during that period, divided by the duration of that time and graph that for the previous (or following) interval. </div><br class="gmail_msg"><div class="gmail_msg">How can I do that? </div></div>
<br class="gmail_msg"></blockquote></div></div></div><div class="gmail_msg"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;" class="gmail_msg" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;"><div class="gmail_msg"><blockquote style="border-left: 2px solid #1010ff; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" class="gmail_msg" data-mce-style="border-left: 2px solid #1010ff; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">_______________________________________________<br class="gmail_msg">rrd-users mailing list<br class="gmail_msg"><a href="mailto:rrd-users@lists.oetiker.ch" class="gmail_msg" target="_blank">rrd-users@lists.oetiker.ch</a><br class="gmail_msg"><a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" class="gmail_msg" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br class="gmail_msg"></blockquote></div></div></div><div class="gmail_msg"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;" class="gmail_msg" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;"><br class="gmail_msg"><div class="gmail_msg">-- <br class="gmail_msg"></div><div class="gmail_msg">Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br class="gmail_msg"><a href="http://www.oetiker.ch" class="gmail_msg" target="_blank">www.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch" class="gmail_msg" target="_blank">tobi@oetiker.ch</a> <a href="tel:+41%2062%20775%2099%2002" class="gmail_msg" target="_blank">+41 62 775 9902</a></div></div></div></blockquote></div><br></blockquote></div><br><div data-marker="__SIG_POST__">-- <br></div><div>Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>www.oetiker.ch tobi@oetiker.ch +41 62 775 9902</div></div></body></html>