Browse the docs

GET /sensors

The phone's sensors, as iCloud holds them.

Details #

Returns a list of {id, kind, name, macroId, macro, macHost, enabled, params, modified}. kind is arrive, leave, nfc, chargingStarted, chargingStopped, focus or watchButton. macro is the macro's name when this Mac has it. 404 when iCloud sync is off.

curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/sensors

Parameters #

curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X GET http://localhost/sensors

The phone's sensors, as iCloud holds them. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.

See also #