Added option for plugin to always record on motion before any object detection takes place.

build-default-monitor-config-from-definitions
Ian Rubado 2020-04-01 00:13:53 -04:00
parent 21b2de65fd
commit c3fb07a7e4
4 changed files with 35 additions and 2 deletions

View File

@ -1787,6 +1787,18 @@ module.exports = function(s,config,lang){
"form-group-class": "h_rec_ti_input h_rec_ti_1",
"fieldType": "select",
"possible": [
{
"name": `.1 ${lang.minutes}`,
"value": "6"
},
{
"name": `.25 ${lang.minutes}`,
"value": "15"
},
{
"name": `.5 ${lang.minutes}`,
"value": "30"
},
{
"name": `5 ${lang.minutes}`,
"value": "300"
@ -2973,6 +2985,25 @@ module.exports = function(s,config,lang){
}
]
},
{
"name": "detail=detector_always_record",
"field": lang['Start recording on motion'],
"description": "",
"default": "0",
"example": "",
"selector": "h_det_alwy_rec",
"fieldType": "select",
"possible": [
{
"name": lang.No,
"value": "0"
},
{
"name": lang.Yes,
"value": "1"
}
]
},
{
hidden: true,
"name": "detail=detector_fps_object",

View File

@ -969,5 +969,6 @@
"There are no monitors that you can view with this account.":"There are no monitors that you can view with this account.",
"Delete Monitors and Files": "Delete Monitors and Files",
"Select atleast one monitor to delete": "Select atleast one monitor to delete.",
"Use Built-In":"Use Built-In"
"Use Built-In":"Use Built-In",
"Start recording on motion":"Start recording on motion"
}

File diff suppressed because one or more lines are too long

View File

@ -3571,6 +3571,7 @@ $.aM.generateDefaultMonitorSettings=function(){
"detector_scale_x": "640",
"detector_scale_y": "480",
"detector_use_motion": "1",
"detector_always_record":"0",
"detector_use_detect_object": "0",
"detector_frame": "0",
"detector_sensitivity": "",