"feat: Add new test file for Tapo Sofort integration"
This commit is contained in:
@@ -23,8 +23,24 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # backen
|
|||||||
PROJECT_ROOT = os.path.dirname(BASE_DIR) # backend
|
PROJECT_ROOT = os.path.dirname(BASE_DIR) # backend
|
||||||
DATABASE_PATH = os.path.join(BASE_DIR, "database", "myp.db")
|
DATABASE_PATH = os.path.join(BASE_DIR, "database", "myp.db")
|
||||||
|
|
||||||
|
# ===== SMART PLUG KONFIGURATION =====
|
||||||
|
# TP-Link Tapo P110 Standardkonfiguration
|
||||||
TAPO_USERNAME = "till.tomczak@mercedes-benz.com"
|
TAPO_USERNAME = "till.tomczak@mercedes-benz.com"
|
||||||
TAPO_PASSWORD = "744563017196A"
|
TAPO_PASSWORD = "744563017196"
|
||||||
|
|
||||||
|
# Standard-Steckdosen-IPs (diese können später in der Datenbank überschrieben werden)
|
||||||
|
DEFAULT_TAPO_IPS = [
|
||||||
|
"192.168.1.100",
|
||||||
|
"192.168.1.101",
|
||||||
|
"192.168.1.102",
|
||||||
|
"192.168.1.103",
|
||||||
|
"192.168.1.104",
|
||||||
|
"192.168.1.105"
|
||||||
|
]
|
||||||
|
|
||||||
|
# Timeout-Konfiguration für Tapo-Verbindungen
|
||||||
|
TAPO_TIMEOUT = 10 # Sekunden
|
||||||
|
TAPO_RETRY_COUNT = 3 # Anzahl Wiederholungsversuche
|
||||||
|
|
||||||
# Drucker-Konfiguration
|
# Drucker-Konfiguration
|
||||||
PRINTERS = {
|
PRINTERS = {
|
||||||
@@ -45,7 +61,7 @@ LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
|
|||||||
|
|
||||||
# Flask-Konfiguration
|
# Flask-Konfiguration
|
||||||
FLASK_HOST = "0.0.0.0"
|
FLASK_HOST = "0.0.0.0"
|
||||||
FLASK_PORT = 8443 # Geändert von 443 auf 8443 (nicht-privilegierter Port)
|
FLASK_PORT = 443 # Geändert von 443 auf 8443 (nicht-privilegierter Port)
|
||||||
FLASK_FALLBACK_PORT = 8080 # Geändert von 80 auf 8080 (nicht-privilegierter Port)
|
FLASK_FALLBACK_PORT = 8080 # Geändert von 80 auf 8080 (nicht-privilegierter Port)
|
||||||
FLASK_DEBUG = True
|
FLASK_DEBUG = True
|
||||||
SESSION_LIFETIME = timedelta(days=7)
|
SESSION_LIFETIME = timedelta(days=7)
|
||||||
|
1
backend/app/test_tapo_sofort.py
Normal file
1
backend/app/test_tapo_sofort.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
Reference in New Issue
Block a user