<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Danke, das könnte der lange gesucht Bug mit aggtime sein!</div><div><br></div><div><span style="background-color: rgba(255, 255, 255, 0);">Was meinst Du mit nicht interpoliert?</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div>Viele Grüße, Andreas </div><div><br>Am 06.01.2016 um 20:29 schrieb Jens <<a href="mailto:panterglas@web.de">panterglas@web.de</a>>:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8">Hallo Zusammen,<div class=""><br class=""></div><div class="">ich logge einige S0 Zähler und seit zwei Wochen mit dem vzlogger. Ich möchte, dass nur alle 30 Sekunden ein Eintrag in die Datenbank geschrieben wird. Dafür nutze ich den Parameter „aggtime" auf 30. Das klappt auch, allerdings muss man den Parameter "aggfixedinterval" auf true setzen. Andernfalls werden die Daten gemäß dem Original-Impuls in die Datenbank geschrieben und aggtime wird ignoriert. Leider werden bei aktiviertem „aggfixedinterval“ die Werte nicht interpoliert, was zu kleinen Sägezahnmustern im Frontend führen kann - gerade bei kleinen Lasten.</div><div class=""><br class=""></div><div class="">Hier ein Screenshot mit und ohne aggfixedinterval</div><div class=""><Schnappschuss (2016-01-06 20.16.04).png></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Meine Knotig, nur bis zum ersten S0-Zähler, die anderen sind gleich bis auf die UUID</div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">{</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "retry": 0,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "daemon": true,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "verbosity": 0,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "log": "/var/log/vzlogger.log",</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "local": {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "enabled": false,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "port": 8080,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "index": true,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "timeout": 0,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "buffer": 0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> },</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "push": [</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "url": "<a href="http://127.0.0.1:5582" class="">http://127.0.0.1:5582</a>"</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> }</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> ],</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "meters": [</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> // Sensor 1</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "enabled": true,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "allowskip": false,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "interval": -1,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "aggtime": 30,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "aggfixedinterval": true,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "channels": [</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "uuid": „das-ist-meine-Kanal-UUID",</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "identifier": "Impulse",</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "api": "volkszaehler",</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "middleware": "<a href="http://127.0.0.1/middleware.php" class="">http://127.0.0.1/middleware.php</a>",</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "aggmode": "SUM",</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "duplicates": 0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> }</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> ],</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "protocol": "s0",</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "gpio": 4,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "resolution": 1000,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "configureGPIO": true,</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> "debounce_delay": 0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> },</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> // Sensor 2</div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">… weitere Sensoren</div><div class=""><br class=""></div></div></blockquote></body></html>