<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Ah nun geht es. Danke. </div><div>Es werden nun erst die Daten der einen, darunter dann der anderen uuid gelistet. Über einen sverweis bekomme ich die Daten zusammengefrickelt. Ist es irgendwie auch möglich quasi hinter einem timestamp direkt beide Werte zu schreiben?</div><div>Gruß</div><div><br></div><div><br></div><div><br>Am 07.02.2015 um 13:58 schrieb Andreas Götz <<a href="mailto:cpuidle@gmail.com">cpuidle@gmail.com</a>>:<br><br></div><blockquote type="cite"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Hi,<br><br></div><div>Am 07.02.2015 um 14:53 schrieb Tim Walter <<a href="mailto:tiwa2003@web.de">tiwa2003@web.de</a>>:<br><br></div><blockquote type="cite"><div><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Die Variante hatte ich auch schon... funktionierte auch nicht.</div>

<div> </div>

<div>Diese Variante geht gar nicht:</div>

<div>
<div><a href="http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192&">http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192&</a><u>uuid[]=</u>5a732dd0-8ec3-11e4-b337-11644ffc177s?group=hour&from=0&to=now</div>

<div> </div></div></div></div></div></blockquote><div><br></div>Das ? vor group muss ein & sein. <div><br></div><div>Viele Grüße, Andreas</div><div><br><blockquote type="cite"><div><div style="font-family: Verdana;font-size: 12.0px;"><div><div>

<div>Folgende Variante spucken zumindest eine Explorerseite voller Daten aus, aber keine CSV: </div>

<div><a href="http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192">http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192</a><u>&5a732dd0</u>-8ec3-11e4-b337-11644ffc177s?group=hour&from=0&to=now</div>

<div>hilft auch nicht:</div>

<div><a href="http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192&5a732dd0-8ec3-11e4-b337-">http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192&5a732dd0-8ec3-11e4-b337-</a><u>11644ffc177s.csv?</u>group=hour&from=0&to=now</div>

<div>und diese Variante auch nicht.</div>

<div><a href="http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192">http://192.168.0.14/middleware.php/data.csv?uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192</a><u>&?</u>5a732dd0-8ec3-11e4-b337-11644ffc177fs.csv?group=hour&from=0&to=now</div>
</div>

<div>
<div> </div>

<div>mhhh... sorry...</div>

<div> </div>

<div name="quote" style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left-color: rgb(195, 217, 229); border-left-width: 2px; border-left-style: solid; -ms-word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin: 0px 0px 10px;"><b>Gesendet:</b> Samstag, 07. Februar 2015 um 13:19 Uhr<br>
<b>Von:</b> "Andreas Götz" <<a href="mailto:cpuidle@gmail.com">cpuidle@gmail.com</a>><br>
<b>An:</b> "<a href="http://volkszaehler.org">volkszaehler.org</a>" <<a href="mailto:volkszaehler-dev@demo.volkszaehler.org">volkszaehler-dev@demo.volkszaehler.org</a>><br>
<b>Betreff:</b> Re: [vz-dev] Werte aus Datenbank abrufen</div>

<div name="quoted-content">
<div>
<div>Fast- verschieb mal das .csv hinter data, die uuids dann als Query Parameter dran:</div>

<div> </div>

<div>..../data.csv?uuid[]=...</div>

<div> </div>

<div>Der Rest sieht gut aus.</div>

<div> </div>

<div>Viele Grüße, Andreas</div>

<div><br>
 </div>

<div><br>
Am 07.02.2015 um 14:13 schrieb Tim Walter <<a href="tiwa2003@web.de" target="_parent">tiwa2003@web.de</a>>:<br>
 </div>

<blockquote>
<div>
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div>Ps. hier noch mal das, was ich versucht habe aus deiner Vorgabe abzuleiten, aber nicht funktioniert:</div>

<div>
<div> </div>

<div><a href="http://192.168.0.14/middleware.php/data/uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192&uuid[]=5a732dd0-8ec3-11e4-b337-11644ffc177s.csv?group=hour&from=0&to=now" target="_blank">http://192.168.0.14/middleware.php/data/uuid[]=28396190-91bb-11e4-ac7d-0dc378d5f192&uuid[]=5a732dd0-8ec3-11e4-b337-11644ffc177s.csv?group=hour&from=0&to=now</a></div>

<div> </div>

<div><a href="http://192.168.0.14/middleware.php/data/28396190-91bb-11e4-ac7d-0dc378d5f192[]&5a732dd0-8ec3-11e4-b337-11644ffc177s[].csv?group=hour&from=0&to=now" target="_blank">http://192.168.0.14/middleware.php/data/28396190-91bb-11e4-ac7d-0dc378d5f192[]&5a732dd0-8ec3-11e4-b337-11644ffc177s[].csv?group=hour&from=0&to=now</a></div>

<div> </div>

<div><a href="http://192.168.0.14/middleware.php/data/28396190-91bb-11e4-ac7d-0dc378d5f192&5a732dd0-8ec3-11e4-b337-11644ffc177s.csv?group=hour&from=0&to=now" target="_blank">http://192.168.0.14/middleware.php/data/28396190-91bb-11e4-ac7d-0dc378d5f192&5a732dd0-8ec3-11e4-b337-11644ffc177s.csv?group=hour&from=0&to=now</a></div>

<div> </div>

<div>Danke</div>
</div>

