Range

Function

This API is used to get the parameter range of Alarm > Floodlight.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel"CH1"…"CHx",
"IP_CH1"…"IP_CHx",
"WIFI_CH1"…"WIFI_CHx"
The channels supported by the device.
string arrayIPC only use "CH1".

Sample:

POST /API/AlarmConfig/Deterrence/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
channel_maxintMaximum number of channels
channel_infoJson ObjectChannel information see Table 3 for more information
channels_items_datasameobject arrayAn array of objects whose parameters need to be synchronized (cloud-only). For object contents, see Table 9 for detailed information.
Table 3
ParameterRangeTypeDescription
CH1Json ObjectJson see Table 4
...Json Object
IP_CH1Json Object
...Json Object
WIFI_CH1Json Object
...Json Object
Table 4
ParameterRangeTypeDescription
status"Offline","Online"stringChannel online status, only for digital channels.
Note: This field is not available when the channel is online.
flood_light_switchboolWhite light switch.
flood_light_disableboolFull color machine only.
flood_light_mode"Warninglight" "Strobe"stringWhite light mode, Warninglight: constantly on, Strobe: flashing and degree_ There are differences in modes, flood_ Light_ Mode represents the way in which the white light is lit when the white light is triggered, degree_ Mod represents the screen color of white light in night vision mode.
flood_light_value1-100intWhite brightness.
bright_time5-180intWhite light duration.
strobe_frequency"Low","Middle","High"stringEnable in flashing mode,0:low; 1:middle; 2:high.
sensitivity1-8int8 levels: 8-high, 7-high, 1-low sensitivity for detecting triggered white light in areas.
siren_switchtrue falseboolSiren switch false: close true: open.
siren_value1-10intSiren volume.
siren_time5-180intSiren time last.
color_image_ctrlbool0: Off, 1: On When turned on, triggering white light will force IRCUT to operate in daytime mode. When not turned on, IRCUT will not respond to photosensitive effects.
region_setting200*8arrayDivide the region into row * col blocks, with each bit describing the value of a block The row and col of white light are based on motion. Region: White light is triggered only when motion is in this region
Bit = 1: motion in this block is monitored..Example: region_setting[0] = (FF-FF-FF-FF-FF-F0-00-00-00-00-00):: motion in channel 0 line 0’s 44 blocks is monitored. Line 1’s 44 blocks not monitored.
mbcol44intDivide the area into row * col blocks.
mbrow30intDivide the area into row * col blocks.
dualtalk_volume1-10intIntercom volume control.
enforcer_light_switchtrue falseboolRed and blue light switch false: close true: open.
enforcer_bright_time5-180intDuration of red and blue lights.
warning_light_disableboolFull color machine only.
button_controlJson ObjectControls whether the save and default buttons are displayed or hidden.
save_visibleboolSave button.
default_visibleboolRestore default button.
param_videoJson ObjectPage small window video box, do not pass this field default display.
showboolShow.
disableboolDisable.
time_scheduleJson arrayJson object see Table 5
deterrence_mode" Normal "," Full Color "," Alarm "stringUsed in the white light night vision mode of the wireless battery program:,1:Normal; 2:Full Color;3: Alarm. flood_ Light_ There are differences in modes, flood_ Light_ Mode represents the way in which the white light is lit when the white light is triggered, degree_ Mod represents the screen color of white light in night vision mode.
deterrence_interval_timeint(Dedicated for consumer NVR docking with IPC POE package) Sound and light linkage alarm working interval time.
deterrence_scheduleJson array(Dedicated to Consumer NVR Docking IPC POE Package) Sound and Light Linkage Schedule Data,see Table 7 for more information
siren_type"Alarm1",
"Alarm2",
"User-defined1",
"User-defined2",
"User-defined3"
stringalarm siren type.
siren_file_namestring length:0-127stringSiren alarm file name.
siren_filestring length:0-256kstringControls whether the imported audio file control is displayed.
siren_file_typestring length:0-127stringSiren file type.
siren_support_format".wav",".pcm"string arrayAlarm siren supports file types.
siren_type_contentJson Object
delete_buttonboolDelete/import audio button.
customize_audio_importedstring arrayPresence or absence of audio data. (NVR only)
floodLight_schedule_visibleboolWhether to display the white light schedule button. (used by cloud, NVR)
enforcer_schedule_visibleboolWhether to display the red and blue light schedule button. (used by cloud, NVR)
Table 5
ParameterRangeTypeDescription
schedule_type“Deterrence”stringWhite Light Time Schedule.
weekJson arrayWeekJson see Table 6 for more information.
Table 6
ParameterRangeTypeDescription
daySun,Mon,Tue,Wed,Thu,Fri,SatstringIdentify the day of the week.
time0: Close time period 1: Enable this time periodarrayEach array bit (int) identifies half an hour.
Table 7
ParameterRangeTypeDescription
schedule_type"white_light","enforcer_light","siren"stringThe alarm type represented by the current schedule data.
schedule_liststringCurrent alarm linkage schedule data,see Table 8 for more information.
Table 8
ParameterRangeTypeDescription
enabletrue falseboolIs the current schedule effective
start_time0 – 1439(23*60+59)intSchedule start time. (minutes relative to 00:00)
end_time0 – 1439(23*60+59)intSchedule end time. (minutes relative to 00:00)
weekday"Sunday""Monday""Tuesday""Wednesday""Thursday""Friday""Saturday"arrayIndicates the day of the week on which the current schedule takes effect, with multiple options available.
Table 9
ParameterRangeTypeDescription
datasame_channels0-Maximum number of channelsstring arrayChannel group that needs to synchronize parameters. (cloud only)
datasame_items0-Maximum number of channelsstring arrayParameter fields that need to be synchronized. (cloud only)

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_max": 16,
        "channels_items_datasame": {
            "type": "array",
            "min_size": 0,
            "max_size": 8,
            "items": [
                {
                    "datasame_items": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 8,
                        "items": {
                            "type": "string",
                            "items": [
                                "flood_light_switch",
                                "bright_time",
                                "flood_light_mode",
                                "strobe_frequency",
                                "enforcer_light_switch",
                                "enforcer_bright_time",
                                "schedule_list"
                            ]
                        }
                    },
                    "datasame_channels": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 8,
                        "items": {
                            "type": "string",
                            "items": [
                                "CH1",
                                "CH2",
                                "CH3",
                                "CH4"
                            ]
                        }
                    }
                },
                {
                    "datasame_items": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 8,
                        "items": {
                            "type": "string",
                            "items": [
                                "flood_light_switch",
                                "bright_time",
                                "flood_light_mode",
                                "strobe_frequency",
                                "enforcer_light_switch",
                                "enforcer_bright_time",
                                "schedule_list"
                            ]
                        }
                    },
                    "datasame_channels": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 8,
                        "items": {
                            "type": "string",
                            "items": ["CH5"]
                        }
                    }
                },
                {
                    "datasame_items": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 8,
                        "items": {
                            "type": "string",
                            "items": [
                                "flood_light_switch",
                                "bright_time",
                                "flood_light_mode",
                                "strobe_frequency",
                                "enforcer_light_switch",
                                "enforcer_bright_time",
                                "schedule_list"
                            ]
                        }
                    },
                    "datasame_channels": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 8,
                        "items": {
                            "type": "string",
                            "items": ["CH6"]
                        }
                    }
                }
            ]
        },
        "channel_info": {
            "type": "object",
            "items": {"CH1": {
                "type": "object",
                "items": {
                    "status": {
                        "description": "Only offline channel has this variable.",
                        "type": "string",
                        "mode": "r",
                        "items": [
                            "Offline",
                            "Online"
                        ]
                    },
                    "flood_light_switch": {"type": "bool"},
                    "bright_time": {
                        "type": "int32",
                        "min": 5,
                        "max": 180,
                        "default_value": 60
                    },
                    "flood_light_mode": {
                        "type": "string",
                        "items": [
                            "Warninglight",
                            "Strobe"
                        ]
                    },
                    "strobe_frequency": {
                        "type": "string",
                        "items": [
                            "Low",
                            "Middle",
                            "High"
                        ]
                    },
                    "support_floodLight_schedule_hub": {"type": "bool"},
                    "flood_light_disable": {"type": "bool"},
                    "warning_light_disable": {"type": "bool"},
                    "button_control": {
                        "save_visible": true,
                        "default_visible": true,
                        "support_floodLight_schedule_hub_disable": false,
                        "support_enforcer_schedule_hub_disable": false
                    },
                    "param_video": {
                        "type": "object",
                        "items": {
                            "show": {"type": "bool"},
                            "disable": {"type": "bool"}
                        }
                    }
                }
            }}
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.