[vz-users] Trotz hohem duplicates-Intervall werden unveränderte Werte an die API weitergereicht

Frank Richter frank.richter83 at gmail.com
Mon Aug 28 16:29:45 CEST 2017


Hallo Kai,

könnte sein dass duplicates nur bei aktiver Aggregation wirkt. Bitte mal
aggtime und aggmode konfigurieren.

Grüße
Frank

Am 28.08.2017 15:14 schrieb "Kai Wiemer" <kawi.business at gmail.com>:

> Hallo zusammen,
>
> Trotz hohem duplicates-Intervall werden unveränderte Werte an die API
> weitergereicht. Meine Konfiguration lautet:
>
> /**
>  * use proper encoded JSON with javascript comments
>  *
>  * take a look at the wiki for detailed information:
>  * http://wiki.volkszaehler.org/software/controller/vzlogger#configuration
>  */
>
> {
>     "retry" : 0,
>     "daemon": true,
>     "verbosity": 99,
>     "log" : "/var/log/vzlogger.log",
>     "local" : {
>         "enabled" : false,
>         "port" : 8080,
>         "index" : true,
>         "timeout" : 0,
>         "buffer" : 0
>     },
>     "meters" : [{
>         "enabled": true,
>         "allowskip": false,
>         "interval": 0,
>         "aggtime": -1,
>         "aggfixedinterval": false,
>         "channels": [{
>                 "uuid": "6596fba0-897b-11e7-acd8-43e26569567b",
>                 "identifier": "255-255:1.8.0",
>                 "api": "influxdb",
>                 "host": "localhost:8086",
>                 "database": "vzlogger",
>                 "measurement_name": "measurement",
>                 "username": "vz",
>                 "password": "superSecurePassword123!!",
>                 "duplicates": 999999
>          }],
>         "protocol": "d0",
>         "device": "/dev/usb-ir-lesekopf",
>         "dump_file": "",
>         "pullseq": "2F3F210D0A",
>         "ackseq": "auto",
>         "baudrate": 300,
>         "baudrate_read": 9600,
>         "baudrate_change_delay": 500,
>         "parity": "7e1",
>         "read_timeout": 100
>     }]
> }
>
> In der Log-Datei sehe ich:
>
> === Block 1: 13:04:01 Uhr
>
> [Aug 28 13:04:01][chn0] Adding reading to queue (value=110296.13
> ts=1503925438937)
> [Aug 28 13:04:01][chn0] Buffer has 1 items
> [Aug 28 13:04:01][chn0] Reading buffer: timestamp 1503925438937 value
> 110296.130000
> [Aug 28 13:04:01][chn0] request body is measurement,uuid=6596fba0-897b-11e7-acd8-43e26569567b
> value=110296.130000 1503925438937
> [Aug 28 13:04:01][CURL] CURL: Found bundle for host localhost: 0x74a1b470
> [can pipeline]
> [Aug 28 13:04:01][CURL] CURL: Re-using existing connection! (#0) with host
> localhost
> [Aug 28 13:04:01][CURL] CURL: Connected to localhost (::1) port 8086 (#0)
> [Aug 28 13:04:01][CURL] CURL: Server auth using Basic with user 'vz'
> [Aug 28 13:04:01][CURL] CURL: Header 'POST /write?db=vzlogger&precision=ms
> HTTP/1.1
> Host: localhost:8086
> Authorization: Basic ...==
> Accept: */*
> Content-Length: 88
> Content-Type: application/x-www-form-urlencoded
> ' bytes
> [Aug 28 13:04:01][CURL] CURL: Sent 88 bytes..
> [Aug 28 13:04:01][CURL] CURL: Sent 'measurement,uuid=6596fba0-897b-11e7-acd8-43e26569567b
> value=110296.130000 1503925438937
>
> === Block 2: 13:04:06 Uhr
>
> [Aug 28 13:04:06][chn0] Adding reading to queue (value=110296.13
> ts=1503925444500)
> [Aug 28 13:04:06][chn0] Buffer has 1 items
> [Aug 28 13:04:06][chn0] Reading buffer: timestamp 1503925444500 value
> 110296.130000
> [Aug 28 13:04:06][chn0] request body is measurement,uuid=6596fba0-897b-11e7-acd8-43e26569567b
> value=110296.130000 1503925444500
> [Aug 28 13:04:06][CURL] CURL: Found bundle for host localhost: 0x74a1b470
> [can pipeline]
> [Aug 28 13:04:06][CURL] CURL: Re-using existing connection! (#0) with host
> localhost
> [Aug 28 13:04:06][CURL] CURL: Connected to localhost (::1) port 8086 (#0)
> [Aug 28 13:04:06][CURL] CURL: Server auth using Basic with user 'vz'
> [Aug 28 13:04:06][CURL] CURL: Header 'POST /write?db=vzlogger&precision=ms
> HTTP/1.1
> Host: localhost:8086
> Authorization: Basic ...==
> Accept: */*
> Content-Length: 88
> Content-Type: application/x-www-form-urlencoded
> ' bytes
> [Aug 28 13:04:06][CURL] CURL: Sent 88 bytes..
> [Aug 28 13:04:06][CURL] CURL: Sent 'measurement,uuid=6596fba0-897b-11e7-acd8-43e26569567b
> value=110296.130000 1503925444500
>
> Wenn ich mir die Diskussion unter https://github.com/
> volkszaehler/vzlogger/issues/98 anschaue, sollte das doch durch den
> interval-Parameter unterbunden werden. Hier wird jedoch anscheinend
> derselbe Wert innerhalb von 5 Sekunden erneut versendet.
>
> Habe den aktuellen master ausgecheckt.
>
> Bug oder Fehlkonfiguration? :-)
>
> Danke und Grüße
> Kai
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170828/afcf61ab/attachment.html>


More information about the volkszaehler-users mailing list