<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hallo Zusammen,<br>
      <br>
      es handelt sich um einen Fehler in der MW aufgrund Aggregation von
      Tupeln und Skippen des ersten Records.<br>
      <br>
      Vollständiger Patch hier:
      <a class="moz-txt-link-freetext" href="https://github.com/andig/volkszaehler.org">https://github.com/andig/volkszaehler.org</a><br>
      <br>
      Nebenbei gibts noch neue Features (database section im
      CapabilitiesController) und Performanceverbesserung
      (Packageaggregation in MySQL statt PHP).<br>
      <br>
      @Justin: ich kann leider keinen Pull Request stellen da der alte
      (den wir jetzt löschen können) noch aktiv ist. Könntest Du den Weg
      freimachen?<br>
      <br>
      Danke,<br>
      Andreas<br>
      <br>
      <br>
      On 12.07.2013 12:10, Andreas Goetz wrote:<br>
    </div>
    <blockquote
cite="mid:CAD+a8MihTf79KhS2PzOs5gzT=Z-ecnms0ohcYMi815jqje+==w@mail.gmail.com"
      type="cite">
      <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 <a class="moz-txt-link-freetext" href="http://">http://</a><a moz-do-not-send="true"
              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 moz-do-not-send="true"
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 moz-do-not-send="true"
                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 moz-do-not-send="true"
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 moz-do-not-send="true"
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>
    </blockquote>
    <br>
  </body>
</html>