From 58e1b70956b0f2e1f5d457ba1777bc8bac3c5b5a Mon Sep 17 00:00:00 2001 From: leccelecce <24962424+leccelecce@users.noreply.github.com> Date: Thu, 12 Mar 2026 22:49:26 +0000 Subject: [PATCH] Further config and web fixes --- frigate/config/camera/camera.py | 2 +- frigate/config/config.py | 2 +- web/public/locales/en/config/cameras.json | 10 +++------- web/public/locales/en/config/global.json | 18 +++++++----------- web/public/locales/en/views/settings.json | 7 +++---- .../views/settings/FrigatePlusSettingsView.tsx | 12 ------------ 6 files changed, 15 insertions(+), 36 deletions(-) diff --git a/frigate/config/camera/camera.py b/frigate/config/camera/camera.py index 9960abdce..3fbc6e4f3 100644 --- a/frigate/config/camera/camera.py +++ b/frigate/config/camera/camera.py @@ -140,7 +140,7 @@ class CameraConfig(FrigateBaseModel): snapshots: SnapshotsConfig = Field( default_factory=SnapshotsConfig, title="Snapshots", - description="Settings for saved JPEG snapshots of tracked objects for this camera.", + description="Settings for API-generated snapshots of tracked objects for this camera.", ) timestamp_style: TimestampStyleConfig = Field( default_factory=TimestampStyleConfig, diff --git a/frigate/config/config.py b/frigate/config/config.py index 4ea622347..b21e8a329 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -520,7 +520,7 @@ class FrigateConfig(FrigateBaseModel): snapshots: SnapshotsConfig = Field( default_factory=SnapshotsConfig, title="Snapshots", - description="Settings for saved JPEG snapshots of tracked objects for all cameras; can be overridden per-camera.", + description="Settings for API-generated snapshots of tracked objects for all cameras; can be overridden per-camera.", ) timestamp_style: TimestampStyleConfig = Field( default_factory=TimestampStyleConfig, diff --git a/web/public/locales/en/config/cameras.json b/web/public/locales/en/config/cameras.json index 5880d30c3..0a68b99f0 100644 --- a/web/public/locales/en/config/cameras.json +++ b/web/public/locales/en/config/cameras.json @@ -626,15 +626,11 @@ }, "snapshots": { "label": "Snapshots", - "description": "Settings for saved JPEG snapshots of tracked objects for this camera.", + "description": "Settings for API-generated snapshots of tracked objects for this camera.", "enabled": { "label": "Snapshots enabled", "description": "Enable or disable saving snapshots for this camera." }, - "clean_copy": { - "label": "Save clean copy", - "description": "Save an unannotated clean copy of snapshots in addition to annotated ones." - }, "timestamp": { "label": "Timestamp overlay", "description": "Overlay a timestamp on saved snapshots." @@ -672,8 +668,8 @@ } }, "quality": { - "label": "JPEG quality", - "description": "JPEG encode quality for saved snapshots (0-100)." + "label": "WEBP quality", + "description": "WEBP encode quality for saved snapshots (0-100)." } }, "timestamp_style": { diff --git a/web/public/locales/en/config/global.json b/web/public/locales/en/config/global.json index 5268c1b02..4b02fea97 100644 --- a/web/public/locales/en/config/global.json +++ b/web/public/locales/en/config/global.json @@ -1721,22 +1721,18 @@ }, "snapshots": { "label": "Snapshots", - "description": "Settings for saved JPEG snapshots of tracked objects for all cameras; can be overridden per-camera.", + "description": "Settings for API-generated snapshots of tracked objects for all cameras; can be overridden per-camera.", "enabled": { "label": "Snapshots enabled", "description": "Enable or disable saving snapshots for all cameras; can be overridden per-camera." }, - "clean_copy": { - "label": "Save clean copy", - "description": "Save an unannotated clean copy of snapshots in addition to annotated ones." - }, "timestamp": { "label": "Timestamp overlay", - "description": "Overlay a timestamp on saved snapshots." + "description": "Overlay a timestamp on snapshots." }, "bounding_box": { "label": "Bounding box overlay", - "description": "Draw bounding boxes for tracked objects on saved snapshots." + "description": "Draw bounding boxes for tracked objects on snapshots." }, "crop": { "label": "Crop snapshot", @@ -1748,11 +1744,11 @@ }, "height": { "label": "Snapshot height", - "description": "Height (pixels) to resize saved snapshots to; leave empty to preserve original size." + "description": "Height (pixels) to resize snapshots to; leave empty to preserve original size." }, "retain": { "label": "Snapshot retention", - "description": "Retention settings for saved snapshots including default days and per-object overrides.", + "description": "Retention settings for snapshots including default days and per-object overrides.", "default": { "label": "Default retention", "description": "Default number of days to retain snapshots." @@ -1767,8 +1763,8 @@ } }, "quality": { - "label": "JPEG quality", - "description": "JPEG encode quality for saved snapshots (0-100)." + "label": "WEBP quality", + "description": "WEBP encode quality for saved snapshots (0-100)." } }, "timestamp_style": { diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json index afbf27f82..c81210d69 100644 --- a/web/public/locales/en/views/settings.json +++ b/web/public/locales/en/views/settings.json @@ -1037,12 +1037,11 @@ }, "snapshotConfig": { "title": "Snapshot Configuration", - "desc": "Submitting to Frigate+ requires both snapshots and clean_copy snapshots to be enabled in your config.", - "cleanCopyWarning": "Some cameras have snapshots enabled but have the clean copy disabled. You need to enable clean_copy in your snapshot config to be able to submit images from these cameras to Frigate+.", + "desc": "Submitting to Frigate+ requires snapshots to be enabled in your config.", + "cleanCopyWarning": "Some cameras have snapshots disabled", "table": { "camera": "Camera", - "snapshots": "Snapshots", - "cleanCopySnapshots": "clean_copy Snapshots" + "snapshots": "Snapshots" } }, "modelInfo": { diff --git a/web/src/views/settings/FrigatePlusSettingsView.tsx b/web/src/views/settings/FrigatePlusSettingsView.tsx index 181fadaac..4beeeea36 100644 --- a/web/src/views/settings/FrigatePlusSettingsView.tsx +++ b/web/src/views/settings/FrigatePlusSettingsView.tsx @@ -405,11 +405,6 @@ export default function FrigatePlusSettingsView({ "frigatePlus.snapshotConfig.table.snapshots", )} - - - frigatePlus.snapshotConfig.table.cleanCopySnapshots - - @@ -429,13 +424,6 @@ export default function FrigatePlusSettingsView({ )} - - {camera.snapshots?.enabled ? ( - - ) : ( - - )} - ), )}