[vz-users] Frage zu IR-Schreib-Lesekopf vom UDO

Udo1 udo1 at gmx.net
Wed Jun 19 13:26:22 CEST 2013


Am 19.06.2013 11:50, schrieb "Günther Fixl":
> Meine aktuelle vzlogger.conf:
> {
> "retry" : 30,                 /* how long to sleep between failed 
> requests, in seconds */
> "daemon": true,               /* run periodically */
> //"foreground" : true, /* dont run in background (prevents forking) */
> //"verbosity" : 5, /* between 0 and 15 */
> //"log" : "/var/log/vzlogger_3.log",/* path to logfile, optional */
> "local" : {
>         "enabled" : true, /* 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" : true, /* disabled meters will be ignored */
>         "protocol" : "sml", /* see 'vzlogger -h' for list of available 
> protocols */
>         "device" : "/dev/ttyUSB0",
>         "channels": [{
>                 "uuid" : "5ad49c40-d89d-11e2-be12-8b043936d99d",
>                 "middleware" : "http://localhost/middleware.php",
>                 "identifier" : "1-0:2.8.0" /* Gesamtstromverbrauch 
> Hauszaehler */
>                 }]
>         }
> ]}
> Meine /etc/rc.local
>    stty -F /dev/ttyUSB0 300 -parity -cstopb
>    /usr/local/bin/vzlogger -o /var/log/vzlogger.log -c /etc/vzlogger.conf

Und noch einmal:
Du solltest die vzlogger-Version von Peter Evertz verwenden. Denn darin 
kannst du die Baudrate, das Frameformat und die Aufforderungssequenz in 
der Config eintragen. Sonst wird das nie was.

https://github.com/peterevertz/vzlogger.git
Raspi-binary: http://www.peterevertz.net/vz/vzlogger.gz

Gruß
Udo


More information about the volkszaehler-users mailing list