<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
habe auf d0 umgestellt. ist aber immernoch unspektakulär:<br>
<br>
<big><b><tt>vzlogger -f -v -c /etc/vzlogger.conf</tt></b></big><tt><br>
</tt><tt>[Feb 01 23:45:08][mtr0] Creating new meter with protocol
d0.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Meter configured.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09] New meter initialized
(protocol=d0)</tt><tt><br>
</tt><tt>[Feb 01 23:45:09] Configure channel.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][chn0] New channel initialized
(uuid=...519118 protocol=volkszaehler id=1-0:1.7.0)</tt><tt><br>
</tt><tt>[Feb 01 23:45:09] Have 1 meters.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][main] foreground=1, daemon=1, local=1</tt><tt><br>
</tt><tt>[Feb 01 23:45:09] NOT Daemonize process...</tt><tt><br>
</tt><tt>[Feb 01 23:45:09] Opened logfile
/var/log/vzlogger_3.log</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][] ===> Start meters.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Meter connection established</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Meter thread started</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] meter is opened. Start channels.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][chn0] Logging thread started</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][http] Starting local interface HTTPd on
port 80</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Number of readers: 32</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][chn0] Start logging thread for
volkszaehler-api. Running as daemon: yes</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Config.daemon: 1</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][] Startup done.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][chn0] Using default api:</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Config.local: 1</tt><br>
<br>
<big><b>logfile:</b></big><br>
<tt>[Feb 01 23:45:09] Opened logfile /var/log/vzlogger_3.log</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][] ===> Start meters.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Meter connection established</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Meter thread started</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] meter is opened. Start channels.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][chn0] Logging thread started</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][http] Starting local interface HTTPd on
port 80</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Number of readers: 32</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][chn0] Start logging thread for
volkszaehler-api. Running as daemon: yes</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Config.daemon: 1</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][] Startup done.</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][mtr0] Config.local: 1</tt><tt><br>
</tt><tt>[Feb 01 23:45:09][chn0] Using default api:</tt><br>
<br>
<b><big>strace:</big></b><br>
<tt>[Feb 01 23:50:24][mtr0] Creating new meter with protocol d0.</tt><tt><br>
</tt><tt>[Feb 01 23:50:24][mtr0] Meter configured.</tt><tt><br>
</tt><tt>[Feb 01 23:50:24] New meter initialized
(protocol=d0)</tt><tt><br>
</tt><tt>[Feb 01 23:50:24] Configure channel.</tt><tt><br>
</tt><tt>[Feb 01 23:50:24][chn0] New channel initialized
(uuid=...519118 protocol=volkszaehler id=1-0:1.7.0)</tt><tt><br>
</tt><tt>[Feb 01 23:50:24] Have 1 meters.</tt><tt><br>
</tt><tt>[Feb 01 23:50:24][main] foreground=0, daemon=1, local=1</tt><tt><br>
</tt><tt>[Feb 01 23:50:24] Daemonize process...</tt><br>
<br>
wie sollte das logfile normalerweise aussehen?<br>
<br>
<br>
Am 01.02.2013 23:00, schrieb Michael Martin:<br>
</div>
<blockquote
cite="mid:5d4e0bbe-0d18-4e7b-bac6-25365fb42143@email.android.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Stellen mal das Protokoll auf d0 um. Das was dein Zähler spricht
ist kein Sml <br>
<br>
-- <br>
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail
gesendet.<br>
<br>
<div class="gmail_quote"><br>
<br>
MrUniversum <a class="moz-txt-link-rfc2396E" href="mailto:mr_universum@gmx.de"><mr_universum@gmx.de></a> schrieb:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div class="moz-text-html" lang="x-western"> Hallo zusammen,<br>
<br>
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.<br>
Ich habe auf meinem Raspi die c++ Version von vzlogger
kompilliert, da diese ja als die einzig wahre gepriesen
wird.<br>
<br>
<b>/etc/vzlogger.conf</b><br>
<tt>{</tt><tt><br>
</tt><tt>"retry" : 30, /* how long to sleep
between failed requests, in seconds */</tt><tt><br>
</tt><tt>"daemon": true, /* run periodically
*/</tt><tt><br>
</tt><tt>//"foreground" : true, /* dont run in
background (prevents forking) */</tt><tt><br>
</tt><tt>"verbosity" : 15, /* between 0 and 15
*/</tt><tt><br>
</tt><tt>"log" : "/var/log/vzlogger_3.log",/* path to
logfile, optional */</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt>"local" : {</tt><tt><br>
</tt><tt> "enabled" : true, /* should we start
the local HTTPd for serving live readings? */</tt><tt><br>
</tt><tt> "port" : 80, /* the TCP port for
the local HTTPd */</tt><tt><br>
</tt><tt> "index" : true, /* should we
provide a index listing of available channels if no UUID
was requested? */</tt><tt><br>
</tt><tt> "timeout" : 30, /* timeout for long
polling comet requests, 0 disables comet, in seconds */</tt><tt><br>
</tt><tt> "buffer" : 600 /* how long to
buffer readings for the local interface, in seconds */</tt><tt><br>
</tt><tt>},</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt>"meters" : [{</tt><tt><br>
</tt><tt> <b>"protocol" : "sml",</b> /* see
'vzlogger -h' for list of available protocols */</tt><tt><br>
</tt><tt> <b>"enabled" : true, </b> /* should we
start the local HTTPd for serving live readings? */</tt><tt><br>
</tt><tt> <b>"device" : "/dev/ttyUSB0",</b></tt><tt><br>
</tt><tt> "channels": [{</tt><tt><br>
</tt><tt> "uuid" :
"558e5050-6cb1-11e2-b64d-1bfd836b22fa",</tt><tt><br>
</tt><tt> "middleware" : <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://localhost/volkszaehler.org/htdocs/middleware.php">"http://localhost/volkszaehler.org/htdocs/middleware.php"</a>,</tt><tt><br>
</tt><tt> "identifier" : <b>"1-0:1.7.0"</b>
/* Gesamtstromverbrauch Hauszaehler */</tt><tt><br>
</tt><tt> }]</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt>]}</tt><br>
<br>
zur konfig noch anmerkungen:<br>
- die ir-kommunikation funktioniert prinzipiell wunderbar
(manuell und per script, usb-ir-kopf)<br>
- 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?<br>
<br>
<br>
<b>Start vzlogger:</b><br>
<b><tt>vzlogger -o /var/log/vzlogger.log -f -v -c
/etc/vzlogger.conf</tt></b><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Creating new meter with
protocol sml.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Meter configured.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15] New meter initialized
(protocol=sml)</tt><tt><br>
</tt><tt>[Feb 01 22:02:15] Configure channel.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][chn0] New channel initialized
(uuid=...6b22fa protocol=volkszaehler id=1-0:1.7.0)</tt><tt><br>
</tt><tt>[Feb 01 22:02:15] Have 1 meters.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][main] foreground=1, daemon=1,
local=1</tt><tt><br>
</tt><tt>[Feb 01 22:02:15] NOT Daemonize process...</tt><tt><br>
</tt><tt>[Feb 01 22:02:15] Opened logfile
/var/log/vzlogger_3.log</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][] ===> Start meters.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Meter connection
established</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Meter thread started</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] meter is opened. Start
channels.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][chn0] Logging thread started</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][http] Starting local interface
HTTPd on port 80</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][] Startup done.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Number of readers: 32</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][chn0] Start logging thread for
volkszaehler-api. Running as daemon: yes</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Config.daemon: 1</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Config.local: 1</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][chn0] Using default api:</tt><br>
<br>
- "<tt>Meter connection established</tt><tt>" </tt>heißt
was genau? dass die ir-kommunikation funktioniert? was kann
ich aus den infos entnehmen?<br>
<br>
<b>logfile:</b><br>
<tt>[Feb 01 22:02:15] Opened logfile
/var/log/vzlogger_3.log</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][] ===> Start meters.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Meter connection
established</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Meter thread started</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] meter is opened. Start
channels.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][chn0] Logging thread started</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][http] Starting local interface
HTTPd on port 80</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][] Startup done.</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Number of readers: 32</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][chn0] Start logging thread for
volkszaehler-api. Running as daemon: yes</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Config.daemon: 1</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][mtr0] Config.local: 1</tt><tt><br>
</tt><tt>[Feb 01 22:02:15][chn0] Using default api:</tt><br>
<br>
<br>
in der datenbank tauchen keine werte auf, fehler sehe ich in
den ausgaben aber auch keine?<br>
<br>
für weitere anregungen wäre ich dankbar!<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>