<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hallo,<div class=""><br class=""></div><div class="">kannst du mal folgende Kombination testen:</div><div class="">aggfixedinterval = false // das sollte man eher nicht verwenden, beschreibe später noch mal, warum nicht.</div><div class="">dafür:</div><div class="">send_zero:true // mit aggmode willst du ja alle z.B. 30s einen Datenpunkt, auch wenn der Null ist, oder?</div><div class=""><br class=""></div><div class="">Damit sollten die Effekte, die du beobachtest weg sein.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 06.01.2016 um 20:29 schrieb Jens <<a href="mailto:panterglas@web.de" class="">panterglas@web.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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=""><span id="cid:D8DFFB85-464C-49B0-A1D1-83977C5AE827@fritz.box"><Schnappschuss (2016-01-06 20.16.04).png></span></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></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Gruß</div><div class=""><br class=""></div><div class="">Matthias</div></div></span>
</div>
<br class=""></div></body></html>