Compare commits
5 commits
ffc0e7c72e
...
1a6b52804e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a6b52804e | ||
|
|
96d1685a41 | ||
|
|
2b820602e4 | ||
|
|
30bff79e17 | ||
|
|
7d97b17e8b |
3 changed files with 7 additions and 8 deletions
2
Gemfile
2
Gemfile
|
|
@ -7,7 +7,7 @@ gem 'middleman', '~> 4.5.0'
|
|||
gem 'middleman-autoprefixer', '~> 3.0.0'
|
||||
gem 'middleman-sprockets', '~> 4.1.1'
|
||||
gem 'middleman-syntax', '~> 3.2.0'
|
||||
gem 'nokogiri', '~> 1.18.3'
|
||||
gem 'nokogiri', '~> 1.18.8'
|
||||
gem 'rack', '~> 2.2.13'
|
||||
gem 'redcarpet', '~> 3.6.0'
|
||||
gem 'rouge', '~> 3.30.0'
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ GEM
|
|||
rouge (~> 3.2)
|
||||
mini_portile2 (2.8.8)
|
||||
minitest (5.20.0)
|
||||
nokogiri (1.18.3)
|
||||
nokogiri (1.18.8)
|
||||
mini_portile2 (~> 2.8.2)
|
||||
racc (~> 1.4)
|
||||
padrino-helpers (0.15.3)
|
||||
|
|
@ -127,7 +127,7 @@ DEPENDENCIES
|
|||
middleman-autoprefixer (~> 3.0.0)
|
||||
middleman-sprockets (~> 4.1.1)
|
||||
middleman-syntax (~> 3.2.0)
|
||||
nokogiri (~> 1.18.3)
|
||||
nokogiri (~> 1.18.8)
|
||||
rack (~> 2.2.13)
|
||||
redcarpet (~> 3.6.0)
|
||||
rouge (~> 3.30.0)
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ Note that there are endpoints for submitting multiple data points to a feed, and
|
|||
> <div class="http"><span class="method-post">POST</span><code class="path">/api/v2/{username}/feeds/{feed_key}/data</code></div>
|
||||
|
||||
```shell
|
||||
# Send new data with a value of 42
|
||||
$ curl -F 'value=42' -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
|
||||
# Send new data with a value of 42 (note: using single quotes instead prevents variable expansion etc in bash)
|
||||
$ curl -F "value=42" -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
|
||||
|
||||
# Send new data with a value of 42 and include optional location metadata
|
||||
curl -H "Content-Type: application/json" -d '{"value": 42, "lat": 23.1, "lon": "-73.3"}' -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
|
||||
|
|
@ -655,8 +655,8 @@ Example for `group_feed_data` in the body is as follows: `{ feeds: [ { key: stri
|
|||
> <div class="http"><span class="method-get">GET</span><code class="path">/api/v2/{username}/groups/{group_key}/feeds/{feed_key}/data</code></div>
|
||||
|
||||
```shell
|
||||
# Send new data with a value of 42 to the group's feeds as json
|
||||
$ curl -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/groups/{group_key}/data.json -d '{"feeds":[{"key":"{feed_key}","value":42}]}'
|
||||
# Get data from the given Feed in the given Group
|
||||
$ curl -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/groups/{group_key}/feeds/{feed_key}/data
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
@ -767,4 +767,3 @@ feed_key | string | true | a valid feed key
|
|||
Parameter | Type | Required | Description
|
||||
--------- | ------- | --------- | -----------------------
|
||||
data | array | true | A collection of data records including `value` (required) and optionally including: `lat`, `lon`, `ele` (latitude, longitude, and elevation values), and `created_at` (a date/time string).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue