{
"id": "GSF_ID_SVP_ALARM",
"op": "G1C0S0",
"data": {
"out": {
"enable": 10,
"interval": 10,
"uart_heartbeat": 1,
"audio_db": 5
},
"in": {
"enable": 0,
"accept_type": -1,
"linkage": 4
},
"od": {
"enable": 0,
"showinosd": 1,
"audio_idx": 3,
"audio_repeat": 3,
"linkage_gpio": -1,
"gpio_action": 1,
"effect_time": 5,
"slr_mode": 3,
"dist_threshold": 300,
"ref_frames": 5
},
"timed": {
"enable": 0,
"interval": 1,
"unit": 3,
"linkage": 1
}
}
}curl --location --request POST 'http://192.168.0.168/api/alarm/config' \
--header 'Cookie: access_token=;access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "GSF_ID_SVP_ALARM",
"op": "G1C0S0",
"data": {
"out": {
"enable": 10,
"interval": 10,
"uart_heartbeat": 1,
"audio_db": 5
},
"in": {
"enable": 0,
"accept_type": -1,
"linkage": 4
},
"od": {
"enable": 0,
"showinosd": 1,
"audio_idx": 3,
"audio_repeat": 3,
"linkage_gpio": -1,
"gpio_action": 1,
"effect_time": 5,
"slr_mode": 3,
"dist_threshold": 300,
"ref_frames": 5
},
"timed": {
"enable": 0,
"interval": 1,
"unit": 3,
"linkage": 1
}
}
}'{
"code": 0,
"data": {}
}