get-auto-reboot
Use the interface to get the configuration information of auto reboot.
HTTP Request
GET http://ip/mwapi?method=get-auto-reboot
| Parameter | Description |
|---|---|
| method | get-auto-reboot |
Response Body
{
"status": 0,
"enable": true
"hour": 3
"min": 30
"week-flags": 8
}
| Name | Description |
|---|---|
| status | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |
| enable | True indicates the auto reboot function is enabled, otherwise it is false. |
| week-flags | The sum of the masks for the selected days. The masks for Monday to Sunday are: 1, 2, 4, 8, 16, 32, 0. For example: When Monday and Wednesday are selected, week-flags=1+4=5 |
| hour | Time, 24-hour format. Value ranges from 0 to 23. |
| min | Minute. Value ranges from 0 to 59. |
The set time needs to be converted to UTC time.