From 34fa53afcc59e27f77260f4ff6be62d14da31937 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 5 Feb 2022 09:28:21 -0600 Subject: [PATCH] make motion the default retain mode --- docs/docs/configuration/index.md | 2 +- frigate/config.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index 2d8eb2d19..f3fb4500e 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -273,7 +273,7 @@ record: # here, the segments will already be gone by the time this mode is applied. # For example, if the camera retain mode is "motion", the segments without motion are # never stored, so setting the mode to "all" here won't bring them back. - mode: active_objects + mode: motion # Optional: Per object retention days objects: person: 15 diff --git a/frigate/config.py b/frigate/config.py index 4a941bf41..77d13ffc9 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -72,9 +72,7 @@ class RetainModeEnum(str, Enum): class RetainConfig(FrigateBaseModel): default: float = Field(default=10, title="Default retention period.") - mode: RetainModeEnum = Field( - default=RetainModeEnum.active_objects, title="Retain mode." - ) + mode: RetainModeEnum = Field(default=RetainModeEnum.motion, title="Retain mode.") objects: Dict[str, float] = Field( default_factory=dict, title="Object retention period." )