Skip to content

Commit 9876ca8

Browse files
authored
Config names (#26)
* Adjust config names * Adjust config docs * Formatting
1 parent 4e5f391 commit 9876ca8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cameras:
5151
snapshot_config:
5252
# OPTIONAL: but highly recommended, setting the default url for a snapshot to be
5353
# processed by this camera. This is required for auto detection (Default: none).
54-
snapshot_url: "http://ip.ad.dr.ess/jpg"
54+
url: "http://ip.ad.dr.ess/jpg"
5555
# OPTIONAL: Whether or not to save the snapshots of confirmed detections (Default: shown below).
5656
save_detections: true
5757
# OPTIONAL: Whether or not to save the snapshots of missed detections (Default: shown below).

swatch/config.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ class SnapshotConfig(SwatchBaseModel):
2828
"""Configuration for saving snapshots."""
2929

3030
url: str = Field(title="Camera Snapshot Url.", default=None)
31+
mode: SnapshotModeEnum = Field(title="Snapshot mode.", default=SnapshotModeEnum.ALL)
3132
save_detections: bool = Field(
3233
title="Save snapshots of detections that are found.", default=True
3334
)
3435
save_misses: bool = Field(
3536
title="Save snapshots of missed detections.", default=False
3637
)
37-
snapshot_mode: SnapshotModeEnum = Field(
38-
title="Snapshot mode.", default=SnapshotModeEnum.ALL
39-
)
4038
retain_days: int = Field(title="Number of days to retain snapshots.", default=7)
4139

4240

0 commit comments

Comments
 (0)