[vz-users] VZLogger erweitern

Frank Steenblock frank-steenblock at t-online.de
Mon Oct 19 19:31:26 CEST 2015


Moin.

Seit einiger Zeit lese ich meinen Zähler „EDS300S“ über den Lesekopf von Udo aus. Bisher immer nur den aktuellen Zählerstand. Nun speise ich durch meine PV-Anlage in das Netz ein und möchte den Zählerstand für die Einspeisung ebenfalls auslesen. Nun habe ich die vzlogger.conf erweitert und erhalte beim Neustart folgende Fehlermeldung:

[Oct 19 19:08:16]       Error in /etc/vzlogger.conf:35 quoted object property name expected at offset 19
[Oct 19 19:08:16]       Failed to parse configuration due to: Parse configuaration failed.

Was kann hier falsch sein?

Inhalt der 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,           /* how long to sleep between failed requests, in seconds */
"daemon": true,         /* run periodically */
//"foreground" : true,  /* dont run in background (prevents forking) */
"verbosity" : 1,        /* between 0 and 15 */
"log" : "/var/log/vzlogger.log", /* path to logfile, optional */

"local" : {
        "enabled" : false,      /* 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" : 600          /* how long to buffer readings for the local interface, in seconds */
},

"meters" : [{
        "enabled" : true,
        "protocol" : "sml",
        "device" : "/dev/ttyAMA0",  // baudrate: 9600, parity: 8N1  Documentation
        //"interval" : 180,  /* alternative to aggrgate */
        "aggtime" : 60, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */
        "aggfixedinterval" : true, /* round all timestamps to middleware to nearest aggtime */
        "channel" : {
                "uuid" : "edc16770-6113-11e4-8f4d-073a3f448d78",
                "middleware" : "http://localhost/middleware.php",
                "identifier" : "1-0:1.8.0", /* Wirkleistung */
                "aggmode" : "MAX" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/
                },{
                "uuid" : "e73731b0-767e-11e5-876f-a769065c4e9f",
                "middleware" : "http://localhost/middleware.php",
                "identifier" : "1-0:2.8.0", /* Wirkleistung Einspeisung */
                "aggmode" : "MAX" /* add all s0 intervals in the aggregation. P$
                } // channel
        }] // meters
} // end of config

Schöne Grüße
Frank


More information about the volkszaehler-users mailing list