<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hintergrund ist, dass der Code jeweils auf 2 Impulse wartet und gleich noch den zeitl. Abstand auswertet (für Identifier „Power“). Wenn du Identifier „Impulse“ nutzt, bekommst du daher immer gleich 2 Impulse auf einmal geliefert. Es sind aber auch 2 angefallen, dürfte von der Zählart/-auflösung daher korrekt sein.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 13.05.2015 um 08:05 schrieb Nils op den Winkel <<a href="mailto:nils@kusemuckl.de" class="">nils@kusemuckl.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hallo zusammen!<div class=""><br class=""></div><div class=""><div class="">Ich habe gestern einen Ferrariszähler-Lesekopf von Udo montiert und habe zwei Fragen:<br class=""></div><div class=""><br class=""></div><div class="">a) Ist es normal, dass vzlogger immer zwei Impulse an die Middleware meldet, wenn die rote Markierung vorbei kommt?</div><div class=""><div class="">[May 12 21:42:14][chn0] Adding reading to queue (value=2.00 ts=1431459734229)</div><div class="">[May 12 21:53:27][chn0] Adding reading to queue (value=2.00 ts=1431460407277)</div><div class="">[May 12 22:13:47][chn0] Adding reading to queue (value=2.00 ts=1431461627548)</div><div class="">[May 12 22:44:50][chn0] Adding reading to queue (value=2.00 ts=1431463490165)</div><div class="">[May 12 23:40:56][chn0] Adding reading to queue (value=2.00 ts=1431466856590)</div><div class="">[May 13 00:10:03][chn0] Adding reading to queue (value=2.00 ts=1431468603918)</div><div class="">[May 13 00:18:09][chn0] Adding reading to queue (value=2.00 ts=1431469089860)</div><div class="">[May 13 00:37:06][chn0] Adding reading to queue (value=2.00 ts=1431470226231)</div><div class="">[May 13 00:46:24][chn0] Adding reading to queue (value=2.00 ts=1431470784908)</div></div><div class=""><br class=""></div><div class="">b) Bei mir geht die rote led nie ganz aus. Sie wird nur dunkler. Ist das ein Problem? Hängt das eine mit dem anderen zusammen?</div><div class=""><br class=""></div><div class="">Ich benutze vzlogger aus git von gestern unter Ubuntu 12.04 kompiliert mit install.sh:</div><div class=""><div class="">vzlogger -V</div><div class="">0.4.0</div><div class=""> based on git version: heads/master-0-g19eb2d0ebf</div><div class=""> last commit date: Sun, 19 Apr 2015 08:29:22 +0200</div></div></div><div class=""><br class=""></div><div class="">Ich habe mich bei der vzlogger.conf weitestgehend an das beispiel im Wiki (<a href="http://wiki.volkszaehler.org/hardware/controllers/ferrariszaehler_lesekopf#installation" class="">http://wiki.volkszaehler.org/hardware/controllers/ferrariszaehler_lesekopf#installation</a>) gehalten:</div><div class=""><br class=""></div><div class=""><div class="">{</div><div class="">"retry" : 30,                      /* how long to sleep between failed requests, in seconds */</div><div class="">"daemon": false,                    /* run periodically */</div><div class="">"verbosity" : 5,                /* between 0 and 9999, je höher desto mehr Infos */</div><div class="">"log" : "/var/log/vzlogger.log",   /* path to logfile, optional */</div><div class=""><br class=""></div><div class="">"local" :  {</div><div class="">            "enabled" : false,      /* local HTTPd for serving live readings, 'false' für Daten an die middleware !!! */</div><div class="">            "port" : 8080,            /* the TCP port for the local HTTPd */</div><div class="">            "index" : true,         /* should we provide a index listing of available channels if no UUID was requested? */</div><div class="">            "timeout" : 30,         /* timeout for long polling comet requests, 0 disables comet, in seconds */</div><div class="">            "buffer" : 600          /* how long to buffer readings for the local interface, in seconds */</div><div class="">           },</div><div class=""><br class=""></div><div class="">"meters" : [{                            /* Beispiel-Ferraris-Meter */</div><div class="">             "enabled" : true,</div><div class="">             "protocol" : "s0",</div><div class="">             "device" : "/dev/ttyUSB0",</div><div class="">             "aggtime" : 30,             /* aggregate all signals and give one update to middleware every 'aggtime' seconds */</div><div class="">             "aggfixedinterval" : false, /* round all timestamps to middleware to nearest aggtime, reduces accuracy, use only when needed */</div><div class="">             "channel" : {</div><div class="">                           "uuid" : "45408de0-f8ac-11e4-a96d-0ba585b4d063",</div><div class="">                           "middleware" : "<a href="http://woodstock/volkszaehler.org/middleware.php" class="">http://woodstock/volkszaehler.org/middleware.php</a>", /* <a href="http://ip/" class="">http://IP</a> auf dem die Middleware läuft(normally: 127.0.0.1) /middleware.php */</div><div class="">                           "identifier": "Impulse",        /* counts the S0 impulses. Can also supply "Power" readings */</div><div class="">                           "aggmode" : "SUM"           /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/</div><div class="">                         }</div><div class="">           }]</div><div class="">}</div></div><div class=""><br class=""></div><div class="">Mein Zähler hat 75U/kwh. Die Scheibe dreht sich also recht langsam.</div><div class=""><br class=""></div><div class="">Ich hoffe ich habe keine relevanten Informationen unterschlagen.</div><div class=""><br class=""></div><div class="">Schönen Gruß</div><div class=""><br class=""></div><div class="">Nils</div><div class=""><br class=""></div></div>
</div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Gruß</div><div class=""><br class=""></div><div class="">Matthias</div></div></span>
</div>
<br class=""></div></body></html>