Display service #
Service namespace: dis
Configuration #
Config json schema available on api/v1/device/<dev_id>/service/dis/config/schema:
curl -H "X-API-Key: <api key>" \
https://api.nr.iotready.no/api/v1/device/<dev_id>/service/dis/config/schema
| Field | Type | Description |
|---|---|---|
| intensity | integer | Intensity in percent |
| rotation | object | Rotation |
| rotation.angle | integer | Rotation angle in either 0, 90, 180 or 270 degrees |
Read config with status:
curl -H "X-IOTREADY-CONFIG-NEXT-GEN: true" -H "X-API-Key: <api key>" \
https://api.nr.iotready.no/api/v1/device/<dev_id>/service/dis/config
Configure display rotation:
curl -H "X-API-Key: <api key>" -X PUT -d '{"rotation":{"angle":270}}' \
https://api.nr.iotready.no/api/v1/device/<dev_id>/service/dis/config/value