NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Compare timestamps instead of datetimes when exporting (#11790)
Josh Hawkins5b42c91a9108
diff --git a/frigate/record/export.py b/frigate/record/export.pyindex 1c47be314d..d3eefc9b25 100644--- a/frigate/record/export.py+++ b/frigate/record/export.py@@ -72,10 +72,11 @@ class RecordingExporter(threading.Thread):def save_thumbnail(self, id: str) -> str:thumb_path = os.path.join(CLIPS_DIR, f"export/{id}.webp")- if datetime.datetime.fromtimestamp(+ if (self.start_time- ) < datetime.datetime.now().astimezone(datetime.timezone.utc).replace(- minute=0, second=0, microsecond=0+ < datetime.datetime.now(datetime.timezone.utc)+ .replace(minute=0, second=0, microsecond=0)+ .timestamp()):# has preview mp4try: