mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 11:31:28 +08:00
Ability to enable / disable motion detection via MQTT (#3117)
* Starting working on adding motion toggle * Add all info to mqtt command * Send motion to correct funs * Update mqtt docs * Fixes for contingencies * format * mypy * Tweak behavior * Fix motion breaking frames * Fix bad logic in detect set * Always set value for motion boxes
This commit is contained in:
@@ -115,6 +115,7 @@ class ProcessClip:
|
||||
}
|
||||
|
||||
detection_enabled = mp.Value("d", 1)
|
||||
motion_enabled = mp.Value("d", True)
|
||||
stop_event = mp.Event()
|
||||
model_shape = (self.config.model.height, self.config.model.width)
|
||||
|
||||
@@ -133,6 +134,7 @@ class ProcessClip:
|
||||
objects_to_track,
|
||||
object_filters,
|
||||
detection_enabled,
|
||||
motion_enabled,
|
||||
stop_event,
|
||||
exit_on_empty=True,
|
||||
)
|
||||
|
Reference in New Issue
Block a user