README: Document new API action

pull/26/head
Starbeamrainbowlabs 4 years ago
parent 575a6b1dd6
commit 11f54d1bd5
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 14
      README.md

@ -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.

Loading…
Cancel
Save