[vz-users] vzlogger #2

MrUniversum mr_universum at gmx.de
Fri Feb 1 23:50:29 CET 2013


Hi,
habe auf d0 umgestellt. ist aber immernoch unspektakulär:

*vzlogger  -f -v -c /etc/vzlogger.conf*
[Feb 01 23:45:08][mtr0] Creating new meter with protocol d0.
[Feb 01 23:45:09][mtr0] Meter configured.
[Feb 01 23:45:09]       New meter initialized (protocol=d0)
[Feb 01 23:45:09]       Configure channel.
[Feb 01 23:45:09][chn0] New channel initialized (uuid=...519118 
protocol=volkszaehler id=1-0:1.7.0)
[Feb 01 23:45:09]       Have 1 meters.
[Feb 01 23:45:09][main] foreground=1, daemon=1, local=1
[Feb 01 23:45:09]       NOT Daemonize process...
[Feb 01 23:45:09]       Opened logfile /var/log/vzlogger_3.log
[Feb 01 23:45:09][]     ===> Start meters.
[Feb 01 23:45:09][mtr0] Meter connection established
[Feb 01 23:45:09][mtr0] Meter thread started
[Feb 01 23:45:09][mtr0] meter is opened. Start channels.
[Feb 01 23:45:09][chn0] Logging thread started
[Feb 01 23:45:09][http] Starting local interface HTTPd on port 80
[Feb 01 23:45:09][mtr0] Number of readers: 32
[Feb 01 23:45:09][chn0] Start logging thread for volkszaehler-api. 
Running as daemon: yes
[Feb 01 23:45:09][mtr0] Config.daemon: 1
[Feb 01 23:45:09][]     Startup done.
[Feb 01 23:45:09][chn0] Using default api:
[Feb 01 23:45:09][mtr0] Config.local: 1

*logfile:*
[Feb 01 23:45:09]       Opened logfile /var/log/vzlogger_3.log
[Feb 01 23:45:09][]     ===> Start meters.
[Feb 01 23:45:09][mtr0] Meter connection established
[Feb 01 23:45:09][mtr0] Meter thread started
[Feb 01 23:45:09][mtr0] meter is opened. Start channels.
[Feb 01 23:45:09][chn0] Logging thread started
[Feb 01 23:45:09][http] Starting local interface HTTPd on port 80
[Feb 01 23:45:09][mtr0] Number of readers: 32
[Feb 01 23:45:09][chn0] Start logging thread for volkszaehler-api. 
Running as daemon: yes
[Feb 01 23:45:09][mtr0] Config.daemon: 1
[Feb 01 23:45:09][]     Startup done.
[Feb 01 23:45:09][mtr0] Config.local: 1
[Feb 01 23:45:09][chn0] Using default api:

*strace:*
[Feb 01 23:50:24][mtr0] Creating new meter with protocol d0.
[Feb 01 23:50:24][mtr0] Meter configured.
[Feb 01 23:50:24]       New meter initialized (protocol=d0)
[Feb 01 23:50:24]       Configure channel.
[Feb 01 23:50:24][chn0] New channel initialized (uuid=...519118 
protocol=volkszaehler id=1-0:1.7.0)
[Feb 01 23:50:24]       Have 1 meters.
[Feb 01 23:50:24][main] foreground=0, daemon=1, local=1
[Feb 01 23:50:24]       Daemonize process...

wie sollte das logfile normalerweise aussehen?


