init
This commit is contained in:
commit
ce1095bb24
27 changed files with 621 additions and 0 deletions
37
app/templates/admin.html
Normal file
37
app/templates/admin.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Admin</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
||||
<script src="{{ url_for('static', filename='js/admin.js') }}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Admin-Einstellungen</h2>
|
||||
<form id="adminForm">
|
||||
<label>
|
||||
Startlichtschranke GPIO:
|
||||
<input type="number" name="start_pin" value="17">
|
||||
</label><br>
|
||||
<label>
|
||||
Zielllichtschranke GPIO:
|
||||
<input type="number" name="ziel_pin" value="27">
|
||||
</label><br>
|
||||
<label>
|
||||
Schutzzeit (Sekunden):
|
||||
<input type="number" name="schutzzeit" value="3">
|
||||
</label><br>
|
||||
<label>
|
||||
Ziellichtschranke aktiv:
|
||||
<input type="checkbox" name="ziel_aktiviert" checked>
|
||||
</label><br><br>
|
||||
<button type="submit" class="green">Speichern</button>
|
||||
</form>
|
||||
<hr>
|
||||
<h3>Systemsteuerung</h3>
|
||||
<button onclick="systemCommand('restart')">Dienst neustarten</button>
|
||||
<button onclick="systemCommand('reboot')">Neu starten</button>
|
||||
<button onclick="systemCommand('shutdown')">Herunterfahren</button>
|
||||
<button onclick="fetchLogs()">Live-Logs anzeigen</button>
|
||||
<pre id="logs"></pre>
|
||||
</body>
|
||||
</html>
|
||||
Reference in a new issue