[vz-users] Fwd: keine Werte im Frontend

johannes johannes.wimmer006 at gmail.com
Tue Dec 6 18:17:40 CET 2016


Hallo,

Hier nun die gleiche Anfrage noch einmal etwas Verändert bitte diesen Thread verwenden. Danke!


ich bräuchte bitte kurz Hilfe, lese einen OSM Zähler aus, aber im
Volkszähler-Frontend werden keine Werte angezeigt. Den Kanal habe ich im
Frontend erstellt.


Wenn ich als "push-url" http://192.168.0.101/push/data.json verwende
bekomme ich Fehler 404 zurück und mit meiner aktuellen Einstellung 200
was ok sein sollte aber trozdem kommen keine Werte im Frontend an.


Meine Config ist die aktuelle vzlogger.conf.OSMmeter Datei an mein
System angepasst:

// General settings
     "daemon": false,        // run periodically
     "verbosity":15,         // log verbosity (0=log_error and
log_warning, 5=log_info, 10=log_debug, 15=log_finest)
     "log": "/var/log/vzlogger.log", // log file, optional
     "retry": 30,            // http retry delay in seconds

     // Build-in HTTP server
     "local": {
         "enabled": true,   // enable local HTTPd for serving live readings
         "port": 8080,       // TCP port for local HTTPd
         "index": true,      // provide index listing of available
channels if no UUID was requested
         "timeout": 30,      // timeout for long polling comet requests
in seconds (0 disables comet)
         "buffer": -1        // HTTPd buffer configuration for serving
readings, default -1
                             //   >0: number of seconds of readings to serve
                             //   <0: number of tuples to server per
channel (e.g. -3 will serve 3 tuples)
     },

     // realtime notification settings
     "push": [
         {
             "url": "http://192.168.0.101"  // notification destination,
e.g. frontend push-server
         }
     ],

     // Meter configuration

     "meters": [
         // example for OMS (M-Bus based) meter
         {
                 "enabled" : true,
                 "skip": false,
                 "interval": -1,
                 "aggtime": -60,
                 "aggfixedinterval": true,
                 "protocol": "oms",
                 "device": "/dev/ttyUSB0",
                 "baudrate": 9600, // optional default 9600
                 "key": "zensiert", // AES key
in hex without spaces. Needs to be exactly 32 chars
                 "mbus_debug": false, // optional provide additional
debug output from libmbus on the console/stderr/stdout

                 "channel": {                    // example channel.
multiple channels supported as well
                 "api": "volkszaehler",
                 "uuid": "072d3960-b230-11e6-b31e-292a827213ce",
                 "middleware": "http://127.0.0.1/middleware.php",
                 "identifier": "1.7.0"   // currently 1.7.0, 1.8.0,
2.7.0, 2.8.0 supported
             }

         }
     ]
}

und das ist meine Log-datei:

