diff --git a/server.py b/server.py index b623b98..e9d6b5f 100644 --- a/server.py +++ b/server.py @@ -15,12 +15,9 @@ socketio = SocketIO(app, cors_allowed_origins="*", async_mode='threading') app.register_blueprint(unsecure) app.register_blueprint(esp) -# Simuliere regelmäßige Daten-Updates - def send_data(): counter = 0 while True: - #print(f"Sending data: {counter}") data = { 'test': 'Live-Daten', 'status': 'OK', @@ -28,7 +25,7 @@ def send_data(): } socketio.emit('update_data', data) counter += 1 - time.sleep(2) # alle 2 Sekunden neue Daten + time.sleep(2) # Hintergrund-Thread starten thread = threading.Thread(target=send_data) diff --git a/static/gimmiCoffee_Logo.png b/static/gimmiCoffee_Logo.png new file mode 100644 index 0000000..f766c8a Binary files /dev/null and b/static/gimmiCoffee_Logo.png differ diff --git a/templates/index.html b/templates/index.html index 7c09f5a..f1c6817 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,6 +6,7 @@