Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * 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": 30, /* how long to sleep between failed requests, in seconds */
- "daemon": false, /* run periodically */
- "verbosity": 15, /* 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": 8080, /* 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": false, /* disabled meters will be ignored (default) */
- // "protocol": "sml", /* see 'vzlogger -h' for list of available protocols */
- // "host": "http://localhost/meinzaehler.dyndns.info:7331",
- // "channels": [{
- // "protocol": "vz", /* volkszaehler.org (default) */
- // "uuid": "fde8f1d0-c5d0-11e0-856e-f9e4360ced10",
- // "middleware": "http://localhost/middleware.php",
- // "identifier": "power" /* alias for '1-0:1.7.ff', see 'vzlogger -h' for list of available aliases */
- // }, {
- // "protocol": "vz", /* volkszaehler.org (default) */
- // "uuid": "a8da012a-9eb4-49ed-b7f3-38c95142a90c",
- // "middleware": "http://localhost/middleware.php",
- // "identifier": "counter"
- // }, {
- // "protocol": "vz", /* volkszaehler.org (default) */
- // "uuid": "d5c6db0f-533e-498d-a85a-be972c104b48",
- // "middleware": "http://localhost/middleware.php",
- // "identifier": "1-0:1.8.0" /* see 'vzlogger -v20' for an output with all available identifiers/OBIS ids */
- // }]
- // },
- // {
- // "enabled": false, /* disabled meters will be ignored */
- // "protocol": "s0",
- // "aggtime": 300, /* aggregate all signals and give one update to middleware every 300 seconds */
- // "aggfixedinterval": true, /* round all timestamps to middleware to nearest aggtime */
- // "device": "/dev/ttyUSB0",
- // "channel": {
- // "identifier": "Impulse", /* s0 meter knows "Impulse" and "Power" */
- // "uuid": "d495a390-f747-11e0-b3ca-f7890e45c7b2",
- // "middleware": "http://localhost/middleware.php",
- // "aggmode": "SUM" /* add all s0 intervals in the aggregation */
- // }
- // },
- {
- "enabled": true, /* disabled meters will be ignored (default) */
- "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' */
- // "ackseq": "063034310d0a", /* Antwortsequenz auf Zählerantwort,063030300d0a = 300bd, 063035300d0a = 9600bd */
- // "baudrate_read": 4800, /* Baudratenumschaltung auf gewünschte Baudrate, abhängig von Zählerantwort */
- // "aggtime": 20, /* in Sekunden */
- // "aggmode": "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 */
- // "baudrate_read": 4800, /* Baudratenumschaltung auf gewuenschte Baudrate, abhaengig von Zaehlerantwort */
- // "interval": 6,
- // "host" : "meinzaehler.dyndns.info:7331",
- "channels": [{
- "uuid" : "a4927850-8a26-11e4-a99e-2fea847d1e2c",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.8.0*FF" /* Wirkarbeit gesamt use 'vzlogger -v20' to see all available identifiers/OBIS ids */
- },{
- "uuid" : "b14a53e0-8a21-11e4-9cb0-8b49f372fe31",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.2.1*FF" /* Leistung Tarif 1, use 'vzlogger -v20' to see all available identifiers/OBIS ids */
- },{
- "uuid" : "234c1b00-8a22-11e4-8021-67656f826e63",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.2.2*FF" /* Leistung Tarif 2 */
- },{
- "uuid" : "719ff9a0-8a22-11e4-a686-0590ba635f43",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.6.1*FF" /* Max WirkLeistung Tarif 1 */
- },{
- "uuid" : "d0611220-8a29-11e4-a572-db29af695be8",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.6.2*FF" /* Max WirkLeistung Tarif 2 */
- },{
- "uuid" : "32227a10-8a23-11e4-bf53-83c7fba287de",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.8.1*FF" /* Wirkarbeit Zählerstand Tarif 1 */
- }
- ,{
- "uuid" : "3621eda0-8a29-11e4-944a-c94372a09df8",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.8.2*FF" /* Wirkarbeit Zählerstand Tarif 2 */
- }
- ,{
- "uuid" : "569efad0-8a29-11e4-8c84-e5d99cc10666",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.8.3*FF" /* Wirkarbeit Zählerstand Tarif 3 */
- }
- ,{
- "uuid" : "70fce340-8a29-11e4-a0e3-7dd853e054b3",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.8.4*FF" /* Wirkarbeit Zählerstand Tarif 4 */
- },{
- "uuid" : "669d0620-8a2c-11e4-9faf-6d6e7cdf434c",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.4.1*FF" /* aktueller Leistungsmittelwert tarif1 */
- },{
- "uuid" : "a2937b10-8a2c-11e4-b6bc-9751ce336215",
- "middleware" : "http://localhost/middleware.php",
- "identifier" : "255-255:1.4.2*FF" /* aktueller Leistungsmittelwert tarif2 */
- }] },
- // examples for non-device protocols
- {
- "enabled": false, /* disabled meters will be ignored */
- "protocol": "random",
- "interval": 2,
- "max": 40.0, /* has to be double! */
- "min": -5.0, /* has to be double! */
- "channel": {
- "uuid": "bac2e840-f72c-11e0-bedf-3f850c1e5a66",
- "middleware": "http://localhost/middleware.php"
- }
- },
- {
- "enabled": false, /* disabled meters will be ignored */
- "protocol": "file",
- "path": "/proc/loadavg",
- // "format": "$i $v $t", /* a format string for parsing complex logfiles */
- /* arbitrary text and whitespaces are allowed, see 'scanf()' */
- /* at least $v has to be used */
- /* $i => identifier, $v => value, $t => timestamp */
- "rewind": true, /* reset file pointer each interval to the beginning of the file */
- "interval": 2 /* of ommitted, we will try to listen on changes with inotify */
- },
- // examples for Flukso-based sensors
- // {
- // "enabled": false, /* disabled meters will be ignored */
- // "protocol": "fluksov2",
- // "fifo": "/var/spid/delta/out",
- // "channel": {
- // "uuid": "3b4da450-42a8-11e1-8b8d-c526d853edec",
- // "middleware": "http://localhost/middleware.php",
- // "identifier": "sensor0/power" /* or "sensor2/consumption" e.g. */
- // }
- // },
- // examples for MySmartGrid as middleware
- {
- "enabled": false, /* disabled meters will be ignored */
- "protocol": "d0", /* see 'vzlogger -h' for list of available protocols */
- "device": "/dev/ttyUSB2",
- "interval": 2,
- "resolution": 2000,
- "channels": [{
- "protocol": "mysmartgrid", /* use MySmartgrid as middleware protocol */
- "type": "sensor",
- "uuid": "01234567-9abc-def0-1234-56789abcdefe",
- "secretKey": "0123456789abcdef0123456789abcdef",
- "interval": 300,
- "middleware": "https://api.mysmartgrid.de:8443", /* identifier for measurement: 1-0:1.8.0 */
- "identifier": "1-0:1.8.0", /* see 'vzlogger -v20' for an output with all available identifiers/OBIS ids */
- "scaler": 1000 /* d0 counter is in kWh, so scaling is 1000 */
- }]
- },
- {
- "enabled": false, /* disabled meters will be ignored */
- "protocol": "sml", /* see 'vzlogger -h' for list of available protocols */
- "device": "/dev/ttyUSB0",
- "interval": 2,
- "resolution": 2000,
- "channels": [{
- "protocol": "mysmartgrid", /* use MySmartgrid as middleware protocol */
- "type": "sensor",
- "uuid": "01234567-9abc-def0-1234-56789abcdefe",
- "secretKey": "0123456789abcdef0123456789abcdef",
- "interval": 300,
- "middleware": "https://api.mysmartgrid.de:8443", /* identifier for measurement: 1-0:1.8.0 */
- "identifier": "1-0:1.8.0", /* see 'vzlogger -v20' for an output with all available identifiers/OBIS ids */
- "scaler": 1 /* sml counter is in Wh, so scaling is 1 */
- }]
- },
- {
- "enabled": false, /* disabled meters will be ignored */
- "protocol": "s0", /* see 'vzlogger -h' for list of available protocols */
- "device": "/dev/ttyUSB1",
- "interval": 2,
- "resolution": 2000,
- "channels": [{
- "protocol": "mysmartgrid", /* use MySmartgrid as middleware protocol */
- "type": "sensor",
- "uuid": "01234567-9abc-def0-1234-56789abcdefe",
- "secretKey": "0123456789abcdef0123456789abcdef",
- "interval": 300,
- "middleware": "https://api.mysmartgrid.de:8443", /* identifier for measurement: 1-0:1.8.0 */
- "identifier": "counter",
- "scaler": 1-0 /* s0 counter is in Wh */
- }]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement