diff --git a/backend/__pycache__/models.cpython-311.pyc b/backend/__pycache__/models.cpython-311.pyc index ae82ebc03..ff1586e93 100644 Binary files a/backend/__pycache__/models.cpython-311.pyc and b/backend/__pycache__/models.cpython-311.pyc differ diff --git a/backend/backend/database/myp.db b/backend/backend/database/myp.db index fc74722bf..971333f06 100644 Binary files a/backend/backend/database/myp.db and b/backend/backend/database/myp.db differ diff --git a/backend/blueprints/__pycache__/admin_unified.cpython-311.pyc b/backend/blueprints/__pycache__/admin_unified.cpython-311.pyc index ac517766a..95b8fda8b 100644 Binary files a/backend/blueprints/__pycache__/admin_unified.cpython-311.pyc and b/backend/blueprints/__pycache__/admin_unified.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/api.cpython-311.pyc b/backend/blueprints/__pycache__/api.cpython-311.pyc index b161a9b43..5157d76a6 100644 Binary files a/backend/blueprints/__pycache__/api.cpython-311.pyc and b/backend/blueprints/__pycache__/api.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/auth.cpython-311.pyc b/backend/blueprints/__pycache__/auth.cpython-311.pyc index 3a31d8099..e8b05b514 100644 Binary files a/backend/blueprints/__pycache__/auth.cpython-311.pyc and b/backend/blueprints/__pycache__/auth.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/calendar.cpython-311.pyc b/backend/blueprints/__pycache__/calendar.cpython-311.pyc index 4b4e2839a..cacdb82dc 100644 Binary files a/backend/blueprints/__pycache__/calendar.cpython-311.pyc and b/backend/blueprints/__pycache__/calendar.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/drucker_steuerung.cpython-311.pyc b/backend/blueprints/__pycache__/drucker_steuerung.cpython-311.pyc index eb44f6868..ee6d0aaae 100644 Binary files a/backend/blueprints/__pycache__/drucker_steuerung.cpython-311.pyc and b/backend/blueprints/__pycache__/drucker_steuerung.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/energy_monitoring.cpython-311.pyc b/backend/blueprints/__pycache__/energy_monitoring.cpython-311.pyc index 0c9737ef8..c0ae200a9 100644 Binary files a/backend/blueprints/__pycache__/energy_monitoring.cpython-311.pyc and b/backend/blueprints/__pycache__/energy_monitoring.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/guest.cpython-311.pyc b/backend/blueprints/__pycache__/guest.cpython-311.pyc index 7cc9bb462..b5a8db408 100644 Binary files a/backend/blueprints/__pycache__/guest.cpython-311.pyc and b/backend/blueprints/__pycache__/guest.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/jobs.cpython-311.pyc b/backend/blueprints/__pycache__/jobs.cpython-311.pyc index 55475cdcf..9e7342fc0 100644 Binary files a/backend/blueprints/__pycache__/jobs.cpython-311.pyc and b/backend/blueprints/__pycache__/jobs.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/kiosk.cpython-311.pyc b/backend/blueprints/__pycache__/kiosk.cpython-311.pyc index adbeca00d..7c0d0a0b5 100644 Binary files a/backend/blueprints/__pycache__/kiosk.cpython-311.pyc and b/backend/blueprints/__pycache__/kiosk.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/legal_pages.cpython-311.pyc b/backend/blueprints/__pycache__/legal_pages.cpython-311.pyc index a50bcde7f..024c528e7 100644 Binary files a/backend/blueprints/__pycache__/legal_pages.cpython-311.pyc and b/backend/blueprints/__pycache__/legal_pages.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/printers.cpython-311.pyc b/backend/blueprints/__pycache__/printers.cpython-311.pyc index bed59131a..464f1c52e 100644 Binary files a/backend/blueprints/__pycache__/printers.cpython-311.pyc and b/backend/blueprints/__pycache__/printers.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/sessions.cpython-311.pyc b/backend/blueprints/__pycache__/sessions.cpython-311.pyc index 267e7bbc5..14df4fce8 100644 Binary files a/backend/blueprints/__pycache__/sessions.cpython-311.pyc and b/backend/blueprints/__pycache__/sessions.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/tapo_control.cpython-311.pyc b/backend/blueprints/__pycache__/tapo_control.cpython-311.pyc index b75935b8c..805ebfeb3 100644 Binary files a/backend/blueprints/__pycache__/tapo_control.cpython-311.pyc and b/backend/blueprints/__pycache__/tapo_control.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/uploads.cpython-311.pyc b/backend/blueprints/__pycache__/uploads.cpython-311.pyc index f15007566..48af81a94 100644 Binary files a/backend/blueprints/__pycache__/uploads.cpython-311.pyc and b/backend/blueprints/__pycache__/uploads.cpython-311.pyc differ diff --git a/backend/blueprints/__pycache__/user_management.cpython-311.pyc b/backend/blueprints/__pycache__/user_management.cpython-311.pyc index 2cf5b2d5c..2cf56f0d8 100644 Binary files a/backend/blueprints/__pycache__/user_management.cpython-311.pyc and b/backend/blueprints/__pycache__/user_management.cpython-311.pyc differ diff --git a/backend/logs/app/app.log b/backend/logs/app/app.log index e6a3ca1be..24a9df2fb 100644 --- a/backend/logs/app/app.log +++ b/backend/logs/app/app.log @@ -63214,3 +63214,177 @@ WHERE users.role = ?] 2025-06-20 10:48:28 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) 2025-06-20 10:48:39 - [app] app - [WARNING] WARNING - [STARTUP] ⚠️ Keine der 6 Steckdosen konnte initialisiert werden 2025-06-20 10:48:39 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://: +2025-06-20 10:50:14 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt... +2025-06-20 10:50:14 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt +2025-06-20 10:50:14 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: +2025-06-20 10:50:16 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:50:16 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt... +2025-06-20 10:50:16 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt +2025-06-20 10:50:16 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: +2025-06-20 10:54:14 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:54:14 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:54:14 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert +2025-06-20 10:54:26 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:54:26 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:54:57 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:54:57 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:54:57 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert +2025-06-20 10:55:10 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:55:30 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:55:30 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:55:30 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert +2025-06-20 10:55:32 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Konfiguration aktiviert +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: +2025-06-20 10:55:33 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:55:33 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: erstellt, aktualisiert +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP -Umgebung +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [STARTUP] 🏢 +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank... +2025-06-20 10:55:33 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert +2025-06-20 10:55:33 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin... +2025-06-20 10:55:34 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) wurde angelegt. +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker... +2025-06-20 10:55:34 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 1 (192.168.0.100) +2025-06-20 10:55:34 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 2 (192.168.0.101) +2025-06-20 10:55:34 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 3 (192.168.0.102) +2025-06-20 10:55:34 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 4 (192.168.0.103) +2025-06-20 10:55:34 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 5 (192.168.0.104) +2025-06-20 10:55:34 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 6 (192.168.0.106) +2025-06-20 10:55:34 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 6 erstellt, 0 aktualisiert +2025-06-20 10:55:34 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert +2025-06-20 10:55:34 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105) +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager... +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler... +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet +2025-06-20 10:55:34 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Steckdosen (alle auf 'aus' = frei)... +2025-06-20 10:55:52 - [app] app - [WARNING] WARNING - [STARTUP] ⚠️ Keine der 6 Steckdosen konnte initialisiert werden +2025-06-20 10:55:52 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://: +2025-06-20 10:55:52 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Konfiguration aktiviert +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: +2025-06-20 10:55:53 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: erstellt, aktualisiert +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP -Umgebung +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] 🏢 +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank... +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin... +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt. +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker... +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert +2025-06-20 10:55:53 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert +2025-06-20 10:55:53 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105) +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager... +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler... +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet +2025-06-20 10:55:53 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Steckdosen (alle auf 'aus' = frei)... +2025-06-20 10:56:11 - [app] app - [WARNING] WARNING - [STARTUP] ⚠️ Keine der 6 Steckdosen konnte initialisiert werden +2025-06-20 10:56:11 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://: +2025-06-20 10:58:00 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Konfiguration aktiviert +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: +2025-06-20 10:58:01 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: erstellt, aktualisiert +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP -Umgebung +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] 🏢 +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank... +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin... +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt. +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft +2025-06-20 10:58:01 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker... +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100) +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101) +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102) +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103) +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104) +2025-06-20 10:58:01 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106) +2025-06-20 10:58:01 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert +2025-06-20 10:58:02 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert +2025-06-20 10:58:02 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105) +2025-06-20 10:58:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert +2025-06-20 10:58:02 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager... +2025-06-20 10:58:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet +2025-06-20 10:58:02 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler... +2025-06-20 10:58:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet +2025-06-20 10:58:02 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Steckdosen (alle auf 'aus' = frei)... +2025-06-20 10:58:20 - [app] app - [WARNING] WARNING - [STARTUP] ⚠️ Keine der 6 Steckdosen konnte initialisiert werden +2025-06-20 10:58:20 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://: +2025-06-20 10:58:20 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Konfiguration aktiviert +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: +2025-06-20 10:58:21 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: erstellt, aktualisiert +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP -Umgebung +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] 🏢 +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank... +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin... +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt. +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker... +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert +2025-06-20 10:58:21 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert +2025-06-20 10:58:21 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105) +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager... +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler... +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet +2025-06-20 10:58:21 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Steckdosen (alle auf 'aus' = frei)... +2025-06-20 10:58:39 - [app] app - [WARNING] WARNING - [STARTUP] ⚠️ Keine der 6 Steckdosen konnte initialisiert werden +2025-06-20 10:58:39 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://: +2025-06-20 10:58:58 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt... +2025-06-20 10:58:58 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt +2025-06-20 10:58:58 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: diff --git a/backend/logs/core_system/core_system.log b/backend/logs/core_system/core_system.log index f0c66f3ca..73ad7db68 100644 --- a/backend/logs/core_system/core_system.log +++ b/backend/logs/core_system/core_system.log @@ -480,3 +480,5 @@ 2025-06-20 10:43:08 - [core_system] core_system - [INFO] INFO - 📊 Massive Konsolidierung: 6 Dateien → 1 Datei (88% Reduktion) 2025-06-20 10:48:20 - [core_system] core_system - [INFO] INFO - ✅ Core System Management Module erfolgreich initialisiert 2025-06-20 10:48:20 - [core_system] core_system - [INFO] INFO - 📊 Massive Konsolidierung: 6 Dateien → 1 Datei (88% Reduktion) +2025-06-20 10:50:15 - [core_system] core_system - [INFO] INFO - ✅ Core System Management Module erfolgreich initialisiert +2025-06-20 10:50:15 - [core_system] core_system - [INFO] INFO - 📊 Massive Konsolidierung: 6 Dateien → 1 Datei (88% Reduktion) diff --git a/backend/logs/data_management/data_management.log b/backend/logs/data_management/data_management.log index ec589c018..fc2200b37 100644 --- a/backend/logs/data_management/data_management.log +++ b/backend/logs/data_management/data_management.log @@ -1011,3 +1011,11 @@ 2025-06-20 10:43:08 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) 2025-06-20 10:48:20 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert 2025-06-20 10:48:20 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:55:32 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert +2025-06-20 10:55:32 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:55:52 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert +2025-06-20 10:55:52 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:58:00 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert +2025-06-20 10:58:00 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:58:20 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert +2025-06-20 10:58:20 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) diff --git a/backend/logs/drucker_steuerung/drucker_steuerung.log b/backend/logs/drucker_steuerung/drucker_steuerung.log index 165cec584..0e2a6e496 100644 --- a/backend/logs/drucker_steuerung/drucker_steuerung.log +++ b/backend/logs/drucker_steuerung/drucker_steuerung.log @@ -94,3 +94,7 @@ 2025-06-20 10:42:41 - [drucker_steuerung] drucker_steuerung - [INFO] INFO - 🖨️ Drucker-Steuerungs-Blueprint (Backend-Kontrolle) geladen 2025-06-20 10:43:09 - [drucker_steuerung] drucker_steuerung - [INFO] INFO - 🖨️ Drucker-Steuerungs-Blueprint (Backend-Kontrolle) geladen 2025-06-20 10:48:21 - [drucker_steuerung] drucker_steuerung - [INFO] INFO - 🖨️ Drucker-Steuerungs-Blueprint (Backend-Kontrolle) geladen +2025-06-20 10:55:33 - [drucker_steuerung] drucker_steuerung - [INFO] INFO - 🖨️ Drucker-Steuerungs-Blueprint (Backend-Kontrolle) geladen +2025-06-20 10:55:53 - [drucker_steuerung] drucker_steuerung - [INFO] INFO - 🖨️ Drucker-Steuerungs-Blueprint (Backend-Kontrolle) geladen +2025-06-20 10:58:01 - [drucker_steuerung] drucker_steuerung - [INFO] INFO - 🖨️ Drucker-Steuerungs-Blueprint (Backend-Kontrolle) geladen +2025-06-20 10:58:21 - [drucker_steuerung] drucker_steuerung - [INFO] INFO - 🖨️ Drucker-Steuerungs-Blueprint (Backend-Kontrolle) geladen diff --git a/backend/logs/energy_monitoring/energy_monitoring.log b/backend/logs/energy_monitoring/energy_monitoring.log index b6f38cecd..1b64e2514 100644 --- a/backend/logs/energy_monitoring/energy_monitoring.log +++ b/backend/logs/energy_monitoring/energy_monitoring.log @@ -819,3 +819,7 @@ 2025-06-20 10:42:41 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert 2025-06-20 10:43:09 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert 2025-06-20 10:48:21 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert +2025-06-20 10:55:33 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert +2025-06-20 10:55:53 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert +2025-06-20 10:58:01 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert +2025-06-20 10:58:21 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert diff --git a/backend/logs/hardware_integration/hardware_integration.log b/backend/logs/hardware_integration/hardware_integration.log index e09ff2330..57ead3ebe 100644 --- a/backend/logs/hardware_integration/hardware_integration.log +++ b/backend/logs/hardware_integration/hardware_integration.log @@ -3806,3 +3806,15 @@ 2025-06-20 10:43:10 - [hardware_integration] hardware_integration - [INFO] INFO - 🎯 DruckerSteuerung initialisiert - BACKEND ÜBERNIMMT KONTROLLE 2025-06-20 10:48:20 - [hardware_integration] hardware_integration - [INFO] INFO - 🚀 Hardware Integration (Backend-Kontrolle) erfolgreich geladen 2025-06-20 10:48:21 - [hardware_integration] hardware_integration - [INFO] INFO - 🎯 DruckerSteuerung initialisiert - BACKEND ÜBERNIMMT KONTROLLE +2025-06-20 10:55:32 - [hardware_integration] hardware_integration - [INFO] INFO - 🚀 Hardware Integration (Backend-Kontrolle) erfolgreich geladen +2025-06-20 10:55:34 - [hardware_integration] hardware_integration - [INFO] INFO - 🎯 DruckerSteuerung initialisiert - BACKEND ÜBERNIMMT KONTROLLE +2025-06-20 10:55:34 - [hardware_integration] hardware_integration - [INFO] INFO - 🚧 Entwicklungsumgebung erkannt - Erweiterte Simulation aktiviert +2025-06-20 10:55:52 - [hardware_integration] hardware_integration - [INFO] INFO - 🚀 Hardware Integration (Backend-Kontrolle) erfolgreich geladen +2025-06-20 10:55:53 - [hardware_integration] hardware_integration - [INFO] INFO - 🎯 DruckerSteuerung initialisiert - BACKEND ÜBERNIMMT KONTROLLE +2025-06-20 10:55:53 - [hardware_integration] hardware_integration - [INFO] INFO - 🚧 Entwicklungsumgebung erkannt - Erweiterte Simulation aktiviert +2025-06-20 10:58:00 - [hardware_integration] hardware_integration - [INFO] INFO - 🚀 Hardware Integration (Backend-Kontrolle) erfolgreich geladen +2025-06-20 10:58:02 - [hardware_integration] hardware_integration - [INFO] INFO - 🎯 DruckerSteuerung initialisiert - BACKEND ÜBERNIMMT KONTROLLE +2025-06-20 10:58:02 - [hardware_integration] hardware_integration - [INFO] INFO - 🚧 Entwicklungsumgebung erkannt - Erweiterte Simulation aktiviert +2025-06-20 10:58:20 - [hardware_integration] hardware_integration - [INFO] INFO - 🚀 Hardware Integration (Backend-Kontrolle) erfolgreich geladen +2025-06-20 10:58:21 - [hardware_integration] hardware_integration - [INFO] INFO - 🎯 DruckerSteuerung initialisiert - BACKEND ÜBERNIMMT KONTROLLE +2025-06-20 10:58:21 - [hardware_integration] hardware_integration - [INFO] INFO - 🚧 Entwicklungsumgebung erkannt - Erweiterte Simulation aktiviert diff --git a/backend/logs/job_queue_system/job_queue_system.log b/backend/logs/job_queue_system/job_queue_system.log index 9ef8a32ce..f51bfdbc5 100644 --- a/backend/logs/job_queue_system/job_queue_system.log +++ b/backend/logs/job_queue_system/job_queue_system.log @@ -1956,3 +1956,18 @@ 2025-06-20 10:48:20 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert 2025-06-20 10:48:20 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion) 2025-06-20 10:48:21 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität) +2025-06-20 10:50:14 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität) +2025-06-20 10:50:16 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität) +2025-06-20 10:55:32 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert +2025-06-20 10:55:32 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion) +2025-06-20 10:55:34 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität) +2025-06-20 10:55:52 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert +2025-06-20 10:55:52 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion) +2025-06-20 10:55:53 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität) +2025-06-20 10:58:00 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert +2025-06-20 10:58:00 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion) +2025-06-20 10:58:02 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität) +2025-06-20 10:58:20 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert +2025-06-20 10:58:20 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion) +2025-06-20 10:58:21 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität) +2025-06-20 10:58:58 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität) diff --git a/backend/logs/monitoring_analytics/monitoring_analytics.log b/backend/logs/monitoring_analytics/monitoring_analytics.log index 359c44210..fb75df81e 100644 --- a/backend/logs/monitoring_analytics/monitoring_analytics.log +++ b/backend/logs/monitoring_analytics/monitoring_analytics.log @@ -1001,3 +1001,11 @@ 2025-06-20 10:43:09 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) 2025-06-20 10:48:21 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert 2025-06-20 10:48:21 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:55:33 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert +2025-06-20 10:55:33 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:55:53 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert +2025-06-20 10:55:53 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:58:01 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert +2025-06-20 10:58:01 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:58:21 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert +2025-06-20 10:58:21 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) diff --git a/backend/logs/permissions/permissions.log b/backend/logs/permissions/permissions.log index 7b0b587ff..b06231786 100644 --- a/backend/logs/permissions/permissions.log +++ b/backend/logs/permissions/permissions.log @@ -548,3 +548,8 @@ WHERE users.role = ?] 2025-06-20 10:42:42 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert 2025-06-20 10:43:09 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert 2025-06-20 10:48:21 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert +2025-06-20 10:55:33 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert +2025-06-20 10:55:53 - [permissions] permissions - [INFO] INFO - UserPermission für Admin admin (ID: 1) erstellt +2025-06-20 10:55:53 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 1 erstellt, 0 aktualisiert +2025-06-20 10:58:01 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert +2025-06-20 10:58:21 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert diff --git a/backend/logs/scheduler/scheduler.log b/backend/logs/scheduler/scheduler.log index c95c87c3e..5f1a2eb52 100644 --- a/backend/logs/scheduler/scheduler.log +++ b/backend/logs/scheduler/scheduler.log @@ -4380,3 +4380,79 @@ 2025-06-20 10:48:39 - [scheduler] scheduler - [INFO] INFO - ❌ Fehlgeschlagen: 0 2025-06-20 10:48:39 - [scheduler] scheduler - [WARNING] WARNING - ⚠️ KEINE Steckdose konnte initialisiert werden! 2025-06-20 10:48:39 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:55:32 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True +2025-06-20 10:55:34 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet +2025-06-20 10:55:34 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet +2025-06-20 10:55:34 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte Steckdosen-Initialisierung beim Systemstart... +2025-06-20 10:55:34 - [scheduler] scheduler - [INFO] INFO - 🔍 Prüfe 6 konfigurierte Steckdosen... +2025-06-20 10:55:37 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 1: Steckdose 192.168.0.100 nicht erreichbar +2025-06-20 10:55:40 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 2: Steckdose 192.168.0.101 nicht erreichbar +2025-06-20 10:55:43 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 3: Steckdose 192.168.0.102 nicht erreichbar +2025-06-20 10:55:46 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 4: Steckdose 192.168.0.103 nicht erreichbar +2025-06-20 10:55:49 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 5: Steckdose 192.168.0.104 nicht erreichbar +2025-06-20 10:55:52 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 6: Steckdose 192.168.0.106 nicht erreichbar +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - 🎯 STECKDOSEN-INITIALISIERUNG ABGESCHLOSSEN +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - 📊 Gesamt: 6 Steckdosen +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - ✅ Erfolgreich: 0 +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - 📡 Nicht erreichbar: 6 +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - ❌ Fehlgeschlagen: 0 +2025-06-20 10:55:52 - [scheduler] scheduler - [WARNING] WARNING - ⚠️ KEINE Steckdose konnte initialisiert werden! +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:55:52 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True +2025-06-20 10:55:53 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet +2025-06-20 10:55:53 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet +2025-06-20 10:55:53 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte Steckdosen-Initialisierung beim Systemstart... +2025-06-20 10:55:53 - [scheduler] scheduler - [INFO] INFO - 🔍 Prüfe 6 konfigurierte Steckdosen... +2025-06-20 10:55:56 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 1: Steckdose 192.168.0.100 nicht erreichbar +2025-06-20 10:55:59 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 2: Steckdose 192.168.0.101 nicht erreichbar +2025-06-20 10:56:02 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 3: Steckdose 192.168.0.102 nicht erreichbar +2025-06-20 10:56:05 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 4: Steckdose 192.168.0.103 nicht erreichbar +2025-06-20 10:56:08 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 5: Steckdose 192.168.0.104 nicht erreichbar +2025-06-20 10:56:11 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 6: Steckdose 192.168.0.106 nicht erreichbar +2025-06-20 10:56:11 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:56:11 - [scheduler] scheduler - [INFO] INFO - 🎯 STECKDOSEN-INITIALISIERUNG ABGESCHLOSSEN +2025-06-20 10:56:11 - [scheduler] scheduler - [INFO] INFO - 📊 Gesamt: 6 Steckdosen +2025-06-20 10:56:11 - [scheduler] scheduler - [INFO] INFO - ✅ Erfolgreich: 0 +2025-06-20 10:56:11 - [scheduler] scheduler - [INFO] INFO - 📡 Nicht erreichbar: 6 +2025-06-20 10:56:11 - [scheduler] scheduler - [INFO] INFO - ❌ Fehlgeschlagen: 0 +2025-06-20 10:56:11 - [scheduler] scheduler - [WARNING] WARNING - ⚠️ KEINE Steckdose konnte initialisiert werden! +2025-06-20 10:56:11 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:58:00 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True +2025-06-20 10:58:02 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet +2025-06-20 10:58:02 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet +2025-06-20 10:58:02 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte Steckdosen-Initialisierung beim Systemstart... +2025-06-20 10:58:02 - [scheduler] scheduler - [INFO] INFO - 🔍 Prüfe 6 konfigurierte Steckdosen... +2025-06-20 10:58:05 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 1: Steckdose 192.168.0.100 nicht erreichbar +2025-06-20 10:58:08 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 2: Steckdose 192.168.0.101 nicht erreichbar +2025-06-20 10:58:11 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 3: Steckdose 192.168.0.102 nicht erreichbar +2025-06-20 10:58:14 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 4: Steckdose 192.168.0.103 nicht erreichbar +2025-06-20 10:58:17 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 5: Steckdose 192.168.0.104 nicht erreichbar +2025-06-20 10:58:20 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 6: Steckdose 192.168.0.106 nicht erreichbar +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - 🎯 STECKDOSEN-INITIALISIERUNG ABGESCHLOSSEN +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - 📊 Gesamt: 6 Steckdosen +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - ✅ Erfolgreich: 0 +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - 📡 Nicht erreichbar: 6 +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - ❌ Fehlgeschlagen: 0 +2025-06-20 10:58:20 - [scheduler] scheduler - [WARNING] WARNING - ⚠️ KEINE Steckdose konnte initialisiert werden! +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:58:20 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True +2025-06-20 10:58:21 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet +2025-06-20 10:58:21 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet +2025-06-20 10:58:21 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte Steckdosen-Initialisierung beim Systemstart... +2025-06-20 10:58:21 - [scheduler] scheduler - [INFO] INFO - 🔍 Prüfe 6 konfigurierte Steckdosen... +2025-06-20 10:58:24 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 1: Steckdose 192.168.0.100 nicht erreichbar +2025-06-20 10:58:27 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 2: Steckdose 192.168.0.101 nicht erreichbar +2025-06-20 10:58:30 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 3: Steckdose 192.168.0.102 nicht erreichbar +2025-06-20 10:58:33 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 4: Steckdose 192.168.0.103 nicht erreichbar +2025-06-20 10:58:36 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 5: Steckdose 192.168.0.104 nicht erreichbar +2025-06-20 10:58:39 - [scheduler] scheduler - [WARNING] WARNING - 📡 Drucker 6: Steckdose 192.168.0.106 nicht erreichbar +2025-06-20 10:58:39 - [scheduler] scheduler - [INFO] INFO - ============================================================ +2025-06-20 10:58:39 - [scheduler] scheduler - [INFO] INFO - 🎯 STECKDOSEN-INITIALISIERUNG ABGESCHLOSSEN +2025-06-20 10:58:39 - [scheduler] scheduler - [INFO] INFO - 📊 Gesamt: 6 Steckdosen +2025-06-20 10:58:39 - [scheduler] scheduler - [INFO] INFO - ✅ Erfolgreich: 0 +2025-06-20 10:58:39 - [scheduler] scheduler - [INFO] INFO - 📡 Nicht erreichbar: 6 +2025-06-20 10:58:39 - [scheduler] scheduler - [INFO] INFO - ❌ Fehlgeschlagen: 0 +2025-06-20 10:58:39 - [scheduler] scheduler - [WARNING] WARNING - ⚠️ KEINE Steckdose konnte initialisiert werden! +2025-06-20 10:58:39 - [scheduler] scheduler - [INFO] INFO - ============================================================ diff --git a/backend/logs/security_suite/security_suite.log b/backend/logs/security_suite/security_suite.log index 8bc0e427c..36d2cef87 100644 --- a/backend/logs/security_suite/security_suite.log +++ b/backend/logs/security_suite/security_suite.log @@ -1512,3 +1512,15 @@ 2025-06-20 10:48:20 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert 2025-06-20 10:48:20 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) 2025-06-20 10:48:21 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert +2025-06-20 10:55:32 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert +2025-06-20 10:55:32 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:55:33 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert +2025-06-20 10:55:52 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert +2025-06-20 10:55:52 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:55:53 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert +2025-06-20 10:58:00 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert +2025-06-20 10:58:00 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:58:01 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert +2025-06-20 10:58:20 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert +2025-06-20 10:58:20 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion) +2025-06-20 10:58:21 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert diff --git a/backend/logs/startup/startup.log b/backend/logs/startup/startup.log index 5fac1a45f..d0eb02c3f 100644 --- a/backend/logs/startup/startup.log +++ b/backend/logs/startup/startup.log @@ -3997,3 +3997,31 @@ 2025-06-20 10:48:21 - [startup] startup - [INFO] INFO - 🪟 Windows-Modus: Aktiviert 2025-06-20 10:48:21 - [startup] startup - [INFO] INFO - 🔒 Windows-sichere Log-Rotation: Aktiviert 2025-06-20 10:48:21 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:55:33 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:55:33 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet... +2025-06-20 10:55:33 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] +2025-06-20 10:55:33 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: posix (linux) +2025-06-20 10:55:33 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: /mnt/c/Users/TTOMCZA.EMEA/Dev/Projektarbeit-MYP/backend +2025-06-20 10:55:33 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-20T10:55:33.650519 +2025-06-20 10:55:33 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:55:53 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:55:53 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet... +2025-06-20 10:55:53 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] +2025-06-20 10:55:53 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: posix (linux) +2025-06-20 10:55:53 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: /mnt/c/Users/TTOMCZA.EMEA/Dev/Projektarbeit-MYP/backend +2025-06-20 10:55:53 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-20T10:55:53.214065 +2025-06-20 10:55:53 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:58:01 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:58:01 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet... +2025-06-20 10:58:01 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] +2025-06-20 10:58:01 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: posix (linux) +2025-06-20 10:58:01 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: /mnt/c/Users/TTOMCZA.EMEA/Dev/Projektarbeit-MYP/backend +2025-06-20 10:58:01 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-20T10:58:01.568917 +2025-06-20 10:58:01 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:58:21 - [startup] startup - [INFO] INFO - ================================================== +2025-06-20 10:58:21 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet... +2025-06-20 10:58:21 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] +2025-06-20 10:58:21 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: posix (linux) +2025-06-20 10:58:21 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: /mnt/c/Users/TTOMCZA.EMEA/Dev/Projektarbeit-MYP/backend +2025-06-20 10:58:21 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-20T10:58:21.098649 +2025-06-20 10:58:21 - [startup] startup - [INFO] INFO - ================================================== diff --git a/backend/logs/utilities_collection/utilities_collection.log b/backend/logs/utilities_collection/utilities_collection.log index a69ccca7e..2727f2c2f 100644 --- a/backend/logs/utilities_collection/utilities_collection.log +++ b/backend/logs/utilities_collection/utilities_collection.log @@ -1305,3 +1305,23 @@ 2025-06-20 10:48:20 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) 2025-06-20 10:48:28 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert 2025-06-20 10:48:28 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:50:16 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:50:16 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:54:14 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:54:14 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:54:26 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:54:26 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:54:56 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:54:56 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:55:10 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:55:10 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:55:30 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:55:30 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:55:32 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:55:32 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:55:52 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:55:52 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:58:00 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:58:00 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) +2025-06-20 10:58:20 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert +2025-06-20 10:58:20 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion) diff --git a/backend/logs/windows_fixes/windows_fixes.log b/backend/logs/windows_fixes/windows_fixes.log index b76358d65..fcaed5ddd 100644 --- a/backend/logs/windows_fixes/windows_fixes.log +++ b/backend/logs/windows_fixes/windows_fixes.log @@ -483,3 +483,5 @@ 2025-06-20 10:43:08 - [windows_fixes] windows_fixes - [INFO] INFO - ✅ Alle Windows-Fixes erfolgreich angewendet 2025-06-20 10:48:20 - [windows_fixes] windows_fixes - [INFO] INFO - 🔧 Wende Windows-spezifische Fixes an... 2025-06-20 10:48:20 - [windows_fixes] windows_fixes - [INFO] INFO - ✅ Alle Windows-Fixes erfolgreich angewendet +2025-06-20 10:50:15 - [windows_fixes] windows_fixes - [INFO] INFO - 🔧 Wende Windows-spezifische Fixes an... +2025-06-20 10:50:15 - [windows_fixes] windows_fixes - [INFO] INFO - ✅ Alle Windows-Fixes erfolgreich angewendet diff --git a/backend/models.py b/backend/models.py index 825070cd7..66bad02f1 100644 --- a/backend/models.py +++ b/backend/models.py @@ -2480,8 +2480,7 @@ def clear_model_cache(): """ Leert den Application-Level Cache für Modelle. - Diese Funktion kann erweitert werden, um verschiedene Cache-Mechanismen - zu unterstützen, wie z.B. SQLAlchemy Session Cache, Redis Cache, etc. + Diese Funktion verwaltet nur den SQLAlchemy Session Cache. """ try: # SQLAlchemy Session Cache leeren @@ -2489,8 +2488,7 @@ def clear_model_cache(): if _scoped_session: _scoped_session.remove() - # Weitere Cache-Clearing-Operationen hier hinzufügen - # z.B. Redis Cache, Memcached, etc. + # SQLite optimiert - keine weiteren Cache-Systeme erforderlich return True except Exception as e: diff --git a/backend/requirements.txt b/backend/requirements.txt index 16e7b75d1..8fc9b21db 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -130,5 +130,3 @@ pip # Auskommentiert für Stabilität - bei Bedarf aktivieren: # uwsgi; sys_platform != "win32" gevent -redis -celery diff --git a/backend/server.pid b/backend/server.pid new file mode 100644 index 000000000..1296a9596 --- /dev/null +++ b/backend/server.pid @@ -0,0 +1 @@ +2081 diff --git a/backend/templates/energy_dashboard.html b/backend/templates/energy_dashboard.html index ef624df5e..0a95ab060 100644 --- a/backend/templates/energy_dashboard.html +++ b/backend/templates/energy_dashboard.html @@ -569,11 +569,11 @@ function updateDeviceTable(devices) { -
${device.current_power || '0.0'} W
+
${device.current_power ? device.current_power.toFixed(1) : '0.0'} W
Momentan
-
${device.daily_consumption || '0.0'} kWh
+
${device.today_energy ? device.today_energy.toFixed(1) : '0.0'} kWh
Heute
diff --git a/backend/utils/__pycache__/data_management.cpython-311.pyc b/backend/utils/__pycache__/data_management.cpython-311.pyc index 028510c1c..d15c8d955 100644 Binary files a/backend/utils/__pycache__/data_management.cpython-311.pyc and b/backend/utils/__pycache__/data_management.cpython-311.pyc differ diff --git a/backend/utils/__pycache__/drag_drop_system.cpython-311.pyc b/backend/utils/__pycache__/drag_drop_system.cpython-311.pyc index 19eab89d6..397fd6501 100644 Binary files a/backend/utils/__pycache__/drag_drop_system.cpython-311.pyc and b/backend/utils/__pycache__/drag_drop_system.cpython-311.pyc differ diff --git a/backend/utils/__pycache__/hardware_integration.cpython-311.pyc b/backend/utils/__pycache__/hardware_integration.cpython-311.pyc index afb00b853..3ae845705 100644 Binary files a/backend/utils/__pycache__/hardware_integration.cpython-311.pyc and b/backend/utils/__pycache__/hardware_integration.cpython-311.pyc differ diff --git a/backend/utils/__pycache__/hardware_integration.cpython-313.pyc b/backend/utils/__pycache__/hardware_integration.cpython-313.pyc index 9a4fa9489..14043fa6f 100644 Binary files a/backend/utils/__pycache__/hardware_integration.cpython-313.pyc and b/backend/utils/__pycache__/hardware_integration.cpython-313.pyc differ diff --git a/backend/utils/__pycache__/job_scheduler.cpython-311.pyc b/backend/utils/__pycache__/job_scheduler.cpython-311.pyc index bf0599c52..bcd0e35a0 100644 Binary files a/backend/utils/__pycache__/job_scheduler.cpython-311.pyc and b/backend/utils/__pycache__/job_scheduler.cpython-311.pyc differ diff --git a/backend/utils/__pycache__/monitoring_analytics.cpython-311.pyc b/backend/utils/__pycache__/monitoring_analytics.cpython-311.pyc index 729edc384..506124910 100644 Binary files a/backend/utils/__pycache__/monitoring_analytics.cpython-311.pyc and b/backend/utils/__pycache__/monitoring_analytics.cpython-311.pyc differ diff --git a/backend/utils/__pycache__/permissions.cpython-311.pyc b/backend/utils/__pycache__/permissions.cpython-311.pyc index 1f0941e31..c8d17cda8 100644 Binary files a/backend/utils/__pycache__/permissions.cpython-311.pyc and b/backend/utils/__pycache__/permissions.cpython-311.pyc differ diff --git a/backend/utils/__pycache__/security_suite.cpython-311.pyc b/backend/utils/__pycache__/security_suite.cpython-311.pyc index 513b43f1f..423b95cd4 100644 Binary files a/backend/utils/__pycache__/security_suite.cpython-311.pyc and b/backend/utils/__pycache__/security_suite.cpython-311.pyc differ diff --git a/backend/utils/hardware_integration.py b/backend/utils/hardware_integration.py index 8a05631c6..4c3f5fb15 100644 --- a/backend/utils/hardware_integration.py +++ b/backend/utils/hardware_integration.py @@ -13,6 +13,7 @@ Autor: Till Tomczak - Mercedes-Benz TBA Marienfelde Datum: 2025-06-19 (Komplett-Neuschreibung für Backend-Kontrolle) """ +import os import time import socket import threading @@ -30,10 +31,12 @@ except ImportError: PyP110 = None TAPO_AVAILABLE = False +# Entwicklungsumgebung-Erkennung +DEVELOPMENT_MODE = os.getenv('MYP_ENV', 'development') == 'development' or 'WSL' in os.uname().release + # MYP Models & Utils from models import get_db_session, Printer, PlugStatusLog from utils.logging_config import get_logger -import os # Logger hardware_logger = get_logger("hardware_integration") @@ -71,6 +74,9 @@ class DruckerSteuerung: if not TAPO_AVAILABLE: hardware_logger.warning("⚠️ PyP100 nicht verfügbar - Simulation-Modus aktiv") + + if DEVELOPMENT_MODE: + hardware_logger.info("🚧 Entwicklungsumgebung erkannt - Erweiterte Simulation aktiviert") # ===== KERN-STEUERUNGS-FUNKTIONEN ===== @@ -350,9 +356,9 @@ class DruckerSteuerung: def _steckdose_schalten(self, ip: str, einschalten: bool) -> bool: """Schaltet eine Tapo-Steckdose ein oder aus""" - if not TAPO_AVAILABLE: - hardware_logger.warning(f"⚠️ Simulation: Steckdose {ip} würde {'eingeschaltet' if einschalten else 'ausgeschaltet'}") - return True # Simulation immer erfolgreich + if not TAPO_AVAILABLE or DEVELOPMENT_MODE: + hardware_logger.info(f"🔄 {'DEVELOPMENT' if DEVELOPMENT_MODE else 'SIMULATION'}: Steckdose {ip} würde {'eingeschaltet' if einschalten else 'ausgeschaltet'}") + return True # Simulation/Development immer erfolgreich # Zuerst Netzwerk-Erreichbarkeit prüfen if not self._erweiterte_netzwerk_prüfung(ip): @@ -409,6 +415,11 @@ class DruckerSteuerung: if not drucker.plug_ip: return 'unknown' + # Development-Modus: Simuliere wechselnden Status für Demo + if DEVELOPMENT_MODE: + import random + return random.choice(['online', 'offline']) + # Ping-Test zur Steckdose if self._ping_test(drucker.plug_ip): return 'online' @@ -514,9 +525,13 @@ class DruckerSteuerung: """ hardware_logger.debug(f"🔍 Prüfe Steckdosen-Status: {ip}" + (f" (Drucker ID: {printer_id})" if printer_id else "")) - if not TAPO_AVAILABLE: - # Legacy-Format: (reachable, status) - return (True, 'online') + if not TAPO_AVAILABLE or DEVELOPMENT_MODE: + # Development/Simulation: Zufälligen Status für Demo + import random + if DEVELOPMENT_MODE: + return (True, random.choice(['on', 'off'])) + else: + return (True, 'online') # Zuerst Netzwerk-Erreichbarkeit prüfen if not self._erweiterte_netzwerk_prüfung(ip): @@ -720,8 +735,8 @@ class DruckerSteuerung: """ hardware_logger.debug(f"🔴 Schalte Steckdose aus: {ip}" + (f" (Drucker ID: {printer_id})" if printer_id else "")) - if not TAPO_AVAILABLE: - hardware_logger.info(f"🔄 SIMULATION: Steckdose {ip} ausgeschaltet") + if not TAPO_AVAILABLE or DEVELOPMENT_MODE: + hardware_logger.info(f"🔄 {'DEVELOPMENT' if DEVELOPMENT_MODE else 'SIMULATION'}: Steckdose {ip} ausgeschaltet") return True try: @@ -763,8 +778,8 @@ class DruckerSteuerung: """ hardware_logger.debug(f"🟢 Schalte Steckdose ein: {ip}" + (f" (Drucker ID: {printer_id})" if printer_id else "")) - if not TAPO_AVAILABLE: - hardware_logger.info(f"🔄 SIMULATION: Steckdose {ip} eingeschaltet") + if not TAPO_AVAILABLE or DEVELOPMENT_MODE: + hardware_logger.info(f"🔄 {'DEVELOPMENT' if DEVELOPMENT_MODE else 'SIMULATION'}: Steckdose {ip} eingeschaltet") return True try: