From a576b4ec51a291524b25b7a4c7b2187f634261c2 Mon Sep 17 00:00:00 2001 From: gx Date: Wed, 20 May 2026 20:54:09 +0100 Subject: [PATCH] =?UTF-8?q?controller:=20border=20defaults=20=E2=86=92=201?= =?UTF-8?q?px=20(idle=20=D0=B8=20motion)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User feedback: 4px motion border слишком жирная, к тому же много false motion от Frigate (зоны/чувствительность будут tune'иться позже). Уменьшаем default до 1px чтобы borders не мешали visually. Width конфигурируется (1..16). Co-Authored-By: Claude Opus 4.7 --- controller/cuda_grid_controller/frigate_bridge.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/cuda_grid_controller/frigate_bridge.py b/controller/cuda_grid_controller/frigate_bridge.py index 451a5db..679e774 100644 --- a/controller/cuda_grid_controller/frigate_bridge.py +++ b/controller/cuda_grid_controller/frigate_bridge.py @@ -43,14 +43,14 @@ class FrigateCameraMapping(BaseModel): class BorderTheme(BaseModel): - """Стиль cell border в трёх состояниях. Color = HEX RGB.""" + """Стиль cell border в двух состояниях. Color = HEX RGB.""" idle_color: str = Field(default="#808080", description="Нейтральная разделительная рамка") - idle_width: int = Field(default=2, ge=1, le=8) + idle_width: int = Field(default=1, ge=1, le=16) idle_opacity: float = Field(default=0.4, ge=0.0, le=1.0) motion_color: str = Field(default="#FF0000", description="Цвет при frigate motion ON") - motion_width: int = Field(default=4, ge=1, le=16) + motion_width: int = Field(default=1, ge=1, le=16) motion_opacity: float = Field(default=1.0, ge=0.0, le=1.0)