/** * vzlogger configuration * * Use properly encoded JSON with javascript comments * * Take a look at the wiki for detailed information: * http://wiki.volkszaehler.org/software/controller/vzlogger#configuration * * For an online configuration editor refer to: * http://volkszaehler.github.io/vzlogger/ */ { // General settings "daemon": true, // run periodically "verbosity": 15, // log verbosity (0=log_alert, 1=log_error, 3=log_warning, 5=log_info, 10=log_debug, 15$ "log": "/var/log/vzlogger.log", // log file, optional "retry": 30, // http retry delay in seconds // Build-in HTTP server "local": { "enabled": false, // enable local HTTPd for serving live readings "port": 8081, // TCP port for local HTTPd "index": true, // provide index listing of available channels if no UUID was requested "timeout": 30, // timeout for long polling comet requests in seconds (0 disables comet) "buffer": 600 //"buffer": -1 // HTTPd buffer configuration for serving readings, default -1 // >0: number of seconds of readings to serve // <0: number of tuples to server per channel (e.g. -3 will serve 3 tuples) }, // Meter configuration "meters": [ { // Example SML meter "enabled": true, // disabled meters will be ignored (default) "allowskip": false, // errors when opening meter may be ignored if enabled "protocol": "sml", // meter protocol, see 'vzlogger -h' for full list "device": "/dev/ttyUSB0", // meter device "parity" : "8N1", "baudrate" : 9600, //"host": "http://my.ddns.net::7331", // uri if meter not locally connected using "aggtime": 10, // aggregate meter readings and send middleware update after s$ "aggfixedinterval" : true, "channels": [{ "api": "volkszaehler", // middleware api, default volkszaehler "uuid": "637a4680-7215-11eb-becf-8f5bdd6eb01a", "middleware": "http://localhost/middleware.php", "identifier": "1-0:1.8.0", // OBIS identifier (alias for '1-0:1.7.ff') "aggmode" : "MAX" }] }, ] }