<div dir="auto">Hallo Kai,<div dir="auto"><br></div><div dir="auto">könnte sein dass duplicates nur bei aktiver Aggregation wirkt. Bitte mal aggtime und aggmode konfigurieren.</div><div dir="auto"><br></div><div dir="auto">Grüße</div><div dir="auto">Frank</div></div><div class="gmail_extra"><br><div class="gmail_quote">Am 28.08.2017 15:14 schrieb "Kai Wiemer" <<a href="mailto:kawi.business@gmail.com">kawi.business@gmail.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hallo zusammen,<div><br></div><div>Trotz hohem duplicates-Intervall werden unveränderte Werte an die API weitergereicht. Meine Konfiguration lautet:<br></div><div><br></div><div><div>/**</div><div> * use proper encoded JSON with javascript comments</div><div> *</div><div> * take a look at the wiki for detailed information:</div><div> * <a href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration" target="_blank">http://wiki.volkszaehler.org/<wbr>software/controller/vzlogger#<wbr>configuration</a></div><div> */</div><div><br></div><div>{</div><div> "retry" : 0,</div><div> "daemon": true,</div><div> "verbosity": 99,</div><div> "log" : "/var/log/vzlogger.log",</div><div> "local" : {</div><div> "enabled" : false,</div><div> "port" : 8080,</div><div> "index" : true,</div><div> "timeout" : 0,</div><div> "buffer" : 0</div><div> },</div><div> "meters" : [{</div><div> "enabled": true,</div><div> "allowskip": false,</div><div> "interval": 0,</div><div> "aggtime": -1,</div><div> "aggfixedinterval": false,</div><div> "channels": [{</div><div> "uuid": "6596fba0-897b-11e7-acd8-<wbr>43e26569567b",</div><div> "identifier": "255-255:1.8.0",</div><div> "api": "influxdb",</div><div> "host": "localhost:8086",</div><div> "database": "vzlogger",</div><div> "measurement_name": "measurement",</div><div> "username": "vz",</div><div> "password": "superSecurePassword123!!",</div><div> "duplicates": 999999</div><div> }],</div><div> "protocol": "d0",</div><div> "device": "/dev/usb-ir-lesekopf",</div><div> "dump_file": "",</div><div> "pullseq": "2F3F210D0A",</div><div> "ackseq": "auto",</div><div> "baudrate": 300,</div><div> "baudrate_read": 9600,</div><div> "baudrate_change_delay": 500,</div><div> "parity": "7e1",</div><div> "read_timeout": 100</div><div> }]</div><div>}</div></div><div><br></div><div>In der Log-Datei sehe ich:</div><div><br></div><div>=== Block 1: 13:04:01 Uhr</div><div><br></div><div><div>[Aug 28 13:04:01][chn0] Adding reading to queue (value=110296.13 ts=1503925438937)</div><div>[Aug 28 13:04:01][chn0] Buffer has 1 items</div><div>[Aug 28 13:04:01][chn0] Reading buffer: timestamp 1503925438937 value 110296.130000</div><div>[Aug 28 13:04:01][chn0] request body is measurement,uuid=6596fba0-<wbr>897b-11e7-acd8-43e26569567b value=110296.130000 1503925438937</div><div>[Aug 28 13:04:01][CURL] CURL: Found bundle for host localhost: 0x74a1b470 [can pipeline]</div><div>[Aug 28 13:04:01][CURL] CURL: Re-using existing connection! (#0) with host localhost</div><div>[Aug 28 13:04:01][CURL] CURL: Connected to localhost (::1) port 8086 (#0)</div><div>[Aug 28 13:04:01][CURL] CURL: Server auth using Basic with user 'vz'</div><div>[Aug 28 13:04:01][CURL] CURL: Header 'POST /write?db=vzlogger&precision=<wbr>ms HTTP/1.1</div><div>Host: localhost:8086</div><div>Authorization: Basic ...==</div><div>Accept: */*</div><div>Content-Length: 88</div><div>Content-Type: application/x-www-form-<wbr>urlencoded</div><div>' bytes</div><div>[Aug 28 13:04:01][CURL] CURL: Sent 88 bytes.. </div><div>[Aug 28 13:04:01][CURL] CURL: Sent 'measurement,uuid=6596fba0-<wbr>897b-11e7-acd8-43e26569567b value=110296.130000 1503925438937</div></div><div><br></div><div>=== Block 2: 13:04:06 Uhr<br></div><div><br></div><div><div>[Aug 28 13:04:06][chn0] Adding reading to queue (value=110296.13 ts=1503925444500)</div><div>[Aug 28 13:04:06][chn0] Buffer has 1 items</div><div>[Aug 28 13:04:06][chn0] Reading buffer: timestamp 1503925444500 value 110296.130000</div><div>[Aug 28 13:04:06][chn0] request body is measurement,uuid=6596fba0-<wbr>897b-11e7-acd8-43e26569567b value=110296.130000 1503925444500</div><div>[Aug 28 13:04:06][CURL] CURL: Found bundle for host localhost: 0x74a1b470 [can pipeline]</div><div>[Aug 28 13:04:06][CURL] CURL: Re-using existing connection! (#0) with host localhost</div><div>[Aug 28 13:04:06][CURL] CURL: Connected to localhost (::1) port 8086 (#0)</div><div>[Aug 28 13:04:06][CURL] CURL: Server auth using Basic with user 'vz'</div><div>[Aug 28 13:04:06][CURL] CURL: Header 'POST /write?db=vzlogger&precision=<wbr>ms HTTP/1.1</div><div>Host: localhost:8086</div><div>Authorization: Basic ...==</div><div>Accept: */*</div><div>Content-Length: 88</div><div>Content-Type: application/x-www-form-<wbr>urlencoded</div><div>' bytes</div><div>[Aug 28 13:04:06][CURL] CURL: Sent 88 bytes.. </div><div>[Aug 28 13:04:06][CURL] CURL: Sent 'measurement,uuid=6596fba0-<wbr>897b-11e7-acd8-43e26569567b value=110296.130000 1503925444500</div></div><div><br></div><div>Wenn ich mir die Diskussion unter <a href="https://github.com/volkszaehler/vzlogger/issues/98" target="_blank">https://github.com/<wbr>volkszaehler/vzlogger/issues/<wbr>98</a> anschaue, sollte das doch durch den interval-Parameter unterbunden werden. Hier wird jedoch anscheinend derselbe Wert innerhalb von 5 Sekunden erneut versendet.</div><div><br></div><div>Habe den aktuellen master ausgecheckt.</div><div><br></div><div>Bug oder Fehlkonfiguration? :-)</div><div><br></div><div>Danke und Grüße</div><div>Kai</div><div><br></div></div>
</blockquote></div></div>