[vz-users] vzlogger 0.4.4 läuft, liefert aber keine Daten an die middleware

Bernd Gewehr Bernd at gewehr.net
Sun Aug 2 18:59:08 CEST 2015


Und auch mit  "configureGPIO": false, kein besseres Ergebnis, nur ein 
anderes:

[Aug 02 18:57:13]       Opened logfile /var/log/vzlogger.log
[Aug 02 18:57:13][push] No pushDataServer defined.
[Aug 02 18:57:13][]     ===> Start meters
[Aug 02 18:57:13][mtr0] Meter connection established
[Aug 02 18:57:13][mtr0] Meter thread started
[Aug 02 18:57:13][mtr0] Meter is opened. Starting channels.
[Aug 02 18:57:13][chn0] Logging thread started
[Aug 02 18:57:13][chn1] Logging thread started
[Aug 02 18:57:13][mtr1] Cannot open meter
[Aug 02 18:57:13][]     Startup failed: Meter open failed.

obwohl ich in der rc.local wieder 17 und 18 manuell exportiert habe.

Sorry, ich komme nicht weiter.

Mit den besten Grüßen

Bernd Gewehr

Burgstr. 45F
45289 Essen
02014784606
015209328236
-----Ursprüngliche Nachricht----- 
From: Bernd Gewehr
Sent: Sunday, August 02, 2015 6:47 PM
To: volkszaehler.org - users
Subject: Re: [vz-users]vzlogger 0.4.4 läuft, liefert aber keine Daten an die 
middleware

erledigt:

{
  "retry": 30,
  "daemon": true,
  "verbosity": 5,
  "log": "/var/log/vzlogger.log",
  "push": [],
  "local": {
    "enabled": false,
    "port": 8080,
    "index": false,
    "timeout": 0,
    "buffer": 0
  },
  "meters": [
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "635481a0-6fcd-11e2-8587-eda25228f8bf",
          "identifier": "1-0:1.7.1*",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "ebb9c9b0-7058-11e2-b5ed-d12ec87a3a7f",
          "identifier": "1-0:1.8.1",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "sml",
      "host": "",
      "device": "/dev/ttyAMA0",
      "pullseq": "",
      "baudrate": 9600,
      "parity": "8n1"
    },
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "8102dbc0-6fcd-11e2-a8b7-a1307aa80770",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "s0",
      "device": "",
      "gpio": 17,
      "mmap": "",
      "gpio_dir": -1,
      "configureGPIO": true,
      "resolution": 1000,
      "debounce_delay": 10000,
      "nonblocking_delay": 100000
    },
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "89a19f80-6fcd-11e2-be46-d7713e888ef4",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "s0",
      "device": "",
      "gpio": 18,
      "mmap": "",
      "gpio_dir": -1,
      "configureGPIO": true,
      "resolution": 100,
      "debounce_delay": 30,
      "nonblocking_delay": 100000
    },
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "fc73fdb0-831f-11e2-ab63-050a66acca61",
          "identifier": "*28-000004858252",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "3a513760-89c9-11e2-8948-81bd1f67b0d0",
          "identifier": "28-000004854a62",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "27fd1e00-89c9-11e2-bc92-c922d3bff0dc",
          "identifier": "28-0000048553f3",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "3c391a00-8a11-11e2-92ec-0d9f1daff99d",
          "identifier": "28-00000484d527",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "2dd2cb00-8a11-11e2-b8a9-214e007465a4",
          "identifier": "28-000004851d7e",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "16a5a410-8a11-11e2-bfb5-55e9d027a1f8",
          "identifier": "28-00000484c3e1",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "1e6e25a0-8a11-11e2-96be-cd4b755a40c6",
          "identifier": "28-000004857e63",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        },
        {
          "uuid": "2414a2e0-8a11-11e2-8319-eb6370d8f760",
          "identifier": "28-000004856747",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "w1therm"
    }
  ]
}

Dennoch:

