[vz-users] [vzlogger] Lokaler httpd server läuft nicht

G. Stenzel GS-vzl at betriebsdirektor.de
Fri Apr 10 07:33:57 CEST 2015


Hallo Andreas

Kompiliert habe ich mit den Befehlen aus dem wiki:
http://wiki.volkszaehler.org/software/controller/vzlogger/installation_cpp-version

Config wäre diese:
{
    "retry": 30,            // how long to sleep between failed
requests, in seconds
    "daemon": false,        // run periodically
    "verbosity": 15,         // one of 0 = log_error and log_warning,
5 = log_info, 10 = log_debug, 15 = log_finest
    "log": "/home/pi/test/vzlogger/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 if no UUID was requested?
        "timeout": 30,      // timeout for long polling comet
requests, 0 disables comet, in seconds
        "buffer": -1       // how long to buffer readings for the
local interface, in seconds (if greater 0) or how many tuples to
return per channel if <0 (-3 = return 3 tuples), default -1
    },

    "meters": [
        {
            "enabled": true,               // disabled meters will be
ignored (default)
            "skip": false,                  // if enabled, errors when
opening meter will lead to meter being ignored
            "protocol": "sml",              // see 'vzlogger -h' for
list of available protocols
            "device" : "/dev/ttyUSB0",
            "channels": [{
                "api": "null",
				"uuid": "280",
                "identifier": "1-0:2.8.0", /* Einspeisung Hauszaehler
*/
            }, {
				"api": "null",
				"uuid": "180",
                "identifier": "1-0:1.8.0", /* Bezug Hauszaehler */
                }]
            }]
}

Gruß
Gernot


>Config file? Httpd mit eincompiliert?
>
>Viele Grüße, Andreas 
>
>
>
>> Am 10.04.2015 um 00:58 schrieb G. Stenzel <GS-vzl at betriebsdirektor.de>:
>> 
>> Hallo
>> 
>> Wie kann man denn prüfen, ob der Server läuft? vzlogger ist aktuell,
>> Abfrage des Zählers geht.
>> Log beim Start zeigt:
>> [Apr 10 00:50:22]       Opened logfile
>> /home/pi/test/vzlogger/vzlogger.log
>> [Apr 10 00:50:22][]     ===> Start meters
>> [Apr 10 00:50:22][mtr0] Meter connection established
>> [Apr 10 00:50:22][mtr0] Meter thread started
>> [Apr 10 00:50:22][mtr0] Meter is opened. Starting channels.
>> [Apr 10 00:50:22][]     Startup done.
>> [Apr 10 00:50:22][mtr0] Number of readers: 32
>> [Apr 10 00:50:22][mtr0] Config.daemon: 0
>> [Apr 10 00:50:22][mtr0] Config.local: 1
>> [Apr 10 00:50:25][mtr0] Got 7 new readings from meter:....
>> 
>> Wenn ich curl "localhost:8080" aufrufe, kommt: 
>> curl: (7) couldn't connect to host
>> 
>> Ein curl auf die lokale Middleware mit
>> curl "localhost/middleware.php/capabilities/database.json"
>> geht wiederum.
>> 
>> Viele Grüße
>> G.


More information about the volkszaehler-users mailing list