<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hallo,<br>
    <br>
    für meine Monitoring App github.com/andig/vzmon versuche ich die
    Erzeugung des Tages (Mitternacht bis jetzt) auszusummieren. Für
    Kanäle vom Typ Power klappt das wunderbar: <br>
    <br>
       
    <a class="moz-txt-link-freetext" href="http://ip/middleware.php/data/kanalid.json?fomr=today&to=now&tuples=1">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 class="moz-txt-link-freetext" href="http://ip/middleware.php/channel.json">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 class="moz-txt-link-freetext" href="http://ip/middleware.php/data/5b340280-9248-11e2-bf0b-adb29ee33b6f.json?from=today&to=now&tuples=1">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 leer??<br>
    <br>
    Mit >1 Tupeln:<br>
    <br>
    <blockquote><a class="moz-txt-link-freetext" href="http://ip/middleware.php/data/5b340280-9248-11e2-bf0b-adb29ee33b6f.json?from=today&to=now&tuples=1">http://ip/middleware.php/data/5b340280-9248-11e2-bf0b-adb29ee33b6f.json?from=today&to=now&tuples=1</a><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>
      <br>
    </blockquote>
    Meine Frage: funktioniert "consumption" bei diesem Kanaltyp anders
    oder ist das evtl. ein Bug?<br>
    <br>
    vg<br>
    Andreas<br>
  </body>
</html>