Konsole:
pi at volkszaehler ~ $ sudo service vzlogger restart
[....] Restarting smartmetering server: vzlogger[Aug 02 18:45:11][main]
vzlogger v0.4.4 based on heads/master-0-gccbc8f6625 from Thu, 30 Jul 2015
20:56:52 +0200 started.
[Aug 02 18:45:11][push] Ignoring push entry due to empty array or duplicate
section
[Aug 02 18:45:11]       New meter initialized (protocol=sml)
[Aug 02 18:45:11][chn0] New channel initialized (uuid=...28f8bf
api=volkszaehler id=1-0:1.7.1*)
[Aug 02 18:45:11][chn1] New channel initialized (uuid=...7a3a7f
api=volkszaehler id=1-0:1.8.1)
[Aug 02 18:45:11][s0]   unknown option for mmap (). Falling back to normal
gpio.
[Aug 02 18:45:11]       New meter initialized (protocol=s0)
[Aug 02 18:45:11][chn2] New channel initialized (uuid=...a80770
api=volkszaehler id=Impulse)
[Aug 02 18:45:11][s0]   unknown option for mmap (). Falling back to normal
gpio.
[Aug 02 18:45:11]       New meter initialized (protocol=s0)
[Aug 02 18:45:11][chn3] New channel initialized (uuid=...888ef4
api=volkszaehler id=Impulse)
[Aug 02 18:45:11]       New meter initialized (protocol=w1therm)
[Aug 02 18:45:11][chn4] New channel initialized (uuid=...acca61
api=volkszaehler id=*28-000004858252)
[Aug 02 18:45:11][chn5] New channel initialized (uuid=...67b0d0
api=volkszaehler id=28-000004854a62)
[Aug 02 18:45:11][chn6] New channel initialized (uuid=...bff0dc
api=volkszaehler id=28-0000048553f3)
[Aug 02 18:45:11][chn7] New channel initialized (uuid=...aff99d
api=volkszaehler id=28-00000484d527)
[Aug 02 18:45:11][chn8] New channel initialized (uuid=...7465a4
api=volkszaehler id=28-000004851d7e)
[Aug 02 18:45:11][chn9] New channel initialized (uuid=...27a1f8
api=volkszaehler id=28-00000484c3e1)
[Aug 02 18:45:11][chn10]New channel initialized (uuid=...5a40c6
api=volkszaehler id=28-000004857e63)
[Aug 02 18:45:11][chn11]New channel initialized (uuid=...d8f760
api=volkszaehler id=28-000004856747)
[Aug 02 18:45:11][main] log level is 5
[Aug 02 18:45:11]       Daemonize process...
. ok

Log:
[Aug 02 17:51:21]       Opened logfile /var/log/vzlogger.log
[Aug 02 17:51:21][push] pushdata_thread created.
[Aug 02 17:51:21][]     ===> Start meters
[Aug 02 17:51:21][mtr0] Meter connection established
[Aug 02 17:51:21][mtr0] Meter thread started
[Aug 02 17:51:21][mtr0] Meter is opened. Starting channels.
[Aug 02 17:51:21][push] Start push_data_thread
[Aug 02 17:51:21][chn0] Logging thread started
[Aug 02 17:51:21][chn1] Logging thread started
[Aug 02 17:51:21][s0]   counter_thread created
[Aug 02 17:51:21][chn0] Start logging thread for volkszaehler-api. Running
as daemon: yes
[Aug 02 17:51:21][chn1] Start logging thread for volkszaehler-api. Running
as daemon: yes
[Aug 02 17:51:21][chn1] Using default volkszaehler api.
[Aug 02 17:51:21][mtr0] Number of readers: 32
[Aug 02 17:51:21][mtr0] Config.daemon: 1
[Aug 02 17:51:21][mtr0] Config.local: 0
[Aug 02 17:51:21][s0]   Counter thread started with blocking hwif
[Aug 02 17:51:21][S0]   MeterS0:HWIF_GPIO:first poll returned 1
[Aug 02 17:51:21][mtr1] Meter connection established
[Aug 02 17:51:21][chn0] Using default volkszaehler api.
[Aug 02 17:51:21][mtr1] Meter thread started
[Aug 02 17:51:21][mtr1] Meter is opened. Starting channels.
[Aug 02 17:51:21][chn2] Logging thread started
[Aug 02 17:51:21][s0]   counter_thread created
[Aug 02 17:51:21][mtr2] Meter connection established
[Aug 02 17:51:21][mtr2] Meter thread started
[Aug 02 17:51:21][s0]   Counter thread started with blocking hwif
[Aug 02 17:51:21][mtr1] Number of readers: 4
[Aug 02 17:51:21][mtr1] Config.daemon: 1
[Aug 02 17:51:21][mtr1] Config.local: 0


Mit den besten Grüßen

Bernd
-----Ursprüngliche Nachricht----- 
From: Udo1
Sent: Sunday, August 02, 2015 6:01 PM
To: volkszaehler-users at demo.volkszaehler.org
Subject: Re: [vz-users] vzlogger 0.4.4 läuft, liefert aber keine Daten an
die middleware


Am 02.08.2015 um 16:55 schrieb Bernd Gewehr:
>   "channels": [
>        {
>          "uuid": "89a19f80-6fcd-11e2-be46-d7713e888ef4",
>          "identifier": "",
>          "api": "volkszaehler",
>          "middleware": "http://localhost/middleware.php",
>          "secretKey": "",
>          "type": "device",
>          "scaler": 1,
>          "aggmode": "none",
>          "duplicates": 0
Da und bei allen anderen S0-Eingängen fehlt: "identifier": "Impulse",

Gruß
Udo



More information about the volkszaehler-users mailing list