🎉 Refactor Backend Database Files & Add Session Logs 📚💄
This commit is contained in:
Binary file not shown.
@ -1425,6 +1425,15 @@ def main():
|
||||
create_initial_admin()
|
||||
app_logger.info("[STARTUP] ✅ Admin-Benutzer geprüft")
|
||||
|
||||
# Statische Drucker für TBA Marienfelde erstellen/aktualisieren
|
||||
app_logger.info("[STARTUP] Initialisiere statische Drucker...")
|
||||
from models import create_initial_printers
|
||||
success = create_initial_printers()
|
||||
if success:
|
||||
app_logger.info("[STARTUP] ✅ Statische Drucker konfiguriert")
|
||||
else:
|
||||
app_logger.warning("[STARTUP] ⚠️ Fehler bei Drucker-Initialisierung")
|
||||
|
||||
# Queue Manager starten
|
||||
app_logger.info("[STARTUP] Starte Queue Manager...")
|
||||
start_queue_manager()
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -22329,3 +22329,147 @@ jinja2.exceptions.UndefinedError: 'stats' is undefined
|
||||
2025-06-13 07:18:48 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:19:18 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
|
||||
2025-06-13 07:19:18 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:24:27 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
|
||||
2025-06-13 12:24:37 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
|
||||
2025-06-13 12:24:38 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
|
||||
2025-06-13 12:24:38 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
|
||||
2025-06-13 12:24:38 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
|
||||
2025-06-13 12:24:38 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
|
||||
2025-06-13 12:24:38 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
|
||||
2025-06-13 12:24:38 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
|
||||
2025-06-13 12:24:38 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
|
||||
2025-06-13 12:24:40 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
|
||||
2025-06-13 12:24:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
|
||||
2025-06-13 12:24:44 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
|
||||
2025-06-13 12:24:56 - [app] app - [INFO] INFO - Locating template 'login.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\login.html')
|
||||
2025-06-13 12:24:57 - [app] app - [INFO] INFO - Locating template 'base.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\base.html')
|
||||
2025-06-13 12:24:57 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:01 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
|
||||
2025-06-13 12:25:01 - [app] app - [DEBUG] DEBUG - Response: 302
|
||||
2025-06-13 12:25:01 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
|
||||
2025-06-13 12:25:01 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:14 - [app] app - [DEBUG] DEBUG - Request: POST /auth/login
|
||||
2025-06-13 12:25:15 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:16 - [app] app - [DEBUG] DEBUG - Request: GET /
|
||||
2025-06-13 12:25:16 - [app] app - [DEBUG] DEBUG - Response: 302
|
||||
2025-06-13 12:25:16 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
|
||||
2025-06-13 12:25:16 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\dashboard.html')
|
||||
2025-06-13 12:25:16 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:19 - [app] app - [DEBUG] DEBUG - Request: GET /printers
|
||||
2025-06-13 12:25:19 - [app] app - [INFO] INFO - Locating template 'printers.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\printers.html')
|
||||
2025-06-13 12:25:19 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:19 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
|
||||
2025-06-13 12:25:19 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=True)
|
||||
2025-06-13 12:25:19 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:20 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
|
||||
2025-06-13 12:25:20 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=True)
|
||||
2025-06-13 12:25:20 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
|
||||
2025-06-13 12:25:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=True)
|
||||
2025-06-13 12:25:22 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:25:26 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/
|
||||
2025-06-13 12:25:40 - [app] app - [INFO] INFO - Locating template 'tapo_control.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\tapo_control.html')
|
||||
2025-06-13 12:25:40 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 1 (192.168.0.100)
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 2 (192.168.0.101)
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 3 (192.168.0.102)
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 4 (192.168.0.103)
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 5 (192.168.0.104)
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 6 (192.168.0.106)
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 6 erstellt, 0 aktualisiert
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
|
||||
2025-06-13 12:30:45 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
|
||||
2025-06-13 12:31:24 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 12:31:24 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 12:32:13 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 12:32:13 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) wurde angelegt.
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 1 (192.168.0.100)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 2 (192.168.0.101)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 3 (192.168.0.102)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 4 (192.168.0.103)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 5 (192.168.0.104)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - Drucker erstellt: Drucker 6 (192.168.0.106)
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 6 erstellt, 0 aktualisiert
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
|
||||
2025-06-13 12:32:52 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
|
||||
|
@ -54,3 +54,5 @@ WHERE users.username = ? OR users.email = ?
|
||||
2025-06-12 21:13:48 - [auth] auth - [INFO] INFO - Benutzer admin@mercedes-benz.com hat sich abgemeldet
|
||||
2025-06-13 06:49:48 - [auth] auth - [WARNING] WARNING - JSON-Parsing fehlgeschlagen: 400 Bad Request: Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)
|
||||
2025-06-13 06:49:48 - [auth] auth - [INFO] INFO - Benutzer admin@mercedes-benz.com hat sich erfolgreich angemeldet
|
||||
2025-06-13 12:25:14 - [auth] auth - [WARNING] WARNING - JSON-Parsing fehlgeschlagen: 400 Bad Request: Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)
|
||||
2025-06-13 12:25:15 - [auth] auth - [INFO] INFO - Benutzer admin@mercedes-benz.com hat sich erfolgreich angemeldet
|
||||
|
@ -180,3 +180,7 @@
|
||||
2025-06-13 07:16:50 - [core_system] core_system - [INFO] INFO - 📊 Massive Konsolidierung: 6 Dateien → 1 Datei (88% Reduktion)
|
||||
2025-06-13 07:18:17 - [core_system] core_system - [INFO] INFO - ✅ Core System Management Module erfolgreich initialisiert
|
||||
2025-06-13 07:18:17 - [core_system] core_system - [INFO] INFO - 📊 Massive Konsolidierung: 6 Dateien → 1 Datei (88% Reduktion)
|
||||
2025-06-13 12:24:27 - [core_system] core_system - [INFO] INFO - ✅ Core System Management Module erfolgreich initialisiert
|
||||
2025-06-13 12:24:27 - [core_system] core_system - [INFO] INFO - 📊 Massive Konsolidierung: 6 Dateien → 1 Datei (88% Reduktion)
|
||||
2025-06-13 12:24:40 - [core_system] core_system - [INFO] INFO - ✅ Core System Management Module erfolgreich initialisiert
|
||||
2025-06-13 12:24:40 - [core_system] core_system - [INFO] INFO - 📊 Massive Konsolidierung: 6 Dateien → 1 Datei (88% Reduktion)
|
||||
|
@ -204,3 +204,7 @@
|
||||
2025-06-13 07:16:51 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 07:18:17 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert
|
||||
2025-06-13 07:18:17 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 12:24:28 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert
|
||||
2025-06-13 12:24:28 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 12:24:40 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert
|
||||
2025-06-13 12:24:40 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
|
@ -43,3 +43,5 @@
|
||||
2025-06-13 07:16:49 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
|
||||
2025-06-13 07:16:52 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
|
||||
2025-06-13 07:18:18 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
|
||||
2025-06-13 12:24:37 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
|
||||
2025-06-13 12:24:43 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
|
||||
|
@ -526,3 +526,11 @@
|
||||
2025-06-13 07:18:17 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Printer Monitor initialisiert
|
||||
2025-06-13 07:18:17 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Hardware Integration Module initialisiert
|
||||
2025-06-13 07:18:17 - [hardware_integration] hardware_integration - [INFO] INFO - 📊 Massive Konsolidierung: 2 Dateien → 1 Datei (50% Reduktion)
|
||||
2025-06-13 12:24:28 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ PyP100 (TP-Link Tapo) verfügbar
|
||||
2025-06-13 12:24:28 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Printer Monitor initialisiert
|
||||
2025-06-13 12:24:28 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Hardware Integration Module initialisiert
|
||||
2025-06-13 12:24:28 - [hardware_integration] hardware_integration - [INFO] INFO - 📊 Massive Konsolidierung: 2 Dateien → 1 Datei (50% Reduktion)
|
||||
2025-06-13 12:24:40 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ PyP100 (TP-Link Tapo) verfügbar
|
||||
2025-06-13 12:24:40 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Printer Monitor initialisiert
|
||||
2025-06-13 12:24:40 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Hardware Integration Module initialisiert
|
||||
2025-06-13 12:24:40 - [hardware_integration] hardware_integration - [INFO] INFO - 📊 Massive Konsolidierung: 2 Dateien → 1 Datei (50% Reduktion)
|
||||
|
@ -390,3 +390,11 @@
|
||||
2025-06-13 07:18:18 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität)
|
||||
2025-06-13 07:19:47 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität)
|
||||
2025-06-13 07:19:47 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität)
|
||||
2025-06-13 12:24:28 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert
|
||||
2025-06-13 12:24:28 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion)
|
||||
2025-06-13 12:24:38 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität)
|
||||
2025-06-13 12:24:40 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert
|
||||
2025-06-13 12:24:40 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion)
|
||||
2025-06-13 12:24:44 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität)
|
||||
2025-06-13 12:26:11 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität)
|
||||
2025-06-13 12:26:12 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität)
|
||||
|
@ -204,3 +204,7 @@
|
||||
2025-06-13 07:16:52 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 07:18:18 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert
|
||||
2025-06-13 07:18:18 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 12:24:37 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert
|
||||
2025-06-13 12:24:37 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 12:24:43 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert
|
||||
2025-06-13 12:24:43 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
|
@ -8,3 +8,5 @@
|
||||
2025-06-13 07:17:33 - [permissions] permissions - [INFO] INFO - UserPermission für Admin-Benutzer 1 aktualisiert
|
||||
2025-06-13 07:17:54 - [permissions] permissions - [INFO] INFO - UserPermission für Admin-Benutzer 1 aktualisiert
|
||||
2025-06-13 07:18:18 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert
|
||||
2025-06-13 12:24:37 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert
|
||||
2025-06-13 12:24:44 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert
|
||||
|
@ -287,3 +287,22 @@
|
||||
2025-06-13 07:18:17 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True
|
||||
2025-06-13 07:18:18 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet
|
||||
2025-06-13 07:18:18 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet
|
||||
2025-06-13 12:24:28 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True
|
||||
2025-06-13 12:24:38 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet
|
||||
2025-06-13 12:24:38 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet
|
||||
2025-06-13 12:24:38 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: Till Tomczaktet
|
||||
2025-06-13 12:24:40 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True
|
||||
2025-06-13 12:24:44 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet
|
||||
2025-06-13 12:24:44 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet
|
||||
2025-06-13 12:24:44 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: Till Tomczaktet
|
||||
2025-06-13 12:24:46 - [scheduler] scheduler - [ERROR] ERROR - ❌ Konnte Steckdose für Job 1 nicht einschalten
|
||||
2025-06-13 12:24:53 - [scheduler] scheduler - [ERROR] ERROR - ❌ Konnte Steckdose für Job 1 nicht einschalten
|
||||
2025-06-13 12:25:08 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: Till Tomczaktet
|
||||
2025-06-13 12:25:15 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: Till Tomczaktet
|
||||
2025-06-13 12:25:17 - [scheduler] scheduler - [ERROR] ERROR - ❌ Konnte Steckdose für Job 1 nicht einschalten
|
||||
2025-06-13 12:25:26 - [scheduler] scheduler - [ERROR] ERROR - ❌ Konnte Steckdose für Job 1 nicht einschalten
|
||||
2025-06-13 12:25:38 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: Till Tomczaktet
|
||||
2025-06-13 12:25:46 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: Till Tomczaktet
|
||||
2025-06-13 12:25:47 - [scheduler] scheduler - [ERROR] ERROR - ❌ Konnte Steckdose für Job 1 nicht einschalten
|
||||
2025-06-13 12:25:55 - [scheduler] scheduler - [ERROR] ERROR - ❌ Konnte Steckdose für Job 1 nicht einschalten
|
||||
2025-06-13 12:26:09 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: Till Tomczaktet
|
||||
|
@ -308,3 +308,9 @@
|
||||
2025-06-13 07:18:17 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert
|
||||
2025-06-13 07:18:17 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 07:18:18 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert
|
||||
2025-06-13 12:24:28 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert
|
||||
2025-06-13 12:24:28 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 12:24:37 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert
|
||||
2025-06-13 12:24:40 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert
|
||||
2025-06-13 12:24:40 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
|
||||
2025-06-13 12:24:43 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert
|
||||
|
@ -901,3 +901,21 @@
|
||||
2025-06-13 07:18:18 - [startup] startup - [INFO] INFO - 🪟 Windows-Modus: Aktiviert
|
||||
2025-06-13 07:18:18 - [startup] startup - [INFO] INFO - 🔒 Windows-sichere Log-Rotation: Aktiviert
|
||||
2025-06-13 07:18:18 - [startup] startup - [INFO] INFO - ==================================================
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - ==================================================
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet...
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.13.3 (tags/v3.13.3:6280bb5, Apr 8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)]
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: nt (win32)
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-13T12:24:37.133305
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - 🪟 Windows-Modus: Aktiviert
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - 🔒 Windows-sichere Log-Rotation: Aktiviert
|
||||
2025-06-13 12:24:37 - [startup] startup - [INFO] INFO - ==================================================
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - ==================================================
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet...
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.13.3 (tags/v3.13.3:6280bb5, Apr 8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)]
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: nt (win32)
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-13T12:24:43.757529
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - 🪟 Windows-Modus: Aktiviert
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - 🔒 Windows-sichere Log-Rotation: Aktiviert
|
||||
2025-06-13 12:24:43 - [startup] startup - [INFO] INFO - ==================================================
|
||||
|
@ -77,3 +77,11 @@
|
||||
2025-06-13 07:13:31 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 5 (192.168.1.205) nicht erreichbar
|
||||
2025-06-13 07:13:33 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 6 (192.168.1.206) nicht erreichbar
|
||||
2025-06-13 07:13:33 - [tapo_control] tapo_control - [INFO] INFO - Dashboard geladen: 6 Steckdosen konfiguriert, 0 online
|
||||
2025-06-13 12:25:26 - [tapo_control] tapo_control - [INFO] INFO - Tapo Dashboard aufgerufen von Benutzer: Administrator
|
||||
2025-06-13 12:25:28 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 1 (192.168.1.201) nicht erreichbar
|
||||
2025-06-13 12:25:30 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 2 (192.168.1.202) nicht erreichbar
|
||||
2025-06-13 12:25:33 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 3 (192.168.1.203) nicht erreichbar
|
||||
2025-06-13 12:25:35 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 4 (192.168.1.204) nicht erreichbar
|
||||
2025-06-13 12:25:37 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 5 (192.168.1.205) nicht erreichbar
|
||||
2025-06-13 12:25:40 - [tapo_control] tapo_control - [WARNING] WARNING - ⚠️ Steckdose 6 (192.168.1.206) nicht erreichbar
|
||||
2025-06-13 12:25:40 - [tapo_control] tapo_control - [INFO] INFO - Dashboard geladen: 6 Steckdosen konfiguriert, 0 online
|
||||
|
@ -103,3 +103,29 @@
|
||||
2025-06-13 07:16:48 - [tapo_controller] tapo_controller - [INFO] INFO - ✅ tapo controller initialisiert
|
||||
2025-06-13 07:16:51 - [tapo_controller] tapo_controller - [INFO] INFO - ✅ tapo controller initialisiert
|
||||
2025-06-13 07:18:17 - [tapo_controller] tapo_controller - [INFO] INFO - ✅ tapo controller initialisiert
|
||||
2025-06-13 12:24:28 - [tapo_controller] tapo_controller - [INFO] INFO - ✅ tapo controller initialisiert
|
||||
2025-06-13 12:24:40 - [tapo_controller] tapo_controller - [INFO] INFO - ✅ tapo controller initialisiert
|
||||
2025-06-13 12:24:41 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 1/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0F9400>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:24:42 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 2/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000020A7F0E6210>: Failed to establish a new connection: [WinError 10053] Eine bestehende Verbindung wurde softwaregesteuert\r\ndurch den Hostcomputer abgebrochen'))
|
||||
2025-06-13 12:24:46 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 3/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0E6D50>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:24:46 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ fehler beim einschalten der tapo-steckdose 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0E6D50>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:24:46 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 1/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9DCD70>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:24:49 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 2/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9E16D0>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:24:53 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 3/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9E0A50>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:24:53 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ fehler beim einschalten der tapo-steckdose 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9E0A50>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:10 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 1/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F108E90>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:14 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 2/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F108510>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:17 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 3/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0E20F0>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:17 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ fehler beim einschalten der tapo-steckdose 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0E20F0>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:19 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 1/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9F6D70>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:23 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 2/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9F5940>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:26 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 3/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9C7410>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:26 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ fehler beim einschalten der tapo-steckdose 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9C7410>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:40 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 1/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0F1590>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:44 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 2/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0F1F20>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:47 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 3/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0F2250>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:47 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ fehler beim einschalten der tapo-steckdose 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000020A7F0F2250>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:48 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 1/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9C18C0>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:51 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 2/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9C0F30>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:55 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ versuch 3/3 fehlgeschlagen beim einschalten von 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9C08D0>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
2025-06-13 12:25:55 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ fehler beim einschalten der tapo-steckdose 192.168.1.201: HTTPConnectionPool(host='192.168.1.201', port=80): Max retries exceeded with url: /app (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B6CD9C08D0>, 'Connection to 192.168.1.201 timed out. (connect timeout=2)'))
|
||||
|
@ -60,3 +60,5 @@
|
||||
2025-06-13 07:16:48 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager initialisiert
|
||||
2025-06-13 07:16:51 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager initialisiert
|
||||
2025-06-13 07:18:17 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager initialisiert
|
||||
2025-06-13 12:24:28 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager initialisiert
|
||||
2025-06-13 12:24:40 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager initialisiert
|
||||
|
@ -214,3 +214,15 @@
|
||||
2025-06-13 07:16:50 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
2025-06-13 07:18:17 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
|
||||
2025-06-13 07:18:17 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
2025-06-13 12:24:27 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
|
||||
2025-06-13 12:24:27 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
2025-06-13 12:24:40 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
|
||||
2025-06-13 12:24:40 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
2025-06-13 12:30:45 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
|
||||
2025-06-13 12:30:45 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
2025-06-13 12:31:24 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
|
||||
2025-06-13 12:31:24 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
2025-06-13 12:32:13 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
|
||||
2025-06-13 12:32:13 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
2025-06-13 12:32:51 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
|
||||
2025-06-13 12:32:51 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
|
||||
|
@ -183,3 +183,7 @@
|
||||
2025-06-13 07:16:50 - [windows_fixes] windows_fixes - [INFO] INFO - ✅ Alle Windows-Fixes erfolgreich angewendet
|
||||
2025-06-13 07:18:17 - [windows_fixes] windows_fixes - [INFO] INFO - 🔧 Wende Windows-spezifische Fixes an...
|
||||
2025-06-13 07:18:17 - [windows_fixes] windows_fixes - [INFO] INFO - ✅ Alle Windows-Fixes erfolgreich angewendet
|
||||
2025-06-13 12:24:27 - [windows_fixes] windows_fixes - [INFO] INFO - 🔧 Wende Windows-spezifische Fixes an...
|
||||
2025-06-13 12:24:27 - [windows_fixes] windows_fixes - [INFO] INFO - ✅ Alle Windows-Fixes erfolgreich angewendet
|
||||
2025-06-13 12:24:40 - [windows_fixes] windows_fixes - [INFO] INFO - 🔧 Wende Windows-spezifische Fixes an...
|
||||
2025-06-13 12:24:40 - [windows_fixes] windows_fixes - [INFO] INFO - ✅ Alle Windows-Fixes erfolgreich angewendet
|
||||
|
@ -43,7 +43,7 @@ _cache_lock = threading.Lock()
|
||||
_cache_ttl = {} # Time-to-live für Cache-Einträge
|
||||
|
||||
# Alle exportierten Modelle
|
||||
__all__ = ['User', 'Printer', 'Job', 'Stats', 'SystemLog', 'Base', 'GuestRequest', 'UserPermission', 'Notification', 'JobOrder', 'SystemTimer', 'PlugStatusLog', 'init_db', 'init_database', 'create_initial_admin', 'get_db_session', 'get_cached_session', 'clear_cache', 'engine']
|
||||
__all__ = ['User', 'Printer', 'Job', 'Stats', 'SystemLog', 'Base', 'GuestRequest', 'UserPermission', 'Notification', 'JobOrder', 'SystemTimer', 'PlugStatusLog', 'init_db', 'init_database', 'create_initial_admin', 'create_initial_printers', 'get_db_session', 'get_cached_session', 'clear_cache', 'engine']
|
||||
|
||||
# ===== DATENBANK-KONFIGURATION MIT WAL UND OPTIMIERUNGEN =====
|
||||
|
||||
@ -2121,6 +2121,124 @@ def create_initial_admin(email: str = "admin@mercedes-benz.com", password: str =
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Fehler beim Erstellen des Admin-Benutzers: {str(e)}")
|
||||
return False
|
||||
|
||||
|
||||
def create_initial_printers() -> bool:
|
||||
"""
|
||||
Erstellt die statischen Drucker für Mercedes-Benz TBA Marienfelde.
|
||||
|
||||
Diese Funktion erstellt automatisch die konfigurierten Drucker mit festen IP-Adressen
|
||||
und Standorten für die Production-Umgebung.
|
||||
|
||||
Returns:
|
||||
bool: True, wenn die Drucker erfolgreich erstellt/aktualisiert wurden, False sonst
|
||||
"""
|
||||
# Statische Drucker-Konfiguration für TBA Marienfelde
|
||||
STATIC_PRINTERS = [
|
||||
{
|
||||
"name": "Drucker 1",
|
||||
"ip_address": "192.168.0.100",
|
||||
"location": "TBA Marienfelde",
|
||||
"model": "Mercedes 3D Printer",
|
||||
"plug_ip": "192.168.0.100", # Smart Plug hat gleiche IP
|
||||
"status": "offline"
|
||||
},
|
||||
{
|
||||
"name": "Drucker 2",
|
||||
"ip_address": "192.168.0.101",
|
||||
"location": "TBA Marienfelde",
|
||||
"model": "Mercedes 3D Printer",
|
||||
"plug_ip": "192.168.0.101",
|
||||
"status": "offline"
|
||||
},
|
||||
{
|
||||
"name": "Drucker 3",
|
||||
"ip_address": "192.168.0.102",
|
||||
"location": "TBA Marienfelde",
|
||||
"model": "Mercedes 3D Printer",
|
||||
"plug_ip": "192.168.0.102",
|
||||
"status": "offline"
|
||||
},
|
||||
{
|
||||
"name": "Drucker 4",
|
||||
"ip_address": "192.168.0.103",
|
||||
"location": "TBA Marienfelde",
|
||||
"model": "Mercedes 3D Printer",
|
||||
"plug_ip": "192.168.0.103",
|
||||
"status": "offline"
|
||||
},
|
||||
{
|
||||
"name": "Drucker 5",
|
||||
"ip_address": "192.168.0.104",
|
||||
"location": "TBA Marienfelde",
|
||||
"model": "Mercedes 3D Printer",
|
||||
"plug_ip": "192.168.0.104",
|
||||
"status": "offline"
|
||||
},
|
||||
{
|
||||
"name": "Drucker 6",
|
||||
"ip_address": "192.168.0.106",
|
||||
"location": "TBA Marienfelde",
|
||||
"model": "Mercedes 3D Printer",
|
||||
"plug_ip": "192.168.0.106",
|
||||
"status": "offline"
|
||||
}
|
||||
]
|
||||
|
||||
try:
|
||||
with get_cached_session() as session:
|
||||
created_count = 0
|
||||
updated_count = 0
|
||||
|
||||
for printer_config in STATIC_PRINTERS:
|
||||
# Prüfen ob Drucker bereits existiert (nach IP-Adresse)
|
||||
existing_printer = session.query(Printer).filter(
|
||||
Printer.ip_address == printer_config["ip_address"]
|
||||
).first()
|
||||
|
||||
if existing_printer:
|
||||
# Bestehenden Drucker aktualisieren
|
||||
existing_printer.name = printer_config["name"]
|
||||
existing_printer.location = printer_config["location"]
|
||||
existing_printer.model = printer_config["model"]
|
||||
existing_printer.plug_ip = printer_config["plug_ip"]
|
||||
existing_printer.status = printer_config["status"]
|
||||
existing_printer.active = True
|
||||
existing_printer.updated_at = datetime.now()
|
||||
updated_count += 1
|
||||
logger.info(f"Drucker aktualisiert: {printer_config['name']} ({printer_config['ip_address']})")
|
||||
else:
|
||||
# Neuen Drucker erstellen
|
||||
new_printer = Printer(
|
||||
name=printer_config["name"],
|
||||
ip_address=printer_config["ip_address"],
|
||||
location=printer_config["location"],
|
||||
model=printer_config["model"],
|
||||
plug_ip=printer_config["plug_ip"],
|
||||
status=printer_config["status"],
|
||||
active=True,
|
||||
created_at=datetime.now(),
|
||||
updated_at=datetime.now()
|
||||
)
|
||||
session.add(new_printer)
|
||||
created_count += 1
|
||||
logger.info(f"Drucker erstellt: {printer_config['name']} ({printer_config['ip_address']})")
|
||||
|
||||
session.commit()
|
||||
|
||||
# Cache für Drucker invalidieren
|
||||
invalidate_model_cache("Printer")
|
||||
|
||||
total_operations = created_count + updated_count
|
||||
logger.info(f"✅ Statische Drucker-Initialisierung abgeschlossen: {created_count} erstellt, {updated_count} aktualisiert")
|
||||
logger.info(f"📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert")
|
||||
logger.info(f"🌐 IP-Bereich: 192.168.0.100-106 (außer .105)")
|
||||
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"❌ Fehler beim Erstellen/Aktualisieren der statischen Drucker: {str(e)}")
|
||||
return False
|
||||
|
||||
# Engine für Export verfügbar machen
|
||||
|
Reference in New Issue
Block a user