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

Bernd Gewehr Bernd at gewehr.net
Sun Aug 2 16:55:29 CEST 2015


OK, die rc.local ist clean!

hier die vzlogger.conf

cat /etc/vzlogger.conf
/**
* vzlogger configuration
*
* 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": 30,
  "daemon": true,
  "verbosity": 15,
  "log": "/var/log/vzlogger.log",
  "push": [
    {
      "url": ""
    }
  ],
  "local": {
    "enabled": false,
    "port": 8080,
    "index": false,
    "timeout": 0,
    "buffer": 0
  },
  "meters": [
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "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
        },
        {
          "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
        }
      ],
      "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": "",
          "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,
      "sendzero": 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": "",
          "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,
      "sendzero": 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"
    }
  ]
}

Die Ausgabe in die Konsole:
pi at volkszaehler ~ $ sudo service vzlogger restart
[....] Restarting smartmetering server: vzlogger[Aug 02 16:52:46][main] 
vzlogger v0.4.4 based on heads/master-0-gccbc8f6625 from Thu, 30 Jul 2015 
20:56:52 +0200 started.
[Aug 02 16:52:46][mtr0] Creating new meter with protocol sml.
[Aug 02 16:52:46][sml]  pullseq len:0 found
[Aug 02 16:52:46][mtr0] Meter configured, enabled.
[Aug 02 16:52:46]       New meter initialized (protocol=sml)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn0] New channel initialized (uuid=...7a3a7f 
api=volkszaehler id=1-0:1.8.1)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn1] New channel initialized (uuid=...28f8bf 
api=volkszaehler id=1-0:1.7.1*)
[Aug 02 16:52:46][mtr1] Creating new meter with protocol s0.
[Aug 02 16:52:46][s0]   unknown option for mmap (). Falling back to normal 
gpio.
[Aug 02 16:52:46][mtr1] Meter configured, enabled.
[Aug 02 16:52:46]       New meter initialized (protocol=s0)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn2] New channel initialized (uuid=...a80770 
api=volkszaehler id=)
[Aug 02 16:52:46][mtr2] Creating new meter with protocol s0.
[Aug 02 16:52:46][s0]   unknown option for mmap (). Falling back to normal 
gpio.
[Aug 02 16:52:46][mtr2] Meter configured, enabled.
[Aug 02 16:52:46]       New meter initialized (protocol=s0)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn3] New channel initialized (uuid=...888ef4 
api=volkszaehler id=)
[Aug 02 16:52:46][mtr3] Creating new meter with protocol w1therm.
[Aug 02 16:52:46][mtr3] Meter configured, enabled.
[Aug 02 16:52:46]       New meter initialized (protocol=w1therm)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn4] New channel initialized (uuid=...acca61 
api=volkszaehler id=*28-000004858252)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn5] New channel initialized (uuid=...67b0d0 
api=volkszaehler id=*28-000004854a62)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn6] New channel initialized (uuid=...bff0dc 
api=volkszaehler id=*28-0000048553f3)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn7] New channel initialized (uuid=...aff99d 
api=volkszaehler id=*28-00000484d527)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn8] New channel initialized (uuid=...7465a4 
api=volkszaehler id=*28-000004851d7e)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn9] New channel initialized (uuid=...27a1f8 
api=volkszaehler id=*28-00000484c3e1)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn10]New channel initialized (uuid=...5a40c6 
api=volkszaehler id=*28-000004857e63)
[Aug 02 16:52:46]       Configure channel.
[Aug 02 16:52:46][chn11]New channel initialized (uuid=...d8f760 
api=volkszaehler id=*28-000004856747)
[Aug 02 16:52:46]       Have 4 meters.
[Aug 02 16:52:46][main] log level is 15
[Aug 02 16:52:46][main] daemon=1, local=0
[Aug 02 16:52:46]       Daemonize process...
. ok



und der log beim Start des daemons:
[Aug 02 16:52:46]       Opened logfile /var/log/vzlogger.log
[Aug 02 16:52:46][push] pushdata_thread created.
[Aug 02 16:52:46][]     ===> Start meters
[Aug 02 16:52:46][mtr0] Meter connection established
[Aug 02 16:52:46][mtr0] Meter thread started
[Aug 02 16:52:46][mtr0] Meter is opened. Starting channels.
[Aug 02 16:52:46][chn0] Logging thread started
[Aug 02 16:52:46][chn1] Logging thread started
[Aug 02 16:52:46][push] Start push_data_thread
[Aug 02 16:52:46][chn0] Start logging thread for volkszaehler-api. Running 
as daemon: yes
[Aug 02 16:52:46][chn0] Using default volkszaehler api.
[Aug 02 16:52:46][mtr0] Number of readers: 32
[Aug 02 16:52:46][mtr0] Config.daemon: 1
[Aug 02 16:52:46][mtr0] Config.local: 0
[Aug 02 16:52:46][chn1] Start logging thread for volkszaehler-api. Running 
as daemon: yes
[Aug 02 16:52:46][chn1] Using default volkszaehler api.
[Aug 02 16:52:46][s0]   counter_thread created
[Aug 02 16:52:46][mtr1] Meter connection established
[Aug 02 16:52:46][mtr1] Meter thread started
[Aug 02 16:52:46][mtr1] Meter is opened. Starting channels.
[Aug 02 16:52:46][chn2] Logging thread started
[Aug 02 16:52:46][s0]   counter_thread created
[Aug 02 16:52:46][mtr2] Meter connection established
[Aug 02 16:52:46][mtr2] Meter thread started
[Aug 02 16:52:46][mtr2] Meter is opened. Starting channels.
[Aug 02 16:52:46][chn3] Logging thread started
[Aug 02 16:52:46][w1t]  scanW1devices failed!
[Aug 02 16:52:46][mtr3] Cannot open meter
[Aug 02 16:52:46][]     Startup failed: Meter open failed.




Mit den besten Grüßen

Bernd Gewehr

Burgstr. 45F
45289 Essen
02014784606
015209328236
-----Ursprüngliche Nachricht----- 
From: Udo1
Sent: Sunday, August 02, 2015 4:46 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:15 schrieb Bernd Gewehr:
> Siehe hier:
> https://github.com/volkszaehler/vzlogger/issues/191
Die Einträge in der rc.local brauchst du nicht mehr.
> |echo 17 > /sys/class/gpio/export && echo "rising" > 
> /sys/class/gpio/gpio17/edge echo 18 > /sys/class/gpio/export && echo 
> "rising" > /sys/class/gpio/gpio18/edge|

Gruß
Udo



More information about the volkszaehler-users mailing list