README: Document new API action

This commit is contained in:
Starbeamrainbowlabs 2019-01-18 21:51:40 +00:00
parent 575a6b1dd6
commit 11f54d1bd5
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -75,6 +75,20 @@ https://example.com/path/to/api.php?action=list-devices
https://example.com/path/to/api.php?action=list-devices&only-with-location=yes
```
### device-info
> Gets (lots of) information about a single device.
Parameter | Type | Meaning
--------------------|-----------|---------------------
`device-id` | int | Required. The id of the device to get extended information for. See the `list-device` action for how to get a hold of one.
Examples:
```
https://example.com/path/to/api.php?action=device-info&device-id=10
https://example.com/path/to/api.php?action=device-info&device-id=18
```
## Notes
- Readings are taken every 6 minutes as standard.