Menü
Startseite
Foren
Neue Beiträge
Foren durchsuchen
Aktuelles
Neue Beiträge
Letzte Aktivität
Mitglieder
Registrierte Mitglieder
Zurzeit aktive Besucher
Chat
0
Spende
Anmelden
Registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Neue Beiträge
Foren durchsuchen
Menü
Anmelden
Registrieren
Startseite
Foren
Alles was nicht LTspice betrifft
Mikrocontroller, Raspberry und Co.
Velux Dachrollo Steuerung
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Auf Thema antworten
Nachricht
<p>[QUOTE="spicer, post: 1140, member: 1"]</p><p>Neuere index.php</p><p>Dies ist allerdings nur möglich mit einem Wettersensor, der mehr Daten liefert.</p><p>Bei mir <a href="https://www.ltspiceusers.ch/threads/opensource-wettersensor.392/">https://www.ltspiceusers.ch/threads/opensource-wettersensor.392/</a></p><p></p><p>[CODE]<!DOCTYPE HTML></p><p><html></p><p><head></p><p><style></p><p>body {</p><p> background-color: #45d5df</p><p>}</p><p>.buttons {</p><p> border-radius: 12px;</p><p> font-size: 36px;</p><p>}</p><p></style></p><p><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"></p><p><link rel="shortcut icon" href="/favicon.ico"></p><p><link rel="icon" type="image/png" href="/favicon.png" sizes="32x32"></p><p><title>VelCont Velux Control</title></p><p><meta charset="utf-8"></p><p><meta http-equiv="X-UA-Compatible" content="IE=Edge"></p><p><meta http-equiv="refresh" content="15; url=https://dyndns:8083/"></p><p></head></p><p></p><p><body></p><p></p><p><center></p><p><table></p><p><h1 style="font-size:28px">Dachfenster 1</h1></p><p><tr></p><p><a href="?function=switch1_on"><input type="submit" value="Auf" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a></p><p><a href="?function=switch1_off"><input type="submit" value="Ab" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a></p><p></tr></p><p></table></p><p><br></p><p><table></p><p><h1 style="font-size:28px">Dachfenster 2</h1></p><p><tr></p><p><a href="?function=switch2_on"><input type="submit" value="Auf" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a></p><p><a href="?function=switch2_off"><input type="submit" value="Ab" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a></p><p></tr></p><p></table></p><p><br></p><p><p style="font-size:26px"></p><p><?php</p><p></p><p>// Funktionsvariable</p><p></p><p>$function = $_GET['function'];</p><p></p><p>// Auszuführende Commands / send Command</p><p></p><p>if($function == 'switch1_on')</p><p>{</p><p>system('sh /home/pi/man_auf.sh');</p><p>}</p><p>if($function == 'switch1_off')</p><p>{</p><p>system('sh /home/pi/man_ab.sh');</p><p>}</p><p>if($function == 'switch2_on')</p><p>{</p><p>system('sh /home/pi/man_auf2.sh');</p><p>}</p><p>if($function == 'switch2_off')</p><p>{</p><p>system('sh /home/pi/man_ab2.sh');</p><p>}</p><p></p><p>$temp = file_get_contents("/home/pi/Temperatur");</p><p>$hum = file_get_contents("/home/pi/HUM");</p><p>$licht = file_get_contents("/home/pi/LICHT");</p><p>$alarm = file_get_contents("/home/pi/ALARM");</p><p>$alarm2 = file_get_contents("/home/pi/SIGNAL");</p><p>$letzt = file_get_contents("/home/pi/last");</p><p>$sunrise = file_get_contents("/home/pi/SUNRISE");</p><p>$sunset = file_get_contents("/home/pi/SUNSET");</p><p>$ubat = file_get_contents("/home/pi/Ubat");</p><p>$regen = file_get_contents("/home/pi/REGEN");</p><p></p><p></p><p>echo "<br>Aussentemperatur: $temp °C";</p><p>echo "<br>Luftfeuchtigkeit: $hum %";</p><p>echo "<br>Licht/Helligkeit: $licht Lux";</p><p>echo "<br> $regen";</p><p>echo "<br>";</p><p>echo "<br> $sunrise";</p><p>echo "<br> $sunset";</p><p>echo "<br>";</p><p>echo "<br>Letzter automatischer Befehl: $letzt";</p><p>echo "<br>Aktueller-Status: $alarm";</p><p>echo "<br>Empfangs-Status: $alarm2";</p><p>echo "<br>Akkuspannung: $ubat V";</p><p></p><p>?></p><p></p><p></center></p><p></body></p><p></html>[/CODE]</p><p></p><p>Habe zusätzlich auswerte2.sh und sensor.py angehängt.</p><p>[/QUOTE]</p>
[QUOTE="spicer, post: 1140, member: 1"] Neuere index.php Dies ist allerdings nur möglich mit einem Wettersensor, der mehr Daten liefert. Bei mir [URL]https://www.ltspiceusers.ch/threads/opensource-wettersensor.392/[/URL] [CODE]<!DOCTYPE HTML> <html> <head> <style> body { background-color: #45d5df } .buttons { border-radius: 12px; font-size: 36px; } </style> <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="icon" type="image/png" href="/favicon.png" sizes="32x32"> <title>VelCont Velux Control</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta http-equiv="refresh" content="15; url=https://dyndns:8083/"> </head> <body> <center> <table> <h1 style="font-size:28px">Dachfenster 1</h1> <tr> <a href="?function=switch1_on"><input type="submit" value="Auf" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a> <a href="?function=switch1_off"><input type="submit" value="Ab" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a> </tr> </table> <br> <table> <h1 style="font-size:28px">Dachfenster 2</h1> <tr> <a href="?function=switch2_on"><input type="submit" value="Auf" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a> <a href="?function=switch2_off"><input type="submit" value="Ab" style="width: 150px; height: 130px; color: black; background-color: #30bac4" class="buttons"></a> </tr> </table> <br> <p style="font-size:26px"> <?php // Funktionsvariable $function = $_GET['function']; // Auszuführende Commands / send Command if($function == 'switch1_on') { system('sh /home/pi/man_auf.sh'); } if($function == 'switch1_off') { system('sh /home/pi/man_ab.sh'); } if($function == 'switch2_on') { system('sh /home/pi/man_auf2.sh'); } if($function == 'switch2_off') { system('sh /home/pi/man_ab2.sh'); } $temp = file_get_contents("/home/pi/Temperatur"); $hum = file_get_contents("/home/pi/HUM"); $licht = file_get_contents("/home/pi/LICHT"); $alarm = file_get_contents("/home/pi/ALARM"); $alarm2 = file_get_contents("/home/pi/SIGNAL"); $letzt = file_get_contents("/home/pi/last"); $sunrise = file_get_contents("/home/pi/SUNRISE"); $sunset = file_get_contents("/home/pi/SUNSET"); $ubat = file_get_contents("/home/pi/Ubat"); $regen = file_get_contents("/home/pi/REGEN"); echo "<br>Aussentemperatur: $temp °C"; echo "<br>Luftfeuchtigkeit: $hum %"; echo "<br>Licht/Helligkeit: $licht Lux"; echo "<br> $regen"; echo "<br>"; echo "<br> $sunrise"; echo "<br> $sunset"; echo "<br>"; echo "<br>Letzter automatischer Befehl: $letzt"; echo "<br>Aktueller-Status: $alarm"; echo "<br>Empfangs-Status: $alarm2"; echo "<br>Akkuspannung: $ubat V"; ?> </center> </body> </html>[/CODE] Habe zusätzlich auswerte2.sh und sensor.py angehängt. [/QUOTE]
Zitate einfügen…
Vorschau
Name
Authentifizierung
U=24 V, R=6 Ohm, Wieviel Strom fliesst?
Antworten
Startseite
Foren
Alles was nicht LTspice betrifft
Mikrocontroller, Raspberry und Co.
Velux Dachrollo Steuerung
Oben