[vz-users] (no subject)

Sascha Bernhardt sascha.bernhardt at gmail.com
Sun Nov 18 20:37:34 CET 2018


Hallo zusammen,

ich nutze einen Raspi Zero um mit vzlogger die Daten meines Strom +
Gaszählers einzusammeln und auf eine entfernte mysql und influxdb zu
schreiben.

Beim Stromzähler funktioniert alles in beide Datenbanken. Bei Gas werden
die Impulse von Udos Platine leider nur in de mysql Datenbank geschrieben.
Es scheint so al würde nicht mel ein Versuch unternommen in Influx zu
schreiben (im query Log finde ich jedenfalls gar nichts).

Hier ein Auszug meiner vzlogger.con

{
  "retry": 0,
  "daemon": true,
  // 0 = log_error or log-warning, 5 = log_info, 10 = log-debug, 15 =
log_finest
  "verbosity": 15,
  "log": "/tmp/vzlogger.log",
  "local": {
    "enabled": false,
    "port": 8080,
    "index": true,
    "timeout": 0,
    "buffer": 0
  },
//  "push": [
//    {
//      "url": "http://127.0.0.1:5582"
//    }
//  ],
  "meters": [
    // Gaszaehler
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "use_local_time": true,
      "channels": [
        {
          "uuid": "be79a9e0-4751-11e6-a5cd-9fb3489f828d",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://192.168.169.36:8090/",
          "aggmode": "sum",
          "duplicates": 0
        },
        {
          // Influxdb Config
          "api": "influxdb",
          "host": "192.168.169.29:8086",
          "database": "vzlogger",
          "measurement_name": "vz_measurement",
          "tags": "type=Gas,source=impulse",
          //"username": "vzlogger",
          //"password": "metering",
          "timeout": 30,
          // Meter Config
          "uuid": "be79a9e0-4751-11e6-a5cd-9fb3489f828d",
          "identifier": "impulse",
          "aggmode": "sum",
          "resolution": 100,
          "send_zero": true,
          "debounce_delay": 30,
          "nonblocking_delay": 100000,
          "use_local_time": true
        }
      ],
      "protocol": "s0",
      "gpio": 17,
      "send_zero": false,
      "configureGPIO": true,
      "debounce_delay": 0
    },

Anbei auch der Log einer Uhrzeit an welcher erfolgreich in die mysql DB
geschrieben wurde.

[Nov 18 20:27:36][S0]   MeterS0:HWIF_GPIO:first poll returned 1
[Nov 18 20:27:37][s0]   Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Nov 18 20:27:37][mtr0] Got 2 new readings from meter:
[Nov 18 20:27:37][mtr0] Reading: id=Power/StringIdentifier: value=34.14
ts=1542569256609
[Nov 18 20:27:37][mtr0] Reading: id=Impulse/StringIdentifier: value=1.00
ts=1542569256609
[Nov 18 20:27:37][chn0] Adding reading to queue (value=1.00
ts=1542569256609)
[Nov 18 20:27:37][SUM]  1.000000 @ 1542569256609
[Nov 18 20:27:37][SUM]  RESULT 1.000000 @ 1542569256609
[Nov 18 20:27:37][chn0] ==> number of tuples: 1
[Nov 18 20:27:37][chn0] compare: 1542569151150 1542569256609
[Nov 18 20:27:37][chn0] copied 1/1 values for middleware transmission
[Nov 18 20:27:37][chn0] JSON request body: [ [ 1542569256609, 1 ] ]
[Nov 18 20:27:37][chn0] CURL: Connection 24215 seems to be dead!
[Nov 18 20:27:37][chn0] CURL: Closing connection 24215
[Nov 18 20:27:37][chn0] CURL: Hostname was found in DNS cache
[Nov 18 20:27:37][chn0] CURL:   Trying 192.168.169.36...
[Nov 18 20:27:37][chn1] Buffer has 0 items
[Nov 18 20:27:37][chn1] Nothing to send to InfluxDB api
[Nov 18 20:27:37][chn0] CURL: Connected to 192.168.169.36 (192.168.169.36)
port 8090 (#24216)
[Nov 18 20:27:37][chn0] CURL: Sent 24 bytes..
[Nov 18 20:27:37][chn0] CURL: Sent '[ [ 1542569256609, 1 ] ]' bytes
[Nov 18 20:27:37][chn0] CURL: upload completely sent off: 24 out of 24 bytes
[Nov 18 20:27:37][chn0] CURL: Received 37 bytes
[Nov 18 20:27:37][chn0] CURL: Received '1a

{"version":"0.3","rows":1}

0



' bytes
[Nov 18 20:27:37][chn0] CURL: Connection #24216 to host 192.168.169.36 left
intact
[Nov 18 20:27:37][chn0] CURL Request succeeded with code: 200
[Nov 18 20:27:37][chn0] emptied all (1) values
[Nov 18 20:27:37][S0]   MeterS0:HWIF_GPIO:first poll returned 0


Hat da jemand ne Idee oder sieht jemand nen Konfigfehler? Vzlogger Version
0.6.1
Danke für die Hilfe

Gruß Sascha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20181118/071f8ea3/attachment.html>


More information about the volkszaehler-users mailing list