mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-16 00:41:14 +03:00
add camera config updater topic for live section
to support adding go2rtc streams after configuring a new one via the UI
This commit is contained in:
parent
7f3696fceb
commit
c1dfdf57db
@ -18,6 +18,7 @@ class CameraConfigUpdateEnum(str, Enum):
|
|||||||
detect = "detect"
|
detect = "detect"
|
||||||
enabled = "enabled"
|
enabled = "enabled"
|
||||||
ffmpeg = "ffmpeg"
|
ffmpeg = "ffmpeg"
|
||||||
|
live = "live"
|
||||||
motion = "motion" # includes motion and motion masks
|
motion = "motion" # includes motion and motion masks
|
||||||
notifications = "notifications"
|
notifications = "notifications"
|
||||||
objects = "objects"
|
objects = "objects"
|
||||||
@ -107,6 +108,8 @@ class CameraConfigUpdateSubscriber:
|
|||||||
config.enabled = updated_config
|
config.enabled = updated_config
|
||||||
elif update_type == CameraConfigUpdateEnum.object_genai:
|
elif update_type == CameraConfigUpdateEnum.object_genai:
|
||||||
config.objects.genai = updated_config
|
config.objects.genai = updated_config
|
||||||
|
elif update_type == CameraConfigUpdateEnum.live:
|
||||||
|
config.live = updated_config
|
||||||
elif update_type == CameraConfigUpdateEnum.motion:
|
elif update_type == CameraConfigUpdateEnum.motion:
|
||||||
config.motion = updated_config
|
config.motion = updated_config
|
||||||
elif update_type == CameraConfigUpdateEnum.notifications:
|
elif update_type == CameraConfigUpdateEnum.notifications:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user