/** * 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" : 0, /* how long to sleep between failed requests, in seconds */ "verbosity" : 15, /* one of 0 = log_error and log_warning, 5 = log_info, 10 = log_debug, 15 = log_finest */ "log" : "/var/log/vzlogger/vzlogger.log", /* path to logfile, optional */ "local" : { "enabled" : false, /* local HTTPd for serving live readings, 'false' für Daten an die middleware !!! */ "port" : 8081, /* 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 */ }, "meters" : [{ /* Beispiel-Gaszähler-Kopf */ "enabled" : true, "protocol" : "s0", "device" : "/dev/ttyUSB0", "aggtime" : -1, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */ "aggfixedinterval" : false, /* round all timestamps to middleware to nearest aggtime, reduces accuracy, use only when needed */ "channels" : { "uuid" : "UUID des Kanals", "middleware" : "http://localhost/middleware.php", /* http://IP auf dem die Middleware läuft */ "identifier": "Impulse", /* counts the S0 impulses. Can also supply "Power" readings */ "aggmode" : "none" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/ } }] }