<div> 
<div style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left-color: rgb(195, 217, 229); border-left-width: 2px; border-left-style: solid;">
<div style="margin: 0px 0px 10px;"><b>Gesendet:</b> Freitag, 06. Februar 2015 um 20:52 Uhr<br>
<b>Von:</b> "Andreas Götz" <<a href="cpuidle@gmail.com" target="_parent">cpuidle@gmail.com</a>><br>
<b>An:</b> "<a href="http://volkszaehler.org" target="_blank">volkszaehler.org</a>" <<a href="volkszaehler-dev@demo.volkszaehler.org" target="_parent">volkszaehler-dev@demo.volkszaehler.org</a>><br>
<b>Betreff:</b> Re: [vz-dev] Werte aus Datenbank abrufen</div>

<div>
<div>
<div>Hi,</div>

<div><br>
Am 06.02.2015 um 21:40 schrieb Tim Walter <<a>tiwa2003@web.de</a>>:<br>
 </div>

<blockquote>
<div>
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div>Hallo,</div>

<div> </div>

<div>danke das funktioniert soweit. Allerdings sehr umständlich. Vll. mache ich mir es auch zu kompliziert.</div>
</div>
</div>
</div>
</blockquote>

<div> </div>
Ja ;)

<div> 
<blockquote>
<div>
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div>Ich habe das nun mit beiden UUID (Gas und Temp) separat durchgeführt.</div>
</div>
</div>
</div>
</blockquote>

<div> </div>
Warum? Einfach data.json?uuid[]=uuid1&uuid[]=uuid2 </div>

<div> 
<blockquote>
<div>
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div>Ich habe die json Datein in excel gezogen. Dort mit Text in Spalten und suchen und ersetzen soweit umformatiert, dass ich daraus ein Diagramm erstellen konnte.</div>
</div>
</div>
</div>
</blockquote>

<div> </div>
Ehhrm. Statt data.json data.csv nehmen. Es hilft auch die Dokumentation zu lesen ;)</div>

<div> 
<blockquote>
<div>
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div> Wenn das der Weg ist, naja - nicht schön aber es geht. Aber ginge es, in einer Abfrage noch eine 2. UUID zu integrieren, sodass in einer Abfrage beide Datensätze enthalten sind?</div>

<div>Ich wüsste nicht, wie man das macht.</div>
</div>
</div>
</div>
</blockquote>

<div> </div>
S.o.</div>

<div> 
<blockquote>
<div>
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div>Danke</div>
</div>
</div>
</div>
</blockquote>

<div> </div>
Viele Grüße, Andreas</div>

<div> 
<blockquote>
<div>
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div> 
<div style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left-color: rgb(195, 217, 229); border-left-width: 2px; border-left-style: solid;">
<div style="margin: 0px 0px 10px;"><b>Gesendet:</b> Donnerstag, 05. Februar 2015 um 09:42 Uhr<br>
<b>Von:</b> "Andreas Goetz" <<a>cpuidle@gmail.com</a>><br>
<b>An:</b> "<a href="http://volkszaehler.org" target="_blank">volkszaehler.org</a>" <<a>volkszaehler-dev@demo.volkszaehler.org</a>><br>
<b>Betreff:</b> Re: [vz-dev] Werte aus Datenbank abrufen</div>

<div>
<div>Hallo,
<div class="gmail_extra"> 
<div class="gmail_quote">2015-02-04 22:12 GMT+01:00 <span><<a>tiwa2003@web.de</a>></span>:

<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">" <<a>volkszaehler-dev@demo.volkszaehler.org</a>><br>
Content-Transfer-Encoding: quoted-printable<br>
Mime-Version: 1.0 (1.0)<br>
X-Provags-ID:  V03:K0:qANrLDbst2GJ8H2DVI9bIzjvANk5kpW0xj79lwPLzWmdo9WD0iQ<br>
 fc8gqA9/jv6pVE7HSdloeIMOMze4zYYM/5VkmTWiyYFLbIAE6eCl2nmODEbKyC/dq7uiL+F<br>
 L+3h+peKTNJcmwyH7NlNuZFMvBoUDfl7R+PSLLVEKs/0GY8cPNWMn6fAjq9Pch9Tckad77N<br>
 wOISCKIDBNNop2xVQpk7Q==<br>
X-UI-Out-Filterresults: notjunk:1;<br>
<br>
Hallo zusammen,<br>
Ich w=C3=BCrde gerne f=C3=BCr einen Zeitraum x den Gasverbrauch pro Stunde =C3=<br>
=BCber die gemittelte Au=C3=9Fentemperatur der Stunde abrufen. Geht das so d=<br>
irekt? Man kann ja in sql Abfragen erstellen meine ich. Damit kenne ich mich=<br>
 aber nicht aus. Hat jmd. solch einen Abruf vll. sogar schon fertig? Oder et=<br>
was =C3=A4hnliches an dem ich mich entlanghangeln k=C3=B6nnte?<br>
Danke!<br>
 </blockquote>

<div> </div>

<div>Naklar:<br>
 </div>

<div><a href="http://ip/middleware.php/data/" target="_blank">http://ip/middleware.php/data/</a><uuid>.json?group=hour&from=0&to=now<br>
 </div>

<div>Erklärung:<br>
 </div>

<div>Das API liefert immer Momentanwerte. Mit group=hour bekommst Du den Momentanwert auf die Stunde gemittelt, also m3/h. Da auch das Zeitintervall bei group=hour eine Stunde ist entsprechen die Zahlenwerte also m3/h*h=m3, dem Verbrauch in jeweils einer Stunde. Einzige Ausnahme ist der letzte Messpunkt da hier weniger als 1 Stunde Daten drin sein können.<br>
<br>
Viele Grüße,<br>
Andreas<br>
 </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div></div>
</div></blockquote></div></div></blockquote></body></html>