Am 01.02.2013 23:00, schrieb Michael Martin:
> Stellen mal das Protokoll auf d0 um. Das was dein Zähler spricht ist 
> kein Sml
>
> -- 
> Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail 
> gesendet.
>
>
>
> MrUniversum <mr_universum at gmx.de> schrieb:
>
>     Hallo zusammen,
>
>     nachdem ich die letzten tage ein paar test mit eigenen scripten
>     und visualisierung gemacht habe, würde ich jetzt gerne nochmal auf
>     vzlogger zurückkommen. meine ersten versuche waren ja kläglich
>     gescheitert.
>     Ich habe auf meinem Raspi die c++ Version von vzlogger
>     kompilliert, da diese ja als die einzig wahre gepriesen wird.
>
>     */etc/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" : 15,              /* 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" : 80,          /* 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" : [{
>     *"protocol" : "sml",*     /* see 'vzlogger -h' for list of
>     available protocols */
>     *"enabled" : true, *     /* should we start the local HTTPd for
>     serving live readings? */
>     *"device" : "/dev/ttyUSB0",*
>             "channels": [{
>                     "uuid" : "558e5050-6cb1-11e2-b64d-1bfd836b22fa",
>                     "middleware" :
>     "http://localhost/volkszaehler.org/htdocs/middleware.php",
>                     "identifier" : *"1-0:1.7.0"* /*
>     Gesamtstromverbrauch Hauszaehler */
>                     }]
>              }
>     ]}
>
>     zur konfig noch anmerkungen:
>     - die ir-kommunikation funktioniert prinzipiell wunderbar (manuell
>     und per script, usb-ir-kopf)
>     - wie definiert sich der identifier? mein zähler gibt z.b.
>     "1.7.0(0.444*kW)" zurück. für was steht das "1-0" in der konfigdatei?
>
>
>     *Start vzlogger:*
>     *vzlogger -o /var/log/vzlogger.log -f -v -c /etc/vzlogger.conf*
>     [Feb 01 22:02:15][mtr0] Creating new meter with protocol sml.
>     [Feb 01 22:02:15][mtr0] Meter configured.
>     [Feb 01 22:02:15]       New meter initialized (protocol=sml)
>     [Feb 01 22:02:15]       Configure channel.
>     [Feb 01 22:02:15][chn0] New channel initialized (uuid=...6b22fa
>     protocol=volkszaehler id=1-0:1.7.0)
>     [Feb 01 22:02:15]       Have 1 meters.
>     [Feb 01 22:02:15][main] foreground=1, daemon=1, local=1
>     [Feb 01 22:02:15]       NOT Daemonize process...
>     [Feb 01 22:02:15]       Opened logfile /var/log/vzlogger_3.log
>     [Feb 01 22:02:15][]     ===> Start meters.
>     [Feb 01 22:02:15][mtr0] Meter connection established
>     [Feb 01 22:02:15][mtr0] Meter thread started
>     [Feb 01 22:02:15][mtr0] meter is opened. Start channels.
>     [Feb 01 22:02:15][chn0] Logging thread started
>     [Feb 01 22:02:15][http] Starting local interface HTTPd on port 80
>     [Feb 01 22:02:15][]     Startup done.
>     [Feb 01 22:02:15][mtr0] Number of readers: 32
>     [Feb 01 22:02:15][chn0] Start logging thread for volkszaehler-api.
>     Running as daemon: yes
>     [Feb 01 22:02:15][mtr0] Config.daemon: 1
>     [Feb 01 22:02:15][mtr0] Config.local: 1
>     [Feb 01 22:02:15][chn0] Using default api:
>
>     - "Meter connection established" heißt was genau? dass die
>     ir-kommunikation funktioniert? was kann ich aus den infos entnehmen?
>
>     *logfile:*
>     [Feb 01 22:02:15]       Opened logfile /var/log/vzlogger_3.log
>     [Feb 01 22:02:15][]     ===> Start meters.
>     [Feb 01 22:02:15][mtr0] Meter connection established
>     [Feb 01 22:02:15][mtr0] Meter thread started
>     [Feb 01 22:02:15][mtr0] meter is opened. Start channels.
>     [Feb 01 22:02:15][chn0] Logging thread started
>     [Feb 01 22:02:15][http] Starting local interface HTTPd on port 80
>     [Feb 01 22:02:15][]     Startup done.
>     [Feb 01 22:02:15][mtr0] Number of readers: 32
>     [Feb 01 22:02:15][chn0] Start logging thread for volkszaehler-api.
>     Running as daemon: yes
>     [Feb 01 22:02:15][mtr0] Config.daemon: 1
>     [Feb 01 22:02:15][mtr0] Config.local: 1
>     [Feb 01 22:02:15][chn0] Using default api:
>
>
>     in der datenbank tauchen keine werte auf, fehler sehe ich in den
>     ausgaben aber auch keine?
>
>     für weitere anregungen wäre ich dankbar!
>
>
>
>
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130201/86f68afa/attachment.html>


More information about the volkszaehler-users mailing list