From e8bf41ab6b1c8e6bb467f0dd593b0ac7455d45e4 Mon Sep 17 00:00:00 2001 From: dsutanto Date: Fri, 6 Mar 2026 13:51:55 +0700 Subject: [PATCH] Remove zone pintu kiri buka and pintu kanan buka --- frigate_counter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frigate_counter.py b/frigate_counter.py index 8192050..ce81f20 100644 --- a/frigate_counter.py +++ b/frigate_counter.py @@ -178,9 +178,11 @@ class FrigateCounter: logger.debug(f"Received message: camera={camera_name}, type={event_type}, label={label}") # Handle different object types - if label == "pintu-kiri-buka" and not self.timer_active and not self.pintu_kiri_buka_detected and self.pintu_kiri_buka_zone_name in zones_after: + #if label == "pintu-kiri-buka" and not self.timer_active and not self.pintu_kiri_buka_detected and self.pintu_kiri_buka_zone_name in zones_after: + if label == "pintu-kiri-buka" and not self.timer_active and not self.pintu_kiri_buka_detected: self.handle_pintu_kiri_buka(camera_name) - elif label == "pintu-kanan-buka" and not self.timer_active and not self.pintu_kanan_buka_detected and self.pintu_kanan_buka_zone_name in zones_after: + #elif label == "pintu-kanan-buka" and not self.timer_active and not self.pintu_kanan_buka_detected and self.pintu_kanan_buka_zone_name in zones_after: + elif label == "pintu-kanan-buka" and not self.timer_active and not self.pintu_kanan_buka_detected: self.handle_pintu_kanan_buka(camera_name) elif label == "karung" and self.timer_active: self.handle_karung(camera_name, track_id)