From b5e0945eaa7597a98fd2e8cdde71334f5774deab Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 19 Aug 2024 13:10:24 -0600 Subject: [PATCH] Ensure only enabled birdseye cameras are considered active --- frigate/output/birdseye.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frigate/output/birdseye.py b/frigate/output/birdseye.py index 2b17a4cf1..44ad810c5 100644 --- a/frigate/output/birdseye.py +++ b/frigate/output/birdseye.py @@ -395,7 +395,8 @@ class BirdsEyeFrameManager: [ cam for cam, cam_data in self.cameras.items() - if cam_data["last_active_frame"] > 0 + if self.config.cameras[cam].birdseye.enabled + and cam_data["last_active_frame"] > 0 and cam_data["current_frame"] - cam_data["last_active_frame"] < self.inactivity_threshold ] @@ -768,6 +769,13 @@ class Birdseye: break camera_name = updated_topic.rpartition("/")[-1] + + if ( + self.config.cameras[camera_name].birdseye.enabled + and not updated_birdseye_config.enabled + ): + self + self.config.cameras[camera_name].birdseye = updated_birdseye_config if self.birdseye_manager.update(