mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
README: Document new API action
This commit is contained in:
parent
575a6b1dd6
commit
11f54d1bd5
1 changed files with 14 additions and 0 deletions
14
README.md
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
|
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
|
## Notes
|
||||||
- Readings are taken every 6 minutes as standard.
|
- Readings are taken every 6 minutes as standard.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue