[vz-users] Frage

Frans Oonk f-oonk at wxs.nl
Thu Jan 12 11:09:46 CET 2017


Danke, der Teufel steckt im Detail, wie immer

 

Van: volkszaehler-users [mailto:volkszaehler-users-bounces at demo.volkszaehler.org] Namens Frank Richter
Verzonden: woensdag 11 januari 2017 23:23
Aan: volkszaehler.org - users
Onderwerp: Re: [vz-users] Frage

 

Hallo Frans,

 

am Ende deiner config fehlt ein }, und "meters" erwartet ein Array [].

Und "enabled" sollte natürlich true sein, damit was passiert.

Versuchs mal so:

 

{

"retry"         : 30,                                   /* how long to sleep between failed requests, in seconds */

"daemon"        : false,                                /* run periodically */

"verbosity"     : 10,                                   /* 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"          : 80,                                   /* 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,                                         /* disabled meters will be ignored */

            "skip"              : false,                        // if enabled, errors when opening meter will lead to meter being ignored

            "protocol"          : "d0",                         // see 'vzlogger -h' for list of available protocols

            "device"            : "/dev/ttyUSB0",

            "parity"            : "7E1",                        // oder 8N1

            "baudrate"          : 300,                          // oder 300

            "pullseq"           : "2F3F210D0A",                 // Pullsequenz in 'hex'

//          "baudrate_read"     : 300,                          // Baudratenumschaltung auf gewünschte Baudrate, abhängig von Zählerantwort

//          "aggtime"           : 20,                           // in Sekunden

//          "aggmode"           : "MAX",                        // "AVG"  Mittelwert für Leistung, "MAX" für Zähler, "SUM" für Counter

//          "interval"          : 6,                             // Wartezeit in Sekunden bis neue Werte in die middleware übertragen werden

 

             "channels":      [{

"uuid"         : "85c9d810-d77f-11e6-952d-67c8d61dfee8",

"middleware"   : "http://localhost/middleware.php",

"identifier"   : "1.8.1"                                       /* tarief hoog */

}, {

"uuid"         : "8c5c03c0-d77f-11e6-8734-2b9f8e5b69ac",

"middleware"   : "http://localhost/middleware.php",

"identifier"   : "1.8.2"                                      /* tarief laag */

}, {

"uuid"         : "708f75c0-d77f-11e6-bf8b-1934a5879030",

"middleware"   : "http://localhost/middleware.php",

"identifier"   : "2.8.1"                                      /* terug hoog */

}, {

"uuid"         : "79a03670-d77f-11e6-b02e-f793e655dab2",

"middleware"   : "http://localhost/middleware.php",

"identifier"   : "2.8.2"                                      /* terug laag */

}]

}]

}

 

Gruß

Frank

 

2017-01-11 23:12 GMT+01:00 Frans Oonk <f-oonk at wxs.nl>:

Ich versuche nun seit stunden ein Projekt am Laufen zu bekommen. Bekommen aber die Meldung;

root at raspberrypiOpenEnergyMonitor:/home/pi# vzlogger -o,
[Jan 11 23:09:09][main] vzlogger v0.6.0 based on heads/master-0-g1484f9aad1 from Mon, 22 Aug 2016 22:32:51 +0200 started.
[Jan 11 23:09:09]       Failed to parse configuration due to: configuration file incomplete, missing closing braces/parens?
root at raspberrypiOpenEnergyMonitor:/home/pi#

Kann mir eine Helfen und angeben was hier falsch ist?

{
"retry"         : 30,                                   /* how long to sleep between failed requests, in seconds */
"daemon"        : false,                                /* run periodically */
"verbosity"     : 10,                                   /* 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"          : 80,                                   /* 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 */
},

"meter"        : {
            "enabled"           : false,                                         /* disabled meters will be ignored */
            "skip"              : false,                        // if enabled, errors when opening meter will lead to meter being ignored
            "protocol"          : "d0",                         // see 'vzlogger -h' for list of available protocols
            "device"            : "/dev/ttyUSB0",
            "parity"            : "7E1",                        // oder 8N1
            "baudrate"          : 300,                          // oder 300
            "pullseq"           : "2F3F210D0A",                 // Pullsequenz in 'hex'
//          "baudrate_read"     : 300,                          // Baudratenumschaltung auf gewünschte Baudrate, abhängig von Zählerantwort
//          "aggtime"           : 20,                           // in Sekunden
//          "aggmode"           : "MAX",                        // "AVG"  Mittelwert für Leistung, "MAX" für Zähler, "SUM" für Counter
//          "interval"          : 6,                             // Wartezeit in Sekunden bis neue Werte in die middleware übertragen werden

             "channels":      [{
"uuid"         : "85c9d810-d77f-11e6-952d-67c8d61dfee8",
"middleware"   : "http://localhost/middleware.php",
"identifier"   : "1.8.1"                                       /* tarief hoog */
}, {
"uuid"         : "8c5c03c0-d77f-11e6-8734-2b9f8e5b69ac",
"middleware"   : "http://localhost/middleware.php",
"identifier"   : "1.8.2"                                      /* tarief laag */
}, {
"uuid"         : "708f75c0-d77f-11e6-bf8b-1934a5879030",
"middleware"   : "http://localhost/middleware.php",
"identifier"   : "2.8.1"                                      /* terug hoog */
}, {
"uuid"         : "79a03670-d77f-11e6-b02e-f793e655dab2",
"middleware"   : "http://localhost/middleware.php",
"identifier"   : "2.8.2"                                      /* terug laag */
} ]
}

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170112/e0eb5c58/attachment-0001.html>


More information about the volkszaehler-users mailing list