ApplesauceOS
Read Markdown ↗Download .md

GET /setKeepAwake

Read or change the keep-awake preference.

This is a device HTTP route. Set DEVICE_URL to your reachable device URL; connection and examples explain how. Do not append this path to the public MCP URL.

Parameters

ParameterTypeMeaning
onquery string0 or 1. Omit to read the current value.

Response

JSON {status?:"success",keepAwake:boolean}.

Example

sh
curl --fail-with-body "$DEVICE_URL/setKeepAwake"

Notes

This GET changes a preference when on is supplied. Restore temporary settings. It prevents automatic sleep, not manual locking or a passcode; default false.

Check the HTTP status and any JSON error. HTTP workflows and error handling explain shared limits. All endpoints.