Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision |
hardware:channels:meters:power:edl-ehz:easymeter_q3d [2016/12/17 13:26] – [Hardware] udo1 | hardware:channels:meters:power:edl-ehz:easymeter_q3d [2018/03/19 20:05] – [Beispielkonfiguration] udo1 |
---|
===== Beispielkonfiguration ===== | ===== Beispielkonfiguration ===== |
Eine exemplarische vzlogger.conf: | Eine exemplarische vzlogger.conf: |
<code base|vzlogger-Test> | <code> |
{ | { |
"retry" : 0, /* how long to sleep between failed requests, in seconds */ | "retry" : 0, /* how long to sleep between failed requests, in seconds */ |
"daemon": true, /* run periodically */ | "daemon": true, /* run periodically */ |
"verbosity" : 15, /* between 0 and 15 */ | "verbosity" : 15, /* between 0 and 15 */ |
"log" : "/tmp/vzlogger.log",/* path to logfile, optional */ | "log" : "/var/log/vzlogger.log",/* path to logfile, optional */ |
| |
"local" : { | "local" : { |
// "enabled" : false, /* should we start the local HTTPd for serving live readings? */ | "enabled" : false, /* should we start the local HTTPd for serving live readings? */ |
"port" : 8080, /* the TCP port for the local HTTPd */ | "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? */ | "index" : true, /* should we provide a index listing of available channels if no UUID was requested? */ |
"buffer" : 600 /* how long to buffer readings for the local interface, in seconds */ | "buffer" : 600 /* how long to buffer readings for the local interface, in seconds */ |
}, | }, |
| "meters": [ |
"meters" : [ | { |
| "enabled": true, |
| "allowskip": false, |
| "interval": -1, |
| "aggtime": -1, |
| "aggfixedinterval": false, |
| "channels": [ |
| { |
| "uuid": "hier deine, beim Erstellen des Kanals im Frontend erhaltene UUID, eintragen", |
| "identifier": "1.8.0", |
| "api": "volkszaehler", |
| "middleware": "http://localhost/middleware.php", |
| "aggmode": "none", |
| "duplicates": 0 |
| } |
| ], |
{ | { |
"enabled" : true , | |
"protocol" : "d0", | "protocol" : "d0", |
"baudrate" : 9600, | "baudrate" : 9600, |
"interval" : 30, // Wartezeit bis zum nächsten Pull, NUR wenn Aufforderung notwendig. Sonst auskommentieren. | "interval" : 30, // Wartezeit bis zum nächsten Pull, NUR wenn Aufforderung notwendig. Sonst auskommentieren. |
} | } |
] | ] |
} | } |
</code> | </code> |