diff --git a/app/main.py b/app/main.py index b994b5b..e45e02b 100644 --- a/app/main.py +++ b/app/main.py @@ -139,6 +139,12 @@ def index(): return render_template("index.html", status=status) +@app.route("/live") +def live(): + status = get_system_status() + return render_template("live.html", status=status) + + @app.route("/api/status") def api_status(): return jsonify(get_system_status()) diff --git a/app/templates/index.html b/app/templates/index.html index 96dccd0..7be8545 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -194,16 +194,18 @@
-
- {% if status.cam_available %} - Kamera-Stream - {% else %} -
- Kamera nicht verfügbar
- Ribbon-Kabel verbunden? -
- {% endif %} -
+ +
+ {% if status.cam_available %} + Kamera-Stream + {% else %} +
+ Kamera nicht verfügbar
+ Ribbon-Kabel verbunden? +
+ {% endif %} +
+
diff --git a/app/templates/live.html b/app/templates/live.html new file mode 100644 index 0000000..afa56d5 --- /dev/null +++ b/app/templates/live.html @@ -0,0 +1,214 @@ + + + + + + Babycam – Live + + + + +{% if status.cam_available %} + Babycam Live-Stream +{% else %} +
+ 📷 +

Kamera nicht verbunden

+
+{% endif %} + +
+ +
+
+
+ Babycam Live +
+ +
+ + + + + + +