Added UCI flag to control if camera configs get overwritten by UCI

pull/3/head
riley 12 months ago
parent 18a7067dca
commit 7bc9c3d2b6

@ -68,12 +68,23 @@ s.novaluetext = "There are no cameras configured yet."
o = s:option(Value, "name", "Camera Name") o = s:option(Value, "name", "Camera Name")
o = s:option(Value, "path", "RTSP Path") o = s:option(Value, "path", "RTSP Path")
o = s:option(Value, "roles", "Roles") o = s:option(Value, "roles", "Roles")
o = s:option(Flag, "record", "Enable Recording") o = s:option(Flag, "record", "Enable Recording")
o.default = "0" o.default = "0"
o.rmempty = false o.rmempty = false
o = s:option(Flag, "snapshots", "Enable Snapshots") o = s:option(Flag, "snapshots", "Enable Snapshots")
o.default = "0" o.default = "0"
o.rmempty = false o.rmempty = false
o = s:option(Value, "mask", "Mask") o = s:option(Value, "mask", "Mask")
-- Add the new flag for Overwrite Frigate Config
o = s:option(Flag, "overwrite_cfg", "Overwrite Frigate Config")
o.default = "1"
o.rmempty = false
return m
return m return m
Loading…
Cancel
Save