<div dir="ltr">
  

    
  
  <div class="gmail_quote"><div text="#000000" bgcolor="#FFFFFF">
    <Cross-post von volkszaehler-users><br><br>Hallo,<br>
    <br>
    für meine Monitoring App http://<a href="http://github.com/andig/vzmon" target="_blank">github.com/andig/vzmon</a> versuche ich die
    Erzeugung des Tages (Mitternacht bis jetzt) auszusummieren. Für
    Kanäle vom Typ Power klappt das wunderbar: <br>
    <br>
       
    <a href="http://ip/middleware.php/data/kanalid.json?fomr=today&to=now&tuples=1" target="_blank">http://ip/middleware.php/data/kanalid.json?fomr=today&to=now&tuples=1</a>,
    <br>
    <br>
    dann consumption auslesen. Für Kanäle vom Typ Power Meter klappts
    nicht:<br>
    <br>
    Kanal:<br>
    <br>
    <blockquote><a href="http://ip/middleware.php/channel.json" target="_blank">http://ip/middleware.php/channel.json</a><br>
      <br>
      {"version":"0.2","channels":[<br>
      {"uuid":"5b340280-9248-11e2-bf0b-adb29ee33b6f","type":"electric
      meter","active":true,"color":"gold","public":true,"resolution":1000,"style":"steps","title":"Erzeugung
      2.8.0"},<br>
    </blockquote>
    Daten:<br>
    <br>
    <blockquote><a href="http://ip/middleware.php/data/5b340280-9248-11e2-bf0b-adb29ee33b6f.json?from=today&to=now&tuples=1" target="_blank">http://ip/middleware.php/data/5b340280-9248-11e2-bf0b-adb29ee33b6f.json?from=today&to=now&tuples=1</a><br>

      <br>
      {"version":"0.2",<br>
      "data":<br>
      {"uuid":"5b340280-9248-11e2-bf0b-adb29ee33b6f",<br>
      "from":"1373493000000",<br>
      "to":"1373563500000",<br>
      "average":0,<br>
      "consumption":0,<br>
      "rows":236}}<br>
    </blockquote>
    Consumption bleibt hier 0 obwohl rows=236 und größer werdende Zählerstände erfasst sind??<br>
    <br>
    Mit >1 Tupeln:<br>
    <br>
    <blockquote><a href="http://ip/middleware.php/data/5b340280-9248-11e2-bf0b-adb29ee33b6f.json?from=today&to=now&tuples=1" target="_blank">http://ip/middleware.php/data/5b340280-9248-11e2-bf0b-adb29ee33b6f.json?from=today&to=now&tuples=1</a>0<br>

    </blockquote>
    <blockquote>{"version":"0.2","data":{"uuid":"5b340280-9248-11e2-bf0b-adb29ee33b6f","from":"1373493000000","to":"1373563500000","min":<br>

      [1373499900000,57.878],"max":<br>
[1373562000000,16237.989],"average":3645.213,"consumption":71385.42,"rows":236,"tuples":<br>
      [[1373499900000,57.878,23],<br>
      [1373520600000,1248.973,23],...<br><span class="sewdt6tav16cbnq"></span><span class="sewjyrx1n5iui9f"></span><br>
    </blockquote>Wird tuples komplett weggelassen so stimmt die ermittelte consumption nach erster Analyse.<br><br>Meine Frage: funktioniert "consumption" bei diesem Kanaltyp anders
    oder ist das evtl. ein Bug in der Ermittlung der Consumption bei diesem Kanaltyp?<br>
    <br>Viele Grüße,<span class="HOEnZb"><font color="#888888"><br>
    Andreas<br>
  </font></span></div>

</div><br></div>