<div dir="ltr">Als delta habe ich die Differenz der beiden ts aus meinem angeführten Beispiel benutzt<div><br></div><div><span style="font-size:13px">1431461627548 - </span><span style="color:rgb(80,0,80);font-size:13px">1431460407277 = </span><span style="font-size:13px">1220271</span><br></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Jeder Eintrag in der Datenbank für diesen Kanal hat value = 2.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Ich weiß auch nicht genau, wo mein Denkfehler ist. Aber das ist dann jetzt auch egal. Ich habe grad nochmal den Zähler abgelesen. Wenn ich für den Kanal eine Auflösung von 75 einstelle, stimmt der vom Volkszähler angezeigte Verbrauch mit dem tatsächlichen Verbrauch überein.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Damit war die Verwirrung scheinbar nur in meinem Kopf, und nicht in der Wirklichkeit.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Schönen Dank für eure mühen.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Nils</span></div><div><span style="font-size:13px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">Am 13. Mai 2015 um 14:24 schrieb Andreas Goetz <span dir="ltr"><<a href="mailto:cpuidle@gmail.com" target="_blank">cpuidle@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Deine Rechnung benutzt ein "delta" (Zeitraum in ms) das Du nirgendwo herleitest. Hier ist die komplette Rechnung:<br><br>Annahme: 1kWh Verbrauch = 1kW Dauerleistung für Zeit von 1 Stunde = 75 Umdrehungen pro Stunde = 75 imp / 3.6e6 ms<br><br>Formel:<br><br>  value [imp] * 3.6e6 [ms/h] * scale [Wh/kWh]<br>  ----------------------------------<br>  resolution [imp/kWh] * delta [ms]<br><br>  75 [imp] * 3.6e6 [ms/h] * 1000 [Wh/kWh]<br>= ---------------------------------------<br>  75 [imp/kWh] * 3.6e6 [ms]<br><br>  75 [imp] * 3.6e6 [ms/h] * 1000 [Wh/kWh]<br>= ---------------------------------------<br>  75 [imp] * 3.6e6 [ms] / 1 [kWh] <br><br>  1 [ms/h] * 1000 [Wh/kWh] * 1 [kWh] <br>= ----------------------------------<br>  1 [ms]<br><br>= 1000 [W] = 1 [kW]<br><br></div><div>Mit anderen Worten: wenn in der DB 75 Impulse für 1 Stunde stehen kommt am Ende 1kW Dauer/Durchschnittsleistung raus. So würde ich das jedenfalls erwarten.<br><br></div><div>Kannst Du mal bitte schauen was bei Dir für diesen Kanal wirklich in der DB steht?<br><br></div>Viele Grüße,<br></div>Andreas<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-05-13 13:08 GMT+02:00 Nils op den Winkel <span dir="ltr"><<a href="mailto:nils@kusemuckl.de" target="_blank">nils@kusemuckl.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Jetzt habt ihr mich verwirrt.<div><br></div><div>Also vzlogger sendet die 2 an die middleware:</div><div><div><br></div><div>[May 12 21:36:02][s0]   Reading S0 - n=2 power=37.584392</div><div>[May 12 21:36:02][mtr0] Got 2 new readings from meter:</div><div>[May 12 21:36:02][mtr0] Reading: id=Power/StringItentifier: value=37.58 ts=1431459362092</div><div>[May 12 21:36:02][mtr0] Reading: id=Impulse/StringItentifier: value=2.00 ts=1431459362092</div><div>[May 12 21:36:02][chn0] Adding reading to queue (value=2.00 ts=1431459362092)</div><div>[May 12 21:36:02][SUM]  2.000000 @ 1431459362092</div><div>[May 12 21:36:02][SUM]  RESULT 2.000000 @ 1431459362092</div><div>[May 12 21:36:02][chn0] Buffer dump (size=1): {2.0000,}</div><div>[May 12 21:36:02][chn0] ==> number of tuples: 1</div><div>[May 12 21:36:02][chn0] compare: 1431459174383 1431459362092</div><div>[May 12 21:36:02][chn0] JSON request body: [ [ 1431459362092, 2 ] ]</div><div>[May 12 21:36:02][chn0] CURL: Connection #0 seems to be dead!</div><div>[May 12 21:36:02][chn0] CURL: Closing connection #0</div><div>[May 12 21:36:02][chn0] CURL: About to connect() to woodstock port 80 (#0)</div><div>[May 12 21:36:02][chn0] CURL:   Trying 127.0.1.1...</div><div>[May 12 21:36:02][chn0] CURL: connected</div><div>[May 12 21:36:02][chn0] CURL: Sent 24 bytes..</div><div>[May 12 21:36:02][chn0] CURL: Sent '[ [ 1431459362092, 2 ] ]' bytes</div><div>[May 12 21:36:02][chn0] CURL: upload completely sent off: 24out of 24 bytes</div><div>[May 12 21:36:02][chn0] CURL: Received 26 bytes</div><div>[May 12 21:36:02][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes</div><div>[May 12 21:36:02][chn0] CURL: Connection #0 to host woodstock left intact</div><div>[May 12 21:36:02][chn0] CURL Request succeeded with code: 200</div></div><div><br></div><div>in meiner Datenbank steht auch immer ein value von "2" für den Kanal.</div><div><br></div><div>Wenn ich den Sourcecode richtig versteht, ist der MeterInterperter für die Umrechnung verantwortlich. Darin steht</div><div><br></div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">(</span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">float</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">) (</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">$row</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">[</span><span style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">1</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">] </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">*</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"> </span><span style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">3.6e6</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"> </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">*</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"> </span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">$this</span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">-></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">scale</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">) </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">/</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"> (</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">$this</span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">-></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">resolution</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"> </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">*</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"> </span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">$delta</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">)</span><br></div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><br></span></div>Wenn ich das jetzt mal für zwei Impulse ausrechne:<div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><br></span></div><div><span><div style="font-size:12.8000001907349px">[May 12 21:53:27][chn0] Adding reading to queue (value=2.00 ts=1431460407277)</div></span><div style="font-size:12.8000001907349px">[May 12 22:13:47][chn0] Adding reading to queue (value=2.00 ts=1431461627548)</div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">(2 * 3.6e6 * 1000) / (75 * 1220271) = 78,67</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Und das zeigt mir das frontend auch bei Ausflösung 75 an. Aber in diesem Delta hat sich die Scheibe ja nur ein mal gedreht. Müsste deshalb die Rechnung nicht</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">(1 * 3.6e6 * 1000) / (75 * 1220271) = 39,34</span><br></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">sein?</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Ich werde heute abend nochmal den Zähler ablesen, und schauen, wo mein Denkfehler ist.</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Vielleicht liegt es auch an meiner alten middleware (ich glaube die ist von Oktober 2014)</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Schönen Gruß</span></div><span><font color="#888888"><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Nils</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">Am 13. Mai 2015 um 09:04 schrieb Andreas Goetz <span dir="ltr"><<a href="mailto:cpuidle@gmail.com" target="_blank">cpuidle@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>2015-05-13 8:59 GMT+02:00 Udo1 <span dir="ltr"><<a href="mailto:udo1@gmx.net" target="_blank">udo1@gmx.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Moin,<span><br>
<br>
Am 13.05.2015 um 08:55 schrieb Andreas Goetz:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
    Das heißt, ich stelle in der middleware die Auflösung einfach auf<br>
    150 statt 75 und alles ist gut? Damit kann ich leben.<br>
<br>
<br>
Nein, es bleibt bei 150. M.E. sendet vzlogger den "Wert" 1 der sich aus "Count" 2 Impulsen errechnet hat. Ich besprech das mal mit den Entwicklern ob sinnvoll.<br>
</blockquote></span>
Nein, auf 75, also die Zählerkonstante.<br></blockquote><div><br></div></div></div><div>Entschuldigung, natürlich- trotz der etwas verwirrenden 2 bleibt es bei 75 wie Udo schreibt. Keine Umrechnungen.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Gruß<br>
Udo<br>
</blockquote></div><br></div><div class="gmail_extra">Viele Grüße,<br></div><div class="gmail_extra">Andreas<br><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>