NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Set timeout based on number of cameras (#7219)
Nicolas Mowenf2ff55dba2c8
diff --git a/frigate/app.py b/frigate/app.pyindex 7a9f7538bc..5abf954d8f 100644--- a/frigate/app.py+++ b/frigate/app.py@@ -313,7 +313,7 @@ class FrigateApp:"cache_size": -512 * 1000, # 512MB of cache,"synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous},- timeout=60,+ timeout=10 * len([c for c in self.config.cameras.values() if c.enabled]),)models = [Event, Recordings, Timeline]self.db.bind(models)diff --git a/frigate/record/record.py b/frigate/record/record.pyindex c76ff3d63e..6e40ac01c6 100644--- a/frigate/record/record.py+++ b/frigate/record/record.py@@ -45,7 +45,7 @@ def manage_recordings("cache_size": -512 * 1000, # 512MB of cache"synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous},- timeout=60,+ timeout=10 * len([c for c in config.cameras.values() if c.enabled]),)models = [Event, Recordings, Timeline, RecordingsToDelete]db.bind(models)