From e52d8e910371f1cb33b2ff1b3f6f6678bb3edfa8 Mon Sep 17 00:00:00 2001 From: ericwyuan Date: Sat, 22 Aug 2026 10:58:56 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20MotionNotifier=20?= =?UTF-8?q?=E8=A1=A5=E5=9B=9E=20camera=5Fids=20=E5=B1=9E=E6=80=A7=20-=20?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=87=8D=E6=96=B0=E5=BC=80=E5=90=AF=E8=BD=AE?= =?UTF-8?q?=E8=AF=A2=E6=97=B6=20=5Ffetch=5Fevents=20=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E5=B1=9E=E6=80=A7=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fam-core/src/fam_core/motion_notifier/motion_notifier.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fam-core/src/fam_core/motion_notifier/motion_notifier.py b/fam-core/src/fam_core/motion_notifier/motion_notifier.py index 41770a4..137502d 100644 --- a/fam-core/src/fam_core/motion_notifier/motion_notifier.py +++ b/fam-core/src/fam_core/motion_notifier/motion_notifier.py @@ -61,6 +61,8 @@ class MotionNotifier: self.timeout = int(cfg.get('timeout_sec', 10)) # 是否启用轮询:用户要求不轮询,改由 SS Webhook 推送(默认关闭) self.poll_enabled = bool(cfg.get('poll_enabled', False)) + # 轮询路径(poll_enabled=true 时)关注的摄像头;Webhook 路径用摄像头名映射 + self.camera_ids = cfg.get('camera_ids', [2]) # 摄像头名 -> camera_id 静态映射(优先),启动时再从 SS 拉一份补全 self.camera_name_to_id = { str(k): int(v) for k, v in (cfg.get('camera_name_to_id') or {}).items()