Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |
howto:emh_pv-anlage [2021/01/20 12:15] – Initialzählerstand = aktueller Stand bei IBN jau | howto:emh_pv-anlage [2022/04/21 20:29] (aktuell) – vzlogger kann nur noch daemon, Logfile Ort geändert jau |
---|
{ | { |
"retry" : 0, /* how long to sleep between failed requests, in seconds */ | "retry" : 0, /* how long to sleep between failed requests, in seconds */ |
"daemon": false, /* run periodically */ | |
"verbosity" : 15, /* between 0 and 15 */ | "verbosity" : 15, /* between 0 and 15 */ |
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */ | "log" : "/var/log/vzlogger/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" : 8081, /* the TCP port for the local HTTPd */ |
"index" : true, /* should we provide a index listing of available channels? */ | "index" : true, /* should we provide a index listing of available channels? */ |
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */ | "timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */ |
| |
<code> | <code> |
vzlogger -c /etc/vzlogger.conf | sudo systemctl start vzlogger |
</code> | </code> |
| |
aufrufen, dann sollte eine Ausgabe in folgender Art auf dem Bildschirm erscheinen. | aufrufen, dann sollte im logfile ''/var/log/vzlogger/vzlogger.log'' sowas in der Art stehen: |
| |
<code> | <code> |
[Jan 15 22:30:42][mtr1] Reading: id=0-0:0.0.0*0/ObisItentifier:0-0:0.0.0*0 value=0.00 ts=0.000 | [Jan 15 22:30:42][mtr1] Reading: id=0-0:0.0.0*0/ObisItentifier:0-0:0.0.0*0 value=0.00 ts=0.000 |
[Jan 15 22:30:42][mtr1] Updating interval to 3 | [Jan 15 22:30:42][mtr1] Updating interval to 3 |
| </code> |
| |
| Vzlogger kann dann wieder beendet werden: |
| |
| <code> |
| sudo systemctl stop vzlogger |
</code> | </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 */ | |
"verbosity" : 15, /* between 0 and 15 */ | "verbosity" : 15, /* between 0 and 15 */ |
"log" : "/var/log/vzlogger.log", /* path to logfile, optional */ | "log" : "/var/log/vzlogger/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" : 80, /* the TCP port for the local HTTPd */ | "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? */ | "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 */ | "timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */ |