<div dir="ltr">Hallo Frans,<div><br></div><div>am Ende deiner config fehlt ein }, und "meters" erwartet ein Array [].</div><div>Und "enabled" sollte natürlich true sein, damit was passiert.</div><div>Versuchs mal so:</div><div><br></div><div><div>{</div><div>"retry" : 30, /* how long to sleep between failed requests, in seconds */</div><div>"daemon" : false, /* run periodically */</div><div>"verbosity" : 10, /* between 0 and 15 */</div><div>"log" : "/var/log/vzlogger.log", /* path to logfile, optional */</div><div><br></div><div>"local" : {</div><div>"enabled" : false, /* should we start the local HTTPd for serving live readings? */</div><div>"port" : 80, /* the TCP port for the local HTTPd */</div><div>"index" : true, /* should we provide a index listing of available channels if no UUID was requested? */</div><div>"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */</div><div>"buffer" : 600 /* how long to buffer readings for the local interface, in seconds */</div><div>},</div><div><br></div><div>"meters" : [{</div><div> "enabled" : true, /* disabled meters will be ignored */</div><div> "skip" : false, // if enabled, errors when opening meter will lead to meter being ignored</div><div> "protocol" : "d0", // see 'vzlogger -h' for list of available protocols</div><div> "device" : "/dev/ttyUSB0",</div><div> "parity" : "7E1", // oder 8N1</div><div> "baudrate" : 300, // oder 300</div><div> "pullseq" : "2F3F210D0A", // Pullsequenz in 'hex'</div><div>// "baudrate_read" : 300, // Baudratenumschaltung auf gewünschte Baudrate, abhängig von Zählerantwort</div><div>// "aggtime" : 20, // in Sekunden</div><div>// "aggmode" : "MAX", // "AVG" Mittelwert für Leistung, "MAX" für Zähler, "SUM" für Counter</div><div>// "interval" : 6, // Wartezeit in Sekunden bis neue Werte in die middleware übertragen werden</div><div><br></div><div> "channels": [{</div><div>"uuid" : "85c9d810-d77f-11e6-952d-67c8d61dfee8",</div><div>"middleware" : "<a href="http://localhost/middleware.php">http://localhost/middleware.php</a>",</div><div>"identifier" : "1.8.1" /* tarief hoog */</div><div>}, {</div><div>"uuid" : "8c5c03c0-d77f-11e6-8734-2b9f8e5b69ac",</div><div>"middleware" : "<a href="http://localhost/middleware.php">http://localhost/middleware.php</a>",</div><div>"identifier" : "1.8.2" /* tarief laag */</div><div>}, {</div><div>"uuid" : "708f75c0-d77f-11e6-bf8b-1934a5879030",</div><div>"middleware" : "<a href="http://localhost/middleware.php">http://localhost/middleware.php</a>",</div><div>"identifier" : "2.8.1" /* terug hoog */</div><div>}, {</div><div>"uuid" : "79a03670-d77f-11e6-b02e-f793e655dab2",</div><div>"middleware" : "<a href="http://localhost/middleware.php">http://localhost/middleware.php</a>",</div><div>"identifier" : "2.8.2" /* terug laag */</div><div>}]</div><div>}]</div><div>}</div></div><div><br></div><div>Gruß</div><div>Frank</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-11 23:12 GMT+01:00 Frans Oonk <span dir="ltr"><<a href="mailto:f-oonk@wxs.nl" target="_blank">f-oonk@wxs.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ich versuche nun seit stunden ein Projekt am Laufen zu bekommen. Bekommen aber die Meldung;<br>
<br>
root@<wbr>raspberrypiOpenEnergyMonitor:/<wbr>home/pi# vzlogger -o,<br>
[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.<br>
[Jan 11 23:09:09] Failed to parse configuration due to: configuration file incomplete, missing closing braces/parens?<br>
root@<wbr>raspberrypiOpenEnergyMonitor:/<wbr>home/pi#<br>
<br>
Kann mir eine Helfen und angeben was hier falsch ist?<br>
<br>
{<br>
"retry" : 30, /* how long to sleep between failed requests, in seconds */<br>
"daemon" : false, /* run periodically */<br>
"verbosity" : 10, /* between 0 and 15 */<br>
"log" : "/var/log/vzlogger.log", /* path to logfile, optional */<br>
<br>
"local" : {<br>
"enabled" : false, /* should we start the local HTTPd for serving live readings? */<br>
"port" : 80, /* the TCP port for the local HTTPd */<br>
"index" : true, /* should we provide a index listing of available channels if no UUID was requested? */<br>
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */<br>
"buffer" : 600 /* how long to buffer readings for the local interface, in seconds */<br>
},<br>
<br>
"meter" : {<br>
"enabled" : false, /* disabled meters will be ignored */<br>
"skip" : false, // if enabled, errors when opening meter will lead to meter being ignored<br>
"protocol" : "d0", // see 'vzlogger -h' for list of available protocols<br>
"device" : "/dev/ttyUSB0",<br>
"parity" : "7E1", // oder 8N1<br>
"baudrate" : 300, // oder 300<br>
"pullseq" : "2F3F210D0A", // Pullsequenz in 'hex'<br>
// "baudrate_read" : 300, // Baudratenumschaltung auf gewünschte Baudrate, abhängig von Zählerantwort<br>
// "aggtime" : 20, // in Sekunden<br>
// "aggmode" : "MAX", // "AVG" Mittelwert für Leistung, "MAX" für Zähler, "SUM" für Counter<br>
// "interval" : 6, // Wartezeit in Sekunden bis neue Werte in die middleware übertragen werden<br>
<br>
"channels": [{<br>
"uuid" : "85c9d810-d77f-11e6-952d-<wbr>67c8d61dfee8",<br>
"middleware" : "<a href="http://localhost/middleware.php" rel="noreferrer" target="_blank">http://localhost/middleware.<wbr>php</a>",<br>
"identifier" : "1.8.1" /* tarief hoog */<br>
}, {<br>
"uuid" : "8c5c03c0-d77f-11e6-8734-<wbr>2b9f8e5b69ac",<br>
"middleware" : "<a href="http://localhost/middleware.php" rel="noreferrer" target="_blank">http://localhost/middleware.<wbr>php</a>",<br>
"identifier" : "1.8.2" /* tarief laag */<br>
}, {<br>
"uuid" : "708f75c0-d77f-11e6-bf8b-<wbr>1934a5879030",<br>
"middleware" : "<a href="http://localhost/middleware.php" rel="noreferrer" target="_blank">http://localhost/middleware.<wbr>php</a>",<br>
"identifier" : "2.8.1" /* terug hoog */<br>
}, {<br>
"uuid" : "79a03670-d77f-11e6-b02e-<wbr>f793e655dab2",<br>
"middleware" : "<a href="http://localhost/middleware.php" rel="noreferrer" target="_blank">http://localhost/middleware.<wbr>php</a>",<br>
"identifier" : "2.8.2" /* terug laag */<br>
} ]<br>
}<br>
<br>
</blockquote></div><br></div>