mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 06:08:22 +03:00
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
* debug replay implementation * fix masks after dev rebase * fix squash merge issues * fix * fix * fix * no need to write debug replay camera to config * camera and filter button and dropdown * add filters * add ability to edit motion and object config for debug replay * add debug draw overlay to debug replay * add guard to prevent crash when camera is no longer in camera_states * fix overflow due to radix absolutely positioned elements * increase number of messages * ensure deep_merge replaces existing list values when override is true * add back button * add debug replay to explore and review menus * clean up * clean up * update instructions to prevent exposing exception info * fix typing * refactor output logic * refactor with helper function * move init to function for consistency
74 lines
1.6 KiB
TypeScript
74 lines
1.6 KiB
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const motion: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/motion_detection",
|
|
restartRequired: [],
|
|
fieldOrder: [
|
|
"enabled",
|
|
"threshold",
|
|
"lightning_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"],
|
|
},
|
|
hiddenFields: ["enabled_in_config", "mask", "raw_mask"],
|
|
advancedFields: [
|
|
"lightning_threshold",
|
|
"delta_alpha",
|
|
"frame_alpha",
|
|
"frame_height",
|
|
"mqtt_off_delay",
|
|
],
|
|
},
|
|
global: {
|
|
restartRequired: [
|
|
"enabled",
|
|
"threshold",
|
|
"lightning_threshold",
|
|
"improve_contrast",
|
|
"contour_area",
|
|
"delta_alpha",
|
|
"frame_alpha",
|
|
"frame_height",
|
|
"mqtt_off_delay",
|
|
],
|
|
},
|
|
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"],
|
|
},
|
|
};
|
|
|
|
export default motion;
|