NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Use pre capture for custom events (#7038)
Nicolas Mowen0f68fbc8db91
diff --git a/frigate/events/external.py b/frigate/events/external.pyindex 20456b9cb6..23439f2bdc 100644--- a/frigate/events/external.py+++ b/frigate/events/external.py@@ -57,8 +57,12 @@ class ExternalEventProcessor:"label": label,"sub_label": sub_label,"camera": camera,- "start_time": now,- "end_time": now + duration if duration is not None else None,+ "start_time": now - camera_config.record.events.pre_capture,+ "end_time": now+ + duration+ + camera_config.record.events.post_capture+ if duration is not None+ else None,"thumbnail": thumbnail,"has_clip": camera_config.record.enabled and include_recording,"has_snapshot": True,