<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ups, leider ebenfalls nein. Sorry- der Usecase ist (noch) nicht berücksichtigt.<div class=""><br class=""></div><div class="">Viele Grüße, </div><div class="">Andreas</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 16. Jul 2019, at 21:52, Oliver Feilner <<a href="mailto:maillist.volkszaehler@oliver.4of.de" class="">maillist.volkszaehler@oliver.4of.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Hallo Andreas,<br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Gibt es dann aktuell die Möglichkeit neben dem timestamp auch den Wert des Vorgängers zu bekommen z.B.  val(prev())?<br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Viele Grüße<br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Oliver<br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Am Di, 16. Jul 2019, um 19:57, schrieb Andreas Goetz:<br class=""></div><blockquote type="cite" id="qt" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="">Hallo Claus,<br class=""></div><div class="qt-"><br class=""></div><div class="qt-">aktuell gibt nur die Möglichkeit, den letzten Timestamp mittels prev() zu bekommen, aber keine längere Historie. PRs willkommen…<br class=""></div><div class="qt-"><br class=""></div><div class="qt-">Viele Grüße, Andreas<br class=""></div><div class="qt-"><div class=""><br class=""></div><div class=""><div class=""><br class=""></div><blockquote class="qt-" type="cite"><div class="qt-">On 16. Jul 2019, at 11:07, Claus Beckenbauer <<a class="qt-" href="mailto:mail@claus-beckenbauer.de">mail@claus-beckenbauer.de</a>> wrote:<br class=""></div><div class=""><br class=""></div><div class="qt-"><div class="qt-">Hallo Zusammen,<br class=""></div><div class="qt-"><br class=""></div><div class="qt-">ich logge die Differenztemperatur von Temp_sonne zu Temp_schatten in einem Kanal. Da die Differenztemperatur ziemlich rauscht, logge ich in zwei separaten Kanälen zusätzlich "geglättete Werte".<br class=""></div><div class="qt-"><br class=""></div><div class="qt-">Da ich bin noch auf der Suche nach dem für meinen Anwendungsfall geeigneten Verfahren bin, logge ich sowohl den Median der Differenztemperatur als auch einen exponentiell geglätteten Wert<b class="qt-"><span class="Apple-converted-space"> </span></b>in die Datenbank.<br class=""></div><div class="qt-"><br class=""></div><div class="qt-">So weit so gut.<span class="Apple-converted-space"> </span><br class=""></div><div class="qt-"><br class=""></div><div class="qt-">Jetzt möchte ich exp und median eigentlich als virtuelle Kanäle realisieren.<br class=""></div><div class="qt-">Für exp bräuchte man lediglich den geglätteten Vorgängerwert.<br class=""></div><div class="qt-">Für median brächte man die Vorgängerwerte innerhalb eines Zeitraums.<br class=""></div><div class="qt-"><br class=""></div><div class="qt-"><div class="qt-"><div class="qt-">Der Median wird über 10 Minuten gebildet. Dabei fallen ca 5 Messwerte an.<br class=""></div><div class="qt-">Die exponentielle Glättung berechnet sich nach Yn = w * Xn + (1- w) * Yn-1. Wobei Y der geglättete und X der aktuelle Wert der Differenztemperatur ist. w ist die Konstante zu Gewichtung.<br class=""></div></div><div class="qt-"><div class="qt-"><br class=""></div></div><div class="qt-">So wie ich das beim Überfliegen von VirtualInterpreter.php sehe gibts noch keine Möglichkeit "Vorgängerwerte" (1...n) abzufragen.<br class=""></div></div><div class="qt-"><br class=""></div><div class="qt-">Gibt's andere kreative Vorschläge / Ideen wie ich die beiden virtuellen Kanäle umsetzen kann?<br class=""></div><div class="qt-">Wie könnte denn eine sinnvolle API Erweiterung von VirtualInterpreter.php aussehen?<br class=""></div><div class="qt-"><br class=""></div><div class="qt-"><span id="qt-cid:33E13B86-E4D2-4E58-9D10-93270532CD34" class=""><tdiff.PNG></span><br class=""></div><div class="qt-"><br class=""></div><div class="qt-">Gruß,<br class=""></div><div class="qt-">Claus</div></div></blockquote></div></div></blockquote></div></blockquote></div><br class=""></div></body></html>