Add auxiliary monitor configuration and enhance trigger logic for KVM switching

This commit is contained in:
Lago
2026-03-27 15:36:37 +01:00
parent 208ad243a7
commit c8ab5ad9bc
7 changed files with 310 additions and 43 deletions
+2
View File
@@ -19,6 +19,7 @@ INDEX_PATH = STATIC_DIR / "index.html"
class SettingsPayload(BaseModel):
device_port: str
auxiliary_monitor_id: str | None = None
def create_app(
@@ -59,6 +60,7 @@ def create_app(
try:
return active_service.save_settings(
device_port=payload.device_port,
auxiliary_monitor_id=payload.auxiliary_monitor_id,
)
except ValueError as exc:
raise HTTPException(status_code=400, detail=str(exc)) from exc