<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><span>@Andreas: Wie kann ich denn mehrere Werte mit einem POST-Request übergeben?</span><br><span></span><br><span>Wenn ich zB folgenden Link erstelle: </span><a href="http://demo.volkszaehler.org/middleware.php/data/e2d7b050-2a12-11e5-a96d-7b714e48c78c.json?operation=add&ts=1436878322158&value=14&ts=1436878514615&value=33">http://demo.volkszaehler.org/middleware.php/data/e2d7b050-2a12-11e5-a96d-7b714e48c78c.json?operation=add&ts=1436878322158&value=14&ts=1436878514615&value=33</a></div><div>dann wird nur der letzte Wert in die Datenbank geschrieben.</div><div><br></div><div>Viele Grüße,</div><div>Elias <br><span></span><br><span></span><br><blockquote type="cite"><span>Am 14.07.2015 um 13:44 schrieb Frank Richter <<a href="mailto:frank.richter83@gmail.com">frank.richter83@gmail.com</a>>:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Hallo Elias,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>genau, das alte Thema war von mir:-)</span><br></blockquote><blockquote type="cite"><span>Ich bin noch nicht dazu gekommen, meinen Datenimport durchzuziehen,</span><br></blockquote><blockquote type="cite"><span>ich hab nur schon ein bisschen nach möglichen Vorgehensweisen</span><br></blockquote><blockquote type="cite"><span>gestöbert. Mein aktueller Plan ist dieser: Hilfsdatenbank erstellen</span><br></blockquote><blockquote type="cite"><span>und per SQL die Daten mit LOAD DATA INFILE dorthin importieren, weil</span><br></blockquote><blockquote type="cite"><span>das wohl äußerst fix geht. Dann mit entsprechenden SELECT und</span><br></blockquote><blockquote type="cite"><span>INSERT-Abfragen die Datensätze einsammeln und samt channel_id und</span><br></blockquote><blockquote type="cite"><span>richtig konvertiertem Timestamp in die VZ-Datenbank schreiben.</span><br></blockquote><blockquote type="cite"><span>Zumindest in der Theorie scheint mir das eine brauchbare Lösung zu</span><br></blockquote><blockquote type="cite"><span>sein...</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Viele Grüße</span><br></blockquote><blockquote type="cite"><span>Frank</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>Am 14. Juli 2015 um 13:19 schrieb Elias Dörre <<a href="mailto:saile@gmx.de">saile@gmx.de</a>>:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Hey,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>was ich am Volkszähler besonders liebe ist die aktive Community, schon nach</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>wenigen Minuten gleich zwei Antworten! :)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>@Andreas: Danke für den Hinweis, habe die Konversation gefunden (Subjekt</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>ist: "Netzspannungsmessung" falls noch jemand danach sucht)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>@Frank und Andreas: es sind 5760 Messwerte pro Tag und Kanal. Ich versuche</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>es mal mit einem gemeinsamen POST. Ansonsten ist das direkte schreiben in</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>die Datenbank natürlich auch ne super Idee!</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Frank: Hast du schon ein funktionierendes Script? Darüber wäre ich natürlich</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>auch sehr dankbar. Ansonsten poste ich meines sobald es läuft.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Viele Grüße,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Elias</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Am 14.07.2015 um 12:59 schrieb Andreas Goetz <<a href="mailto:cpuidle@gmail.com">cpuidle@gmail.com</a>>:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Moin,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>2015-07-14 12:54 GMT+02:00 Frank Richter <<a href="mailto:frank.richter83@gmail.com">frank.richter83@gmail.com</a>>:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Hallo Elias,</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>wie viele sind denn "viele Messwerte"? Wenn es tausende sind, wird es</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>über die Middleware zäh, dann machst du das besser auf</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Datenbank-Ebene.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Viele Grüße</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Frank</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Am 14. Juli 2015 um 12:48 schrieb Elias Dörre <<a href="mailto:saile@gmx.de">saile@gmx.de</a>>:</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Moin,</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>ich habe Messwerte von einem externen Logger, der mir die Daten als CSV</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>ausgibt. Diese Daten würde ich super gerne in den Volkszähler</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>importieren um</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>sie dort visualisieren zu können.</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Gibt es eine Möglichkeit viele Messwerte auf einmal zu importieren oder</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>muss</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>jeder Messwert mit POST</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span><a href="http://demo.volkszaehler.org/middleware.php/data/550e8400-e29b-11d4-a716-446655441352.json?ts=1284677961150&value=12">http://demo.volkszaehler.org/middleware.php/data/550e8400-e29b-11d4-a716-446655441352.json?ts=1284677961150&value=12</a></span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>(vgl. <a href="http://wiki.volkszaehler.org/development/api/reference">wiki.volkszaehler.org/development/api/reference</a>) übergeben werden?</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Siehe Suchfunktion (das Thema hatten wir erst letzte Woche) und API. Solange</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>es 1 Kanal betrifft kannst Du beliebig viele Werte in einen POST Request</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>packen.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Viele Grüße,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Andreas</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Viele Grüße,</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Elias</span><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></div></body></html>