Range

Function

This API is used to get Alarm > Linkage Schedule parameter range.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel"CH1"…"CHx",
"IP_CH1"…"IP_CHx",
"WIFI_CH1"…"WIFI_CHx"
Channels supported by the device.
string array
page_type"FloodLight"
"Siren"
"EnforcerLight"
string

Sample:

POST /API/AlarmConfig/Schedule/Range HTTP/1.1
{
    "version": "1.0",
    "data":{
        "page_type":" FloodLight",
        "channel":["CH1"]
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
channel_infoobjectTotal channel information see Table 3.
page_type"FloodLight", "Siren"stringThe schedule used to distinguish the alarm linkage type.
Table 3
ParameterRangeTypeDescription
CH1objectSee Table 4.
object
IP_CH1object
object
WIFI_CH1object
object
Table 4
ParameterRangeTypeDescription
scheduleobject arraySee Table 5.
Table 5
ParameterRangeTypeDescription
schedule_type"Motion",
"IO",
"PIR",
"FD",
"PVD",
"PID",
"LCD",
"SOD",
"CC",
"CD",
"QD",
"LPD",
"RSD",
"VT",
"Intrusion",
"RegionEntrance",
"RegionExiting"
"FireDetect",
"TempMeas"
stringalarm schedule type.
weekobject arraySee Table 6 for details.
switchboolCurrent alarm type alarm linkage switch (new in 8.2.3).
Table 6
ParameterRangeTypeDescription
day"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"string
time0: close the time period 1: open the time periodinteach array bit marks half an hour.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "page_type": "FloodLight",
        "channel_info": {
            "type": "object",
            "items": {"CH1": {
                "type": "object",
                "items": {"time_schedule": {
                    "type": "array",
                    "min_size": 0,
                    "max_size": 13,
                    "items": [{
                        "schedule_type": {
                            "type": "string",
                            "items": [
                                "Motion",
                                "IO",
                                "FD",
                                "PVD",
                                "PID",
                                "LCD",
                                "SOD",
                                "CC",
                                "CD",
                                "QD",
                                "LPD",
                                "RSD",
                                "VT",
                                "Intrusion",
                                "RegionEntrance",
                                "RegionExiting"
                            ]
                        },
                        "switch": {"type": "bool"},
                        "week": {
                            "type": "array",
                            "size": 7,
                            "items": [{
                                "day": {
                                    "type": "string",
                                    "items": [
                                        "Sun",
                                        "Mon",
                                        "Tue",
                                        "Wed",
                                        "Thu",
                                        "Fri",
                                        "Sat"
                                    ]
                                },
                                "time": {
                                    "type": "array",
                                    "size": 48,
                                    "items": [{
                                        "type": "int32",
                                        "items": [
                                            0,
                                            1
                                        ]
                                    }]
                                }
                            }]
                        }
                    }]
                }}
            }}
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.