Get

Function

This API is used to get Alarm > Voice Alarm parameters.

Request Message

None.

Sample:

POST /API/AlarmConfig/VoiceAlarm/Get HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel_infoobjectTotal channel information see Table 2.
Table 2
ParameterRangeTypeDescription
CH1objectSee Table 3
object
IP_CH1object
object
WIFI_CH1object
object
Table 3
ParameterRangeTypeDescription
siren_switchboolSiren function switch.
siren_time5-180intWarning alarm time.
siren_value1-10intThe sound volume of the siren alarm.
siren_mode"Fixed_Volume" - fixed volume,
"Gradual_Increasing_Volume" - gradual volume
stringSiren alarm sound type.
siren_type_contentobjectSee Table 4 for details.
siren_type"Alarm1",
"Alarm2",
"User-defined1",
"User-defined2",
"User-defined3"
stringAlarm alarm station Choose Audio.
siren_file_namestring length: 0-127stringalarm file name.
Table 4
ParameterRangeTypeDescription
Alarm1object
Alarm2object
User-defined1objectSee Table 5 for details.
User-defined2objectSee Table 5 for details.
User-defined3objectSee Table 5 for details.
Table 5
ParameterRangeTypeDescription
delete_buttonboolWhether to display the delete button or import button.
siren_file_name0-127string
siren_file0-256kstringControl whether the widget for importing audio files is displayed.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_info": {
            "CH1": {
                "siren_switch": false,
                "siren_time": 10,
                "siren_value": 5,
                "siren_type_content": {
                    "Alarm1": {}
                },
                "siren_type": "Alarm1",
                "siren_file_name": ""
            },
            "CH2": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH3": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH4": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH6": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH7": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH8": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH9": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH10": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH11": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH12": {
                "status": "Offline",
                "reason": "Not support"
            },
            "CH13": {
                "reason": "Not configured"
            },
            "CH14": {
                "reason": "Not configured"
            },
            "CH15": {
                "reason": "Not configured"
            },
            "CH16": {
                "reason": "Not configured"
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.