mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
82 lines
1.9 KiB
TypeScript
82 lines
1.9 KiB
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const motion: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/motion_detection",
|
|
fieldDocs: {
|
|
lightning_threshold:
|
|
"/configuration/motion_detection#lightning_threshold",
|
|
skip_motion_threshold:
|
|
"/configuration/motion_detection#skip_motion_on_large_scene_changes",
|
|
},
|
|
restartRequired: [],
|
|
fieldOrder: [
|
|
"enabled",
|
|
"threshold",
|
|
"lightning_threshold",
|
|
"skip_motion_threshold",
|
|
"improve_contrast",
|
|
"contour_area",
|
|
"delta_alpha",
|
|
"frame_alpha",
|
|
"frame_height",
|
|
"mqtt_off_delay",
|
|
],
|
|
fieldGroups: {
|
|
sensitivity: ["enabled", "threshold", "contour_area"],
|
|
algorithm: ["improve_contrast", "delta_alpha", "frame_alpha"],
|
|
},
|
|
uiSchema: {
|
|
skip_motion_threshold: {
|
|
"ui:widget": "optionalField",
|
|
"ui:options": {
|
|
innerWidget: "range",
|
|
step: 0.05,
|
|
suppressMultiSchema: true,
|
|
},
|
|
},
|
|
},
|
|
hiddenFields: ["enabled_in_config", "mask", "raw_mask"],
|
|
advancedFields: [
|
|
"lightning_threshold",
|
|
"skip_motion_threshold",
|
|
"delta_alpha",
|
|
"frame_alpha",
|
|
"frame_height",
|
|
"mqtt_off_delay",
|
|
],
|
|
},
|
|
global: {
|
|
restartRequired: ["frame_height"],
|
|
},
|
|
camera: {
|
|
restartRequired: ["frame_height"],
|
|
},
|
|
replay: {
|
|
restartRequired: [],
|
|
fieldOrder: [
|
|
"threshold",
|
|
"contour_area",
|
|
"lightning_threshold",
|
|
"improve_contrast",
|
|
],
|
|
fieldGroups: {
|
|
sensitivity: ["threshold", "contour_area"],
|
|
algorithm: ["improve_contrast"],
|
|
},
|
|
hiddenFields: [
|
|
"enabled",
|
|
"enabled_in_config",
|
|
"mask",
|
|
"raw_mask",
|
|
"mqtt_off_delay",
|
|
"delta_alpha",
|
|
"frame_alpha",
|
|
"frame_height",
|
|
],
|
|
advancedFields: ["lightning_threshold", "skip_motion_threshold"],
|
|
},
|
|
};
|
|
|
|
export default motion;
|