[vz-users] vzlogger empfängt nichts

Sebastian Michel Sebastian_Michel at gmx.de
Tue Jul 17 21:31:10 CEST 2012


Hallo,

ich habe mir von Udo zwei optische Leseköpfe mit USB-Erweiterung schicken
lassen. Vielen Dank an Udo!

Aktueller Stand ist: Die Leseköpfe funktionieren. Ich kann seriell (9600
8N1) die Daten auslesen. Wenn ich mir die anschaue sehe ich die
Startsequenz 1B 1B 1B 1B.

Dann habe ich vzlogger aus dem Debian repository
http://packages.0l.de/debian/ installiert. Die Version ist 0.3.1. Die
Konfigurationsdatei sieht so aus:

{
"retry" : 30,                   /* how long to sleep between failed
requests, in seconds */
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */

"local" : {
        "enabled" : true,       /* should we start the local HTTPd for
serving live readings? */
        "port" : 8080,          /* the TCP port for the local HTTPd */
        "index" : true,         /* should we provide a index listing of
available channels? */
        "timeout" : 30,         /* timeout for long polling comet
requests, 0 disables comet, in seconds */
        "buffer" : 600          /* how long to buffer readings for the
local interface, in seconds */
},

"meters" : [{
        "enabled" : true,       /* disabled meters will be ignored */
        "protocol" : "sml",
        "interval" : 2,
        "connection" : "/dev/lesekopfS",
        "channel" : {
                "uuid" : "d495a390-f747-11e0-b3ca-f7890e45c7b2",
                "middleware" :
"http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php"
                }
        }
]}

Wenn ich dann vzlogger starte mit "vzlogger -c /etc/vzlogger.conf -f -v20"
starte, kommt nur:

[Jul 17 20:04:38]       Start parsing configuration from
/etc/vzlogger.conf
[Jul 17 20:04:38][mtr0] New meter initialized (protocol=sml,
connection=/dev/lesekopfS, interval=2)
[Jul 17 20:04:38][ch0]  New channel initialized (uuid=...45c7b2
middleware=http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php
obis=0-0:0.0.0*0)
[Jul 17 20:04:38]       Opened logfile /var/log/vzlogger.log
[Jul 17 20:04:38][mtr0] Meter connected
[Jul 17 20:04:38][mtr0] Meter thread started
[Jul 17 20:04:38][http] Starting local interface HTTPd on port 8080

Also ich hätte gedacht, dass vzlogger mir mitteilt, dass Daten gelesen
wurden. Es passiert aber nichts weiter. Der Zähler gibt auch selbständig
ohne Zuruf die Daten raus.
Wenn ich mich über http an Port 8080 verbinde, kommt:

{ "version": "0.2", "generator": "vzlogger", "data": [ { "uuid":
"d495a390-f747-11e0-b3ca-f7890e45c7b2", "middleware":
"http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php",
"interval": 2, "protocol": "sml", "tuples": [ ] } ] }

Also auch da gibts keine Daten.

Ich habe allerdings auch noch keine middleware installiert. Der channel
Eintrag in der Konfigurationsdatei ist also ungültig. Sollte es trotzdem
funktionieren?

Was kann ich noch machen? Ich weiß jetzt nicht mehr weiter.

Viele Grüße
Sebastian


More information about the volkszaehler-users mailing list