[vz-users] Fehler in vzlogger.conf
Matthias Behr
mbehr at mcbehr.de
Sat Apr 18 23:51:09 CEST 2015
„channels“ leitet auch ein Array ein.
D.h. da fehlen die [ ] Klammern. („channels“ : [{…}],)
Gruß
Matthias
> Am 18.04.2015 um 23:37 schrieb Oliver Koch <reg_okoch at my.mail.de>:
>
> Hallo zusammen,
>
> ich habe mir heute für die vzlogger 0.4.0 Version eine neue vzlogger.conf erstellt, um meine beiden Itron Zähler über die Infarot S0 Schnittstelle auszulesen und bekomme die folgende Fehlermeldung:
>
> pi at raspberrypi ~ $ vzlogger
> [Apr 18 23:30:34][main] vzlogger v0.4.0 based on heads/master-0-g1e9c78a3b4 from Wed, 15 Apr 2015 07:35:06 +0200 started.
> [Apr 18 23:30:34][] parse configuration failed due to:
> [Apr 18 23:30:34] Failed to parse configuration due to: Not a valid Type
>
> Ich finde den Fehler einfach nicht. Könnt Ihr den Fehler erkennen? (siehe File oder Text)
>
> Danke schon mal
> Oliver
>
> /**
> * vzlogger configuration for Oliver Koch zum Auslesen über die S0 Infarotschnittstelle
> *
> * 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 */
> "verbosity" : 5, /* 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" : "s0", /* see 'vzlogger -h' for list of available protocols */
> "aggtime" : 300, /* aggregate all signals and give one update to middleware every 300 seconds */
> "device" : "/dev/ttyUSB1", /* Zweiwegezähler */
> "channels": {
> "identifier" : "Impulse",
> "uuid" : "9c960080-e60a-11e4-aef9-d5e3dca72b32", /* Kanal "Import + Export" */
> "middleware" : "http://localhost/volkszaehler.org/htdocs/middleware.php"
> }
> },
>
> {
> "enabled" : true,
> "skip" : false,
> "protocol" : "s0",
> "aggtime" : 300,
> "device" : "/dev/ttyUSB0", /* Generatorzähler */
> "channels" : {
> "identifier" : "Impulse",
> "uuid" : "d9b6b1c0-e60c-11e4-94f1-6bbf0e138f2b", /* Generator */
> "middleware" : "http://localhost/volkszaehler.org/htdocs/middleware.php"
> }
> }
> ]
> }
>
> <vzlogger.conf>
Gruß
Matthias
More information about the volkszaehler-users
mailing list