check pintu status
This commit is contained in:
@@ -168,9 +168,9 @@ 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:
|
||||
if label == "pintu-kiri-buka" and not self.pintu_kiri_buka_detected:
|
||||
self.handle_pintu_kiri_buka(camera_name)
|
||||
elif label == "pintu-kanan-buka" and not self.timer_active:
|
||||
elif label == "pintu-kanan-buka" 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)
|
||||
|
||||
Reference in New Issue
Block a user