<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Kopano WebApp v3.4.24.1929+84.1">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Frage zu Middleware-API</title>
</head>
<body>
<p style="padding: 0; margin: 0;"><span style="font-size: 11pt; font-family: tahoma, arial, helvetica, sans-serif;"></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Hallo zusammen,</span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;"><br /></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">ich bin gerade dabei mir ein Script zu basteln, mit dem ich einen S0-Kanal überwachen kann. </span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Es soll die Anzahl der im Impulse  in den letzten X Minuten ausgewertet werden.</span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Für das ganze habe ich eine Vorlage gefunden (wo weiß ich nicht mehr), die aber nicht funktioniert.</span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Problem ist das die Antwort der Middleware für mich nicht Nachvollziehbar ist.</span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Die URL zur Abfrage lautet: <a href="http://localhost/middleware.php/data/e2b64f10-92eb-11e2-94e4-ed0995b4eb89.csv?from=1551009686000" target="_blank" title="http://localhost/middleware.php/data/e2b64f10-92eb-11e2-94e4-ed0995b4eb89.csv?from=1551009686000
Klicken Sie auf den Link, um die URL in einem neuen Fenster zu öffnen." rel="noopener">http://localhost/middleware.php/data/e2b64f10-92eb-11e2-94e4-ed0995b4eb89.csv?from=1551009686000</a></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Das sollte richtig sein nach:</span><span style="font-size: 11pt;"><a href="https://wiki.volkszaehler.org/development/api/reference" target="_blank" title="https://wiki.volkszaehler.org/development/api/reference
Klicken Sie auf den Link, um die URL in einem neuen Fenster zu öffnen." rel="noopener"> https://wiki.volkszaehler.org/development/api/reference</a><br /></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Antwort der Middleware:</span></p>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # source:;volkszaehler.org </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # version:;0.3 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # uuid:;e2b64f10-92eb-11e2-94e4-ed0995b4eb89 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # title:;Strom_L2 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # from:;2019-02-24 06:48:50 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # to:;2036-02-07 07:37:55 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # min:;2036-02-07 07:28:17; => ;0 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # max:;2036-02-07 07:29:41; => ;1800 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # average:;0 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # consumption:;43.5 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # rows:;88 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    2019-02-24 06:50:00;25.714;1 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    2036-02-07 07:28:17;0;1 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    2036-02-07 07:28:24;257.143;1 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    2036-02-07 07:28:29;360;1 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    2036-02-07 07:28:5.....</div>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;"><br /></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Zum testen habe ich den Zeitbereich mit to= Eingegrenzt, URL:  <a href="http://localhost/middleware.php/data/e2b64f10-92eb-11e2-94e4-ed0995b4eb89.csv?from=1551009097000&to=1551009157000" target="_blank" title="http://localhost/middleware.php/data/e2b64f10-92eb-11e2-94e4-ed0995b4eb89.csv?from=1551009097000&to=1551009157000
Klicken Sie auf den Link, um die URL in einem neuen Fenster zu öffnen." rel="noopener">http://localhost/middleware.php/data/e2b64f10-92eb-11e2-94e4-ed0995b4eb89.csv?from=1551009097000&to=1551009157000</a></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;"><span style="font-size: 14.6667px;">Antwort der Middleware:</span></span></p>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # source:;volkszaehler.org </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # version:;0.3 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # uuid:;e2b64f10-92eb-11e2-94e4-ed0995b4eb89 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # title:;Strom_L2 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # from:;2019-02-24 06:48:50 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # to:;2036-02-07 07:28:17 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # min:;2036-02-07 07:28:17; => ;0 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # max:;2019-02-24 06:50:00; => ;25.714 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # average:;0 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # consumption:;1 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    # rows:;3 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    2019-02-24 06:50:00;25.714;1 </div>
<div style="font-family: 'Times New Roman'; font-size: medium;">    2036-02-07 07:28:17;0;1</div>
<p style="font-family: 'Times New Roman'; font-size: medium;">Hier sieht mann womit ich nicht klar komme. Obwohl die Abfragen mit Abstand ausgeführt wurden, bekomme ich in beiden fällen die selbe (falsche) Antwort für "# from:" und "# to:". Sogar die 1 Daten sind identisch. </p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Wie kommen diese Werte zustande?<br /></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Wo kann ich noch einen Schalter für "Debug" setzen?</span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Oder gibt es einen besseren Weg für mein Script?</span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;"><br /></span></p>
<p style="font-family: 'Times New Roman'; font-size: medium; padding: 0px; margin: 0px;"><span style="font-size: 11pt;">Ich hoffe mir kann jemand helfen.</span></p>
<pre style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px;"><span style="font-family: tahoma, arial, helvetica, sans-serif;"><span style="font-size: 11pt;">Mit freundlichen Grüßen,<br /><br />Thomas<br /></span></span><span style="font-family: tahoma, arial, helvetica, sans-serif;"><span style="font-size: 11pt;">
Mail: </span></span><a href="mailto:thomas@thhoe.de" target="_blank" title="mailto:thomas@thhoe.de
Klicken Sie auf den Link, um die URL in einem neuen Fenster zu öffnen." rel="noopener">thomas@thhoe.de</a></pre>
</body>
</html>