<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">
<blockquote type="cite">Welches Image nutzt du im Moment?
</blockquote>
Hm, hab ich vor ein paar Tagen runterladen, "offiz. Quelle". Ich
glaub (!) ich hab sogar auch noch ein Update gemacht. <br>
vzlogger ist vom 5.2.2016<br>
<br>
<blockquote type="cite">Setz mal bitte verbosity auf 15 und dann
starte nochmal neu. </blockquote>
<br>
liefert.. :<br>
<tt>pi@BauratPi:/etc $ sudo vzlogger restart</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][main]<b> vzlogger v0.5.1 based on
heads/master-0-g7e79f4c700-dirty from Fri, 5 Feb 2016 </b>18:03:28
+0100 started.</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][mtr0] Creating new meter with protocol
w1therm.</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][mtr0] Meter configured, enabled.</tt><tt><br>
</tt><tt>[Jun 23 11:42:04] New meter initialized
(protocol=w1therm)</tt><tt><br>
</tt><tt>[Jun 23 11:42:04] Configure channel.</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] New channel initialized
(uuid=...77fb28 api=volkszaehler id=28-0000045d2497)</tt><tt><br>
</tt><tt>[Jun 23 11:42:04] Have 1 meters.</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][main] log level is 15</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][main] daemon=1, local=0</tt><tt><br>
</tt><tt>[Jun 23 11:42:04] Daemonize process...</tt><br>
<br>
.. und im log:<br>
<tt>pi@BauratPi:~ $ sudo tail -f /var/log/vzlogger.log</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] compare: 1466674895110
1466674905560</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] compare: 1466674905560
1466674916430</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] JSON request body: [ [
1466674905560, 43.625 ], [ 1466674916430, 43.625 ] ]</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] CURL: Hostname was found in DNS
cache</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] CURL: Trying 127.0.0.1...</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] Buffer dump (size=0): {}</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] CURL: Connected to 127.0.0.1
(127.0.0.1) port 80 (#9)</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] CURL: Sent 56 bytes..</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] CURL: Sent '[ [ 1466674905560,
43.625 ], [ 1466674916430, 43.625 ] ]' bytes</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] CURL: upload completely sent off:
56 out of 56 bytes</tt><tt><br>
</tt><tt>[Jun 23 11:42:04][chn0] Adding reading to queue
(value=4.00 ts=1466674924606)</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][chn0] Adding reading to queue
(value=43.62 ts=1466674917381)</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][chn1] Adding reading to queue
(value=23.56 ts=1466674924364)</tt><tt><br>
</tt><tt>[Jun 23 11:42:05] Opened logfile
/var/log/vzlogger.log</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][push] No pushDataServer defined.</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][] ===> Start meters</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][w1t] open found 12 w1 devices</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][mtr0] Meter connection established</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][mtr0] Meter thread started</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][mtr0] Meter is opened. Starting
channels.</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][chn0] Logging thread started</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][] Startup done.</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][chn0] Start logging thread for
volkszaehler-api. Running as daemon: yes</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][mtr0] Number of readers: 400</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][mtr0] Config.daemon: 1</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][mtr0] Config.local: 0</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][chn0] Using default volkszaehler api.</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][w1t] read 10.000000 from
/sys/bus/w1/devices/28-0000045c6924/w1_slave (t=10000</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][w1t] reading w1 device 28-0000045c6924
returned 10.000000</tt><tt><br>
</tt><tt>[Jun 23 11:42:05][chn0] Adding reading to queue
(value=4.00 ts=1466674925590)</tt><tt><br>
</tt><tt>[Jun 23 11:42:06][w1t] read 10.000000 from
/sys/bus/w1/devices/28-0000045c6924/w1_slave (t=10000</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:06][w1t] reading w1 device 28-0000045c6924
returned 10.000000</tt><tt><br>
</tt><tt>[Jun 23 11:42:06][w1t] read 24.687000 from
/sys/bus/w1/devices/28-0000045c5c7e/w1_slave (t=24687</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:06][w1t] reading w1 device 28-0000045c5c7e
returned 24.687000</tt><tt><br>
</tt><tt>[Jun 23 11:42:06][chn0] Adding reading to queue
(value=5.00 ts=1466674926820)</tt><tt><br>
</tt><tt>[Jun 23 11:42:06][chn0] CURL: HTTP 1.0, assume close
after body</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][chn0] CURL: Received 26 bytes</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][chn0] CURL: Received
'{"version":"0.3","rows":2}' bytes</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][chn0] CURL: Closing connection 9</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][chn0] CURL Request succeeded with code:
200</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][w1t] read 43.625000 from
/sys/bus/w1/devices/28-0000045d2497/w1_slave (t=43625</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][w1t] reading w1 device 28-0000045d2497
returned 43.625000</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][w1t] read 24.687000 from
/sys/bus/w1/devices/28-0000045c5c7e/w1_slave (t=24687</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][w1t] reading w1 device 28-0000045c5c7e
returned 24.687000</tt><tt><br>
</tt><tt>[Jun 23 11:42:07][chn0] Adding reading to queue
(value=4.00 ts=1466674927809)</tt><tt><br>
</tt><tt>[Jun 23 11:42:08][w1t] read 16.812000 from
/sys/bus/w1/devices/28-0000045d7eb0/w1_slave (t=16812</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:08][w1t] reading w1 device 28-0000045d7eb0
returned 16.812000</tt><tt><br>
</tt><tt>[Jun 23 11:42:08][w1t] read 43.625000 from
/sys/bus/w1/devices/28-0000045d2497/w1_slave (t=43625</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:08][w1t] reading w1 device 28-0000045d2497
returned 43.625000</tt><tt><br>
</tt><tt>[Jun 23 11:42:08][chn0] Adding reading to queue
(value=4.00 ts=1466674928797)</tt><tt><br>
</tt><tt>[Jun 23 11:42:09][chn1] Adding reading to queue
(value=43.62 ts=1466674920402)</tt><tt><br>
</tt><tt>[Jun 23 11:42:09][w1t] read 18.437000 from
/sys/bus/w1/devices/28-000004a2845a/w1_slave (t=18437</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:09][w1t] reading w1 device 28-000004a2845a
returned 18.437000</tt><tt><br>
</tt><tt>[Jun 23 11:42:09][w1t] read 16.812000 from
/sys/bus/w1/devices/28-0000045d7eb0/w1_slave (t=16812</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:09][w1t] reading w1 device 28-0000045d7eb0
returned 16.812000</tt><tt><br>
</tt><tt>[Jun 23 11:42:09][chn0] Adding reading to queue
(value=4.00 ts=1466674929785)</tt><tt><br>
</tt><tt>[Jun 23 11:42:10][w1t] read 18.437000 from
/sys/bus/w1/devices/28-000004a2845a/w1_slave (t=18437</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:10][w1t] reading w1 device 28-000004a2845a
returned 18.437000</tt><tt><br>
</tt><tt>[Jun 23 11:42:10][w1t] read 9.937000 from
/sys/bus/w1/devices/28-000004c913d5/w1_slave (t=9937</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:10][w1t] reading w1 device 28-000004c913d5
returned 9.937000</tt><tt><br>
</tt><tt>[Jun 23 11:42:10][chn0] Adding reading to queue
(value=4.00 ts=1466674930773)</tt><tt><br>
</tt><tt>[Jun 23 11:42:10][chn0] Adding reading to queue
(value=43.62 ts=1466674922387)</tt><tt><br>
</tt><tt>[Jun 23 11:42:10][mtr0] Next reading in 10 seconds</tt><tt><br>
</tt><tt>[Jun 23 11:42:11][w1t] read 10.125000 from
/sys/bus/w1/devices/28-000004c9583f/w1_slave (t=10125</tt><tt><br>
</tt><tt>)</tt><tt><br>
</tt><tt>[Jun 23 11:42:11][w1t] reading w1 device 28-000004c9583f
returned 10.125000</tt><br>
<br>
...<br>
<br>
<br>
Am 23.06.2016 um 11:24 schrieb Andreas Götz:<br>
</div>
<blockquote
cite="mid:4DFD2999-AAF8-4FB9-8759-CF3E919B7052@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>Setz mal bitte verbosity auf 15 und dann starte nochmal neu. </div>
<div><br>
</div>
<div>Viele Grüße, Andreas </div>
<div><br>
Am 23.06.2016 um 11:01 schrieb Heiko Baumann <<a
moz-do-not-send="true" href="mailto:hbcs@gmx.de"><a class="moz-txt-link-abbreviated" href="mailto:hbcs@gmx.de">hbcs@gmx.de</a></a>>:<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type">
<div>Hallo Andreas,<br>
<br>
Danke dass du auch mit drüber schaust.<br>
<br>
> Bist Du sicher dass diese conf Datei auch verwendet
wird? In welchem Ordner liegt sie und wie startest Du
vzlogger?<br>
<br>
Jetzt hast du mich kurz mal in Verlegenheit gebracht, aber
ja:<br>
<br>
<br>
Gestartet wird mit<br>
<br>
pi@BauratPi:/etc $ sudo vzlogger restart<br>
[Jun 23 11:00:06][main] vzlogger v0.5.1 based on
heads/master-0-g7e79f4c700-dirty from Fri, 5 Feb 2016
18:03:28 +0100 started.<br>
[Jun 23 11:00:06] New meter initialized
(protocol=w1therm)<br>
[Jun 23 11:00:06][chn0] New channel initialized
(uuid=...77fb28 api=volkszaehler id=28-0000045d2497)<br>
[Jun 23 11:00:06][main] log level is 5<br>
[Jun 23 11:00:06] Daemonize process...<br>
<br>
<br>
pi@BauratPi:~ $ sudo tail -20 <b>/var/log/vzlogger.log</b><br>
[Jun 23 11:00:18][chn1] Adding reading to queue (value=43.69
ts=1466672410490)<br>
[Jun 23 11:00:18][mtr1] Next reading in 10 seconds<br>
[Jun 23 11:00:19][chn0] Adding reading to queue (value=4.00
ts=1466672419314)<br>
[Jun 23 11:00:20][chn0] Adding reading to queue (value=4.00
ts=1466672420306)<br>
[Jun 23 11:00:20][chn1] Adding reading to queue (value=43.69
ts=1466672412297)<br>
[Jun 23 11:00:20][chn1] Adding reading to queue (value=23.38
ts=1466672419974)<br>
[Jun 23 11:00:20][chn1] Adding reading to queue (value=23.38
ts=1466672420037)<br>
[Jun 23 11:00:20][chn0] Adding reading to queue (value=43.69
ts=1466672412599)<br>
[Jun 23 11:00:21][chn1] Adding reading to queue (value=23.88
ts=1466672411889)<br>
[Jun 23 11:00:21][chn0] Adding reading to queue (value=4.00
ts=1466672421298)<br>
[Jun 23 11:00:22][chn0] Adding reading to queue (value=4.00
ts=1466672422290)<br>
[Jun 23 11:00:23][chn0] Adding reading to queue (value=4.00
ts=1466672423282)<br>
[Jun 23 11:00:24][chn0] Adding reading to queue (value=4.00
ts=1466672424275)<br>
[Jun 23 11:00:25][chn0] Adding reading to queue (value=4.00
ts=1466672425272)<br>
[Jun 23 11:00:26][chn0] Adding reading to queue (value=4.00
ts=1466672426268)<br>
[Jun 23 11:00:27][chn0] Adding reading to queue (value=4.00
ts=1466672427271)<br>
[Jun 23 11:00:28][chn0] Adding reading to queue (value=4.00
ts=1466672428267)<br>
[Jun 23 11:00:29][chn0] Adding reading to queue (value=4.00
ts=1466672429263)<br>
[Jun 23 11:00:29][chn0] Adding reading to queue (value=43.69
ts=1466672421241)<br>
[Jun 23 11:00:30][chn0] Adding reading to queue (value=4.00
ts=1466672430259)<br>
<br>
.. und genau dorthin logge ich ja auch:<br>
<br>
pi@BauratPi:<b>/etc $ cat vzlogger.conf</b><br>
<br>
{<br>
"retry": 0,<br>
"daemon": true,<br>
"verbosity": 5,<br>
"log": "<b>/var/log/vzlogger.log</b>",<br>
"local": {<br>
"enabled": false,<br>
"port": 8080,<br>
"index": false,<br>
"timeout": 0,<br>
"buffer": 0<br>
},<br>
"meters": [<br>
{<br>
"enabled": true,<br>
"allowskip": false,<br>
"interval": -1,<br>
"aggtime": 20,<br>
"aggfixedinterval": true,<br>
"channels": [<br>
{<br>
"uuid": "46f672b0-f2dc-11e2-8c00-43a2ff77fb28",<br>
"identifier": "28-0000045d2497",<br>
"api": "volkszaehler",<br>
"middleware": <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
"aggmode": "none",<br>
"duplicates": 0<br>
}<br>
],<br>
"protocol": "w1therm"<br>
}<br>
]<br>
}<br>
<br>
<br>
Ist mir nicht erklärlich.. :(<br>
<br>
Danke!<br>
<br>
LG Heiko<br>
<br>
</div>
<blockquote
cite="mid:334AA72E-153F-4AB8-A30D-6E352A1B5F15@gmail.com"
type="cite">
<div><br>
</div>
<br>
<div>Am 23.06.2016 um 10:42 schrieb Heiko Baumann <<a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:hbcs@gmx.de"><a class="moz-txt-link-abbreviated" href="mailto:hbcs@gmx.de">hbcs@gmx.de</a></a>>:<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Am 22.06.2016 um 23:55
schrieb Udo1:<br>
</div>
<blockquote
cite="mid:cf665c55-d770-fb9b-aa63-f77f3c290c03@gmx.net"
type="cite">Am 22.06.2016 um 23:42 schrieb Heiko
Baumann: <br>
<blockquote type="cite">Muss der "identifier" überall
die Sensor-ID sein oder kann ich das als Freitext
beliebig wählen? </blockquote>
m.M. müsste das die Sensor-ID sein (bei 1Wire), wie
sonst sollte vzlogger die UUID dem Sensor zuordnen
(bei mehreren Sensoren). <br>
<br>
</blockquote>
Ok, es werden zwar Werte geliefert, aber kann gut sein,
dass sie ohne SensorID einfach dem ersten zugeordnet
werden.<br>
<br>
Beim Rumspielen mit der conf Datei stoße ich auf mir
unerklärliche Dinge. Nur zum Test mal ein einziger
Temperatursensor:<br>
<br>
<br>
pi@BauratPi:/etc $ cat vzlogger.conf<br>
{<br>
"retry": 0,<br>
"daemon": true,<br>
"verbosity": 5,<br>
"log": "/var/log/vzlogger.log",<br>
"local": {<br>
"enabled": false,<br>
"port": 8080,<br>
"index": false,<br>
"timeout": 0,<br>
"buffer": 0<br>
},<br>
"meters": [<br>
{<br>
"enabled": true,<br>
"allowskip": false,<br>
"interval": -1,<br>
"aggtime": 20,<br>
"aggfixedinterval": true,<br>
"channels": [<br>
{<br>
"uuid":
"46f672b0-f2dc-11e2-8c00-43a2ff77fb28",<br>
"identifier": "28-0000045d2497",<br>
"api": "volkszaehler",<br>
"middleware": <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
"aggmode": "none",<br>
"duplicates": 0<br>
}<br>
],<br>
"protocol": "w1therm"<br>
}<br>
]<br>
}<br>
<br>
So. UUID und Sensor-ID passen zusammen, das ist noch
aus der alten 1wire Konfig übernommen.<br>
Im log stehen dann komische Sachen:<br>
<br>
<br>
[Jun 23 10:38:23][mtr1] Next reading in 10 seconds<br>
[Jun 23 10:38:23][chn0] Adding reading to queue
(value=43.81 ts=1466671094865)<br>
[Jun 23 10:38:23][chn0] Adding reading to queue (value=<b><font
color="#ff0000">43.81</font></b> ts=1466671095313)<br>
[Jun 23 10:38:23][chn0] Adding reading to queue (value=<b><font
color="#ff0000">4.00</font></b> ts=1466671103085)<br>
[Jun 23 10:38:23][mtr0] Next reading in 10 seconds<br>
[Jun 23 10:38:24][chn0] Adding reading to queue
(value=4.00 ts=1466671104077)<br>
[Jun 23 10:38:25][chn0] Adding reading to queue
(value=4.00 ts=1466671105069)<br>
[Jun 23 10:38:26][<b><font color="#3333ff">chn0</font></b>]
Adding reading to queue (value=4.00 ts=1466671106061)<br>
[Jun 23 10:38:26][<b><font color="#3333ff">chn1</font></b>]
Adding reading to queue (value=43.81 ts=1466671098570)<br>
[Jun 23 10:38:26][mtr1] Next reading in 10 seconds<br>
[Jun 23 10:38:26][chn1] Adding reading to queue (value=<font
color="#ff0000"><b>23.25</b></font> ts=1466671105869)<br>
[Jun 23 10:38:27][chn0] Adding reading to queue
(value=4.00 ts=1466671107053)<br>
[Jun 23 10:38:28][chn0] Adding reading to queue
(value=4.00 ts=1466671108045)<br>
[Jun 23 10:38:29][chn0] Adding reading to queue
(value=4.00 ts=1466671109037)<br>
[Jun 23 10:38:30][chn1] Adding reading to queue
(value=23.56 ts=1466671101185)<br>
[Jun 23 10:38:30][chn0] Adding reading to queue
(value=4.00 ts=1466671110043)<br>
[Jun 23 10:38:31][chn1] Adding reading to queue
(value=43.81 ts=1466671103126)<br>
[Jun 23 10:38:31][chn0] Adding reading to queue
(value=4.00 ts=1466671111035)<br>
[Jun 23 10:38:32][chn0] Adding reading to queue
(value=4.00 ts=1466671112027)<br>
<br>
Richtig sind die Werte um 44° (Warmwasser). Der Rest ist
Käse.<br>
<br>
Wieso werden zwei "Channels" (blau markiert) geloggt,
obwohl in der conf doch nur 1 Sensor erfasst ist?<br>
(Am Pi hängen insgesamt 12 temperaturfühler und 4 s0).<br>
<br>
Könnte mir jemand mal bitte seine vzlogger.conf posten,
in der s0 (Strom und Betriebsstunden) und 1wire
Temperaturfühler angesprochen werden und die Werte
sinnvoll aggregiert werden?<br>
<br>
Danke!<br>
<br>
LG HEiko<br>
<br>
<br>
</div>
</blockquote>
</blockquote>
<br>
</div>
</blockquote>
</blockquote>
<br>
</body>
</html>