Repeat Alert
Repeat alerts are suitable for scenarios requiring continuous reminders or periodic announcements, and support custom cid.
Periodic Alert
Section titled "Periodic Alert"Purpose: Implement periodic audible and visual announcements.
URL: http://<Alarm Light IP Address>/api/api/set_api_repeat_alarm
Request Method: POST
Data Type: form-data
Request Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| notify_desc | string | Notification group |
| tts_text | string | Voice announcement content |
Successful Response Example:
{ "code": 200, "msg": "OK", "data": { "cid": "658529f458d39" // cid is the ID of the periodic announcement, which is required for deletion. }}Failed Response Example:
{ "code": 500, "msg": "Notification group does not exist, please enter the correct notification group.", "data": null}{ "code": 703, "msg": "This feature is not enabled.", "data": null}Infinite Loop Alert
Section titled "Infinite Loop Alert"Purpose: Used for unlimited, non-interval looping voice announcements until deleted.
URL: http://<Alarm Light IP Address>/api/api/not_stop_repeat_alarm
Request Method: POST
Data Type: form-data
Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| notify_desc | string | Notification group |
| tts_text | string | Voice announcement content |
Successful Response Example:
{ "code": 200, "msg": "OK", "data": { "cid": "65852a694f97b" // cid is the ID of the periodic announcement, which is required for deletion. }}Failed Response Example:
{ "code": 500, "msg": "Notification group does not exist, please enter the correct notification group.", "data": null}{ "code": 703, "msg": "This feature is not enabled.", "data": null}Delete Repeat Alert
Section titled "Delete Repeat Alert"Purpose: Used to manually delete periodic or infinite loop announcements.
URL: http://<Alarm Light IP Address>/api/home/del_repeat_alarm
Request Method: POST
Data Type: form-data
Request Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| id | string | Periodic (infinite loop) announcement ID |
Successful Response Example:
{ "code": 200, "msg": "Loop announcement deleted successfully.", "data": { "method": 63, "id": "67b4abf1bcc6b3fd19f24ac0dc42dd8c", "data": "OK", "res_code": 0 }}