[Dec 06 17:45:10][main] vzlogger v0.6.0 based on
heads/master-0-g462c3077bd from Sun, 30 Oct 2016 15:07:12 +0100 started.
[Dec 06 17:45:10][mtr0] Creating new meter with protocol oms.
[Dec 06 17:45:10][oms]  Using libmbus version 0.8.0
[Dec 06 17:45:10][mtr0] Meter configured, enabled.
[Dec 06 17:45:10]       New meter initialized (protocol=oms)
[Dec 06 17:45:10]       Configure channel.
[Dec 06 17:45:10][chn0] New channel initialized (uuid=...7213ce
api=volkszaehler id=1.7.0)
[Dec 06 17:45:10]       Have 1 meters.
[Dec 06 17:45:10][main] log level is 15
[Dec 06 17:45:10][main] daemon=0, local=1
[Dec 06 17:45:10]       Process not  daemonized...
[Dec 06 17:45:10]       Opened logfile /var/log/vzlogger.log
[Dec 06 17:45:10][push] pushdata_thread created.
[Dec 06 17:45:10][]     ===> Start meters
[Dec 06 17:45:10][push] Start push_data_thread
[Dec 06 17:45:10][mtr0] Meter connection established
[Dec 06 17:45:10][mtr0] Meter thread started
[Dec 06 17:45:10][mtr0] Meter is opened. Starting channels.
[Dec 06 17:45:10][chn0] Logging thread not started
[Dec 06 17:45:10][http] Starting local interface HTTPd on port 8080
[Dec 06 17:45:10][]     Startup done.
[Dec 06 17:45:10][mtr0] Number of readers: 100
[Dec 06 17:45:10][mtr0] Config.daemon: 0
[Dec 06 17:45:10][mtr0] Config.local: 1
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:
[Dec 06 17:45:10][oms]  got valid mbus frame with len=95, type=4
control=73 controlinfo=5b address=f0
[Dec 06 17:45:10][oms]  got SND_UD without SND_NKE
[Dec 06 17:45:10][oms]  got SND_UD packet
[Dec 06 17:45:10][oms]  control_word = 0x550
[Dec 06 17:45:10][oms]  AES with dyn. init. vector for 5 16-byte blocks
plus 3 unencrypted data bytes
[Dec 06 17:45:10][oms]  successfully decrypted a frame
[Dec 06 17:45:10][oms]  got 10 data records: active mbus_debug for
detail infos
[Dec 06 17:45:10][oms]  DIF=06, NDIFE=00, DIFE1=00, VIF=6d, NVIFE=00
VIFE1=00 VIFE2=00
[Dec 06 17:45:10][oms]  time=2016-12-06 17:45:16
[Dec 06 17:45:10][oms]  DIF=04, NDIFE=00, DIFE1=00, VIF=03, NVIFE=00
VIFE1=00 VIFE2=00
[Dec 06 17:45:10][oms]  Obis 1.8.0 102505.000000 Energy (Wh)
[Dec 06 17:45:10][oms]  DIF=04, NDIFE=00, DIFE1=00, VIF=83, NVIFE=01
VIFE1=3c VIFE2=00
[Dec 06 17:45:10][oms]  Obis 2.8.0 7956.000000 Energy (Wh)
[Dec 06 17:45:10][oms]  DIF=84, NDIFE=01, DIFE1=10, VIF=fb, NVIFE=02
VIFE1=82 VIFE2=73
[Dec 06 17:45:10][oms]  DIF=84, NDIFE=01, DIFE1=10, VIF=fb, NVIFE=03
VIFE1=82 VIFE2=f3
[Dec 06 17:45:10][oms]  DIF=04, NDIFE=00, DIFE1=00, VIF=2b, NVIFE=00
VIFE1=00 VIFE2=00
[Dec 06 17:45:10][oms]  Obis 1.7.0 2018.000000 Power (W)
[Dec 06 17:45:10][oms]  DIF=04, NDIFE=00, DIFE1=00, VIF=ab, NVIFE=01
VIFE1=3c VIFE2=00
[Dec 06 17:45:10][oms]  Obis 2.7.0 0.000000 Power (W)
[Dec 06 17:45:10][oms]  DIF=04, NDIFE=00, DIFE1=00, VIF=fb, NVIFE=01
VIFE1=14 VIFE2=00
[Dec 06 17:45:10][oms]  DIF=04, NDIFE=00, DIFE1=00, VIF=fb, NVIFE=02
VIFE1=94 VIFE2=3c
[Dec 06 17:45:10][oms]  DIF=04, NDIFE=00, DIFE1=00, VIF=83, NVIFE=02
VIFE1=ff VIFE2=04
[Dec 06 17:45:10][mtr0] Got 4 new readings from meter:
[Dec 06 17:45:11][mtr0] Reading:
id=255-255:1.8.0*255/ObisIdentifier:255-255:1.8.0*255 value=102505.00
ts=1481042716000
[Dec 06 17:45:11][mtr0] Reading:
id=255-255:2.8.0*255/ObisIdentifier:255-255:2.8.0*255 value=7956.00
ts=1481042716000
[Dec 06 17:45:11][mtr0] Reading:
id=255-255:1.7.0*255/ObisIdentifier:255-255:1.7.0*255 value=2018.00
ts=1481042716000
[Dec 06 17:45:11][mtr0] Reading:
id=255-255:2.7.0*255/ObisIdentifier:255-255:2.7.0*255 value=0.00
ts=1481042716000
[Dec 06 17:45:11][chn0] Adding reading to queue (value=2018.00
ts=1481042716000)
[Dec 06 17:45:11][push] push: { "data": [ { "uuid":
"072d3960-b230-11e6-b31e-292a827213ce", "tuples": [ [ 1481042716000,
2018 ] ] } ] }
[Dec 06 17:45:11][push] added to uuid 072d3960-b230-11e6-b31e-292a827213ce
[Dec 06 17:45:11][push] CURL Request to http://192.168.0.101 succeeded
with code: 200
[Dec 06 17:45:11][push] send ok to url http://192.168.0.101




kann mir da bitte Jemand weiter helfen.
lg Johannes



More information about the volkszaehler-users mailing list