Further config and web fixes

This commit is contained in:
leccelecce 2026-03-12 22:49:26 +00:00
parent 5985bd5fc6
commit 58e1b70956
6 changed files with 15 additions and 36 deletions

View File

@ -140,7 +140,7 @@ class CameraConfig(FrigateBaseModel):
snapshots: SnapshotsConfig = Field( snapshots: SnapshotsConfig = Field(
default_factory=SnapshotsConfig, default_factory=SnapshotsConfig,
title="Snapshots", 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( timestamp_style: TimestampStyleConfig = Field(
default_factory=TimestampStyleConfig, default_factory=TimestampStyleConfig,

View File

@ -520,7 +520,7 @@ class FrigateConfig(FrigateBaseModel):
snapshots: SnapshotsConfig = Field( snapshots: SnapshotsConfig = Field(
default_factory=SnapshotsConfig, default_factory=SnapshotsConfig,
title="Snapshots", 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( timestamp_style: TimestampStyleConfig = Field(
default_factory=TimestampStyleConfig, default_factory=TimestampStyleConfig,

View File

@ -626,15 +626,11 @@
}, },
"snapshots": { "snapshots": {
"label": "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": { "enabled": {
"label": "Snapshots enabled", "label": "Snapshots enabled",
"description": "Enable or disable saving snapshots for this camera." "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": { "timestamp": {
"label": "Timestamp overlay", "label": "Timestamp overlay",
"description": "Overlay a timestamp on saved snapshots." "description": "Overlay a timestamp on saved snapshots."
@ -672,8 +668,8 @@
} }
}, },
"quality": { "quality": {
"label": "JPEG quality", "label": "WEBP quality",
"description": "JPEG encode quality for saved snapshots (0-100)." "description": "WEBP encode quality for saved snapshots (0-100)."
} }
}, },
"timestamp_style": { "timestamp_style": {

View File

@ -1721,22 +1721,18 @@
}, },
"snapshots": { "snapshots": {
"label": "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": { "enabled": {
"label": "Snapshots enabled", "label": "Snapshots enabled",
"description": "Enable or disable saving snapshots for all cameras; can be overridden per-camera." "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": { "timestamp": {
"label": "Timestamp overlay", "label": "Timestamp overlay",
"description": "Overlay a timestamp on saved snapshots." "description": "Overlay a timestamp on snapshots."
}, },
"bounding_box": { "bounding_box": {
"label": "Bounding box overlay", "label": "Bounding box overlay",
"description": "Draw bounding boxes for tracked objects on saved snapshots." "description": "Draw bounding boxes for tracked objects on snapshots."
}, },
"crop": { "crop": {
"label": "Crop snapshot", "label": "Crop snapshot",
@ -1748,11 +1744,11 @@
}, },
"height": { "height": {
"label": "Snapshot 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": { "retain": {
"label": "Snapshot retention", "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": { "default": {
"label": "Default retention", "label": "Default retention",
"description": "Default number of days to retain snapshots." "description": "Default number of days to retain snapshots."
@ -1767,8 +1763,8 @@
} }
}, },
"quality": { "quality": {
"label": "JPEG quality", "label": "WEBP quality",
"description": "JPEG encode quality for saved snapshots (0-100)." "description": "WEBP encode quality for saved snapshots (0-100)."
} }
}, },
"timestamp_style": { "timestamp_style": {

View File

@ -1037,12 +1037,11 @@
}, },
"snapshotConfig": { "snapshotConfig": {
"title": "Snapshot Configuration", "title": "Snapshot Configuration",
"desc": "Submitting to Frigate+ requires both snapshots and <code>clean_copy</code> snapshots to be enabled in your config.", "desc": "Submitting to Frigate+ requires snapshots to be enabled in your config.",
"cleanCopyWarning": "Some cameras have snapshots enabled but have the clean copy disabled. You need to enable <code>clean_copy</code> in your snapshot config to be able to submit images from these cameras to Frigate+.", "cleanCopyWarning": "Some cameras have snapshots disabled",
"table": { "table": {
"camera": "Camera", "camera": "Camera",
"snapshots": "Snapshots", "snapshots": "Snapshots"
"cleanCopySnapshots": "<code>clean_copy</code> Snapshots"
} }
}, },
"modelInfo": { "modelInfo": {

View File

@ -405,11 +405,6 @@ export default function FrigatePlusSettingsView({
"frigatePlus.snapshotConfig.table.snapshots", "frigatePlus.snapshotConfig.table.snapshots",
)} )}
</th> </th>
<th className="px-4 py-2 text-center">
<Trans ns="views/settings">
frigatePlus.snapshotConfig.table.cleanCopySnapshots
</Trans>
</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -429,13 +424,6 @@ export default function FrigatePlusSettingsView({
<XCircle className="mx-auto size-5 text-danger" /> <XCircle className="mx-auto size-5 text-danger" />
)} )}
</td> </td>
<td className="px-4 py-2 text-center">
{camera.snapshots?.enabled ? (
<CheckCircle2 className="mx-auto size-5 text-green-500" />
) : (
<XCircle className="mx-auto size-5 text-danger" />
)}
</td>
</tr> </tr>
), ),
)} )}