diff --git a/htdocs/query.php b/htdocs/query.php new file mode 100644 index 0000000..7ced8d7 --- /dev/null +++ b/htdocs/query.php @@ -0,0 +1,43 @@ + +## +# This file is part of volkzaehler.org +# +# volkzaehler.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# any later version. +# +# volkzaehler.org is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with volkszaehler.org. If not, see . +## + +#Daten vom Eingabeform uebernehmen und Variablen zuordnen + $serverip = $_POST["serverip"]; + $title = $_POST["title"]; + $resolution = $_POST["resolution"]; + $description = $_POST["description"]; + +#Link anschliesend aufrufen +header("Location: http://$serverip/middleware/channel.json?operation=add&title=$title&type=power&resolution=$resolution&description=$description"); + +#Einige Debug hilfen +#echo "http://"; +#echo $serverip; +#echo "/middleware/channel.json?operation=add&title="; +#echo $title; +#echo "&type=power&resolution="; +#echo $resolution; +#echo "&description="; +#echo $description; + + +?> \ No newline at end of file diff --git a/htdocs/uuid_anlegen.php b/htdocs/uuid_anlegen.php new file mode 100644 index 0000000..28dc6a5 --- /dev/null +++ b/htdocs/uuid_anlegen.php @@ -0,0 +1,46 @@ + +## +# This file is part of volkzaehler.org +# +# volkzaehler.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# any later version. +# +# volkzaehler.org is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with volkszaehler.org. If not, see . +## +?> + +
+Einfaches Formular zum erstellen einer UUID in der SQL Datenbank +
+
+ServerIP mit pfad zum genutzten volkszaehler (server) angeben
+z.B http://192.168.0.1:/zaehler oder http://192.168.0.1 oder http://www.vokszaehler.org
+Es kann auch https verwendet werden https://192.168.0.1
+
+
+ Beschreibung angeben z.B. Kuehlschrank
+
+
+ Aufloesung des Zaehlers angeben z.B. 1000
+
+
+ Hersteller des Zaehlers z.B. Swissnox
+
+
+
+ Es wird eine UUID erstellt und dann die json Antwort zurueckgesendet in der sich die UUID befindet.
+ diese muss dann im Controller angegeben werden z.B. Netio +
+
+ \ No newline at end of file