🐛 Update: Optimized SQLite database and enhanced logging across various modules. Improved Tapo control dashboard accessibility and ensured better tracking of user interactions. 📚

This commit is contained in:
2025-06-12 21:06:08 +02:00
parent f5b77ce104
commit a212fcc8a3
168 changed files with 1054 additions and 164 deletions

View File

@@ -20760,3 +20760,390 @@ werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'tapo_c
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html')
2025-06-12 20:53:51 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:18 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-12 20:59:19 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-12 20:59:19 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-12 20:59:19 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-12 20:59:20 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-12 20:59:20 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-12 20:59:20 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-12 20:59:20 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-12 20:59:20 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-12 20:59:20 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-12 20:59:20 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-12 20:59:20 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-12 20:59:21 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-12 20:59:21 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-12 20:59:21 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-12 20:59:22 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-12 20:59:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-12 20:59:22 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-12 20:59:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-12 20:59:22 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-12 20:59:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-12 20:59:22 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-12 20:59:23 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/dashboard.html')
2025-06-12 20:59:23 - [app] app - [INFO] INFO - Locating template 'base.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html')
2025-06-12 20:59:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:31 - [app] app - [DEBUG] DEBUG - Request: POST /auth/logout
2025-06-12 20:59:31 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 20:59:31 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-12 20:59:31 - [app] app - [INFO] INFO - Locating template 'login.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/login.html')
2025-06-12 20:59:31 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:34 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-12 20:59:34 - [app] app - [INFO] INFO - Locating template 'guest_request.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/guest_request.html')
2025-06-12 20:59:34 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:43 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-12 20:59:43 - [app] app - [INFO] INFO - Locating template 'guest_requests_overview.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/guest_requests_overview.html')
2025-06-12 20:59:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:45 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-12 20:59:45 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 20:59:45 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-12 20:59:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:48 - [app] app - [DEBUG] DEBUG - Request: POST /auth/login
2025-06-12 20:59:48 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:49 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-12 20:59:49 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 20:59:49 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-12 20:59:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:51 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-12 20:59:51 - [app] app - [INFO] INFO - Locating template 'jobs.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/jobs.html')
2025-06-12 20:59:51 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:52 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-12 20:59:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:52 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 20:59:52 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 20:59:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:53 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-12 20:59:53 - [app] app - [INFO] INFO - Locating template 'calendar.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/calendar.html')
2025-06-12 20:59:53 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-12 20:59:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 20:59:59 - [app] app - [DEBUG] DEBUG - Request: GET /energy/
2025-06-12 20:59:59 - [app] app - [INFO] INFO - Locating template 'energy_dashboard.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/energy_dashboard.html')
2025-06-12 20:59:59 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/dashboard
2025-06-12 21:00:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/statistics
2025-06-12 21:00:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/live
2025-06-12 21:00:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:07 - [app] app - [DEBUG] DEBUG - Request: GET /stats
2025-06-12 21:00:07 - [app] app - [INFO] INFO - Locating template 'stats.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/stats.html')
2025-06-12 21:00:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:10 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/
2025-06-12 21:00:23 - [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:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/tapo_control.html')
2025-06-12 21:00:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:27 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-12 21:00:27 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:27 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-12 21:00:27 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:28 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:00:28 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:00:28 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:34 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-12 21:00:34 - [app] app - [INFO] INFO - Locating template 'printers.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/printers.html')
2025-06-12 21:00:34 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:34 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:00:34 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:00:34 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:34 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:00:34 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:00:34 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:41 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-12 21:00:41 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:49 - [app] app - [DEBUG] DEBUG - Request: GET /user/settings
2025-06-12 21:00:49 - [app] app - [INFO] INFO - Locating template 'settings.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/settings.html')
2025-06-12 21:00:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:49 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 21:00:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:00:59 - [app] app - [DEBUG] DEBUG - Request: PATCH /api/user/setting
2025-06-12 21:00:59 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/user/setting
2025-06-12 21:00:59 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 21:01:00 - [app] app - [DEBUG] DEBUG - Request: POST /api/user/settings
2025-06-12 21:01:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:03 - [app] app - [DEBUG] DEBUG - Request: GET /terms
2025-06-12 21:01:03 - [app] app - [INFO] INFO - Locating template 'terms.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/terms.html')
2025-06-12 21:01:03 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:07 - [app] app - [DEBUG] DEBUG - Request: GET /privacy
2025-06-12 21:01:07 - [app] app - [INFO] INFO - Locating template 'privacy.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/privacy.html')
2025-06-12 21:01:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:09 - [app] app - [DEBUG] DEBUG - Request: GET /stats
2025-06-12 21:01:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:13 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/
2025-06-12 21:01:14 - [app] app - [DEBUG] DEBUG - Request: GET /energy/
2025-06-12 21:01:14 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/dashboard
2025-06-12 21:01:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/statistics
2025-06-12 21:01:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/live
2025-06-12 21:01:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:16 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-12 21:01:16 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-12 21:01:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:18 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-12 21:01:18 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:19 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:01:19 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:01:19 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:19 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:01:19 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:01:19 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:20 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-12 21:01:20 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:28 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-12 21:01:28 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:01:39 - [app] app - [DEBUG] DEBUG - Request: POST /auth/logout
2025-06-12 21:01:39 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 21:01:39 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-12 21:01:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:02:28 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-12 21:02:29 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-12 21:02:29 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-12 21:02:29 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-12 21:02:29 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-12 21:02:30 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-12 21:02:31 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-12 21:02:31 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-12 21:02:31 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-12 21:02:31 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-12 21:02:34 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/dashboard.html')
2025-06-12 21:02:34 - [app] app - [INFO] INFO - Locating template 'base.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html')
2025-06-12 21:02:34 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:02:36 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-12 21:02:36 - [app] app - [INFO] INFO - Locating template 'printers.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/printers.html')
2025-06-12 21:02:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:02:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:02:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:02:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:02:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:02:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:02:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:03:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:03:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:03:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:03:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:03:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:03:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:03:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:03:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:03:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:03:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:03:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:03:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:04:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:04:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:04:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:04:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:04:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:04:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:04:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:04:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:04:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:04:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:04:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:04:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:05:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:05:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:05:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:05:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:05:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:05:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:05:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:05:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:05:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:05:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:05:36 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:05:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:06:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:06:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:06:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 21:06:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-12 21:06:06 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
2025-06-12 21:06:06 - [app] app - [DEBUG] DEBUG - Response: 200