Compare commits
21 commits
tyeth/issu
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a6b52804e | ||
|
|
96d1685a41 | ||
|
|
2b820602e4 | ||
|
|
30bff79e17 | ||
|
|
7d97b17e8b | ||
|
|
ffc0e7c72e | ||
|
|
658236e4ea | ||
|
|
30cf3a8891 | ||
|
|
6a64b40038 | ||
|
|
add1bd9242 | ||
|
|
628bb91e9a | ||
|
|
3ada13e6f9 | ||
|
|
67d3176588 | ||
|
|
f9ed8381c1 | ||
|
|
2f8e67aa61 | ||
|
|
47d2ddb964 | ||
|
|
47837d08b4 | ||
|
|
028fe6a4aa | ||
|
|
3995601e32 | ||
|
|
cb071d9942 | ||
|
|
27db9847df |
8 changed files with 17 additions and 19 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
with:
|
||||
ruby-version: ${{ env.ruby-version }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
|
||||
|
|
|
|||
4
Gemfile
4
Gemfile
|
|
@ -7,8 +7,8 @@ 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.16.5'
|
||||
gem 'rack', '~> 2.2.8'
|
||||
gem 'nokogiri', '~> 1.18.8'
|
||||
gem 'rack', '~> 2.2.13'
|
||||
gem 'redcarpet', '~> 3.6.0'
|
||||
gem 'rouge', '~> 3.30.0'
|
||||
|
||||
|
|
|
|||
16
Gemfile.lock
16
Gemfile.lock
|
|
@ -79,9 +79,9 @@ GEM
|
|||
middleman-syntax (3.2.0)
|
||||
middleman-core (>= 3.2)
|
||||
rouge (~> 3.2)
|
||||
mini_portile2 (2.8.6)
|
||||
mini_portile2 (2.8.8)
|
||||
minitest (5.20.0)
|
||||
nokogiri (1.16.5)
|
||||
nokogiri (1.18.8)
|
||||
mini_portile2 (~> 2.8.2)
|
||||
racc (~> 1.4)
|
||||
padrino-helpers (0.15.3)
|
||||
|
|
@ -92,14 +92,13 @@ GEM
|
|||
parallel (1.23.0)
|
||||
parslet (2.0.0)
|
||||
public_suffix (5.0.3)
|
||||
racc (1.7.3)
|
||||
rack (2.2.8.1)
|
||||
racc (1.8.1)
|
||||
rack (2.2.13)
|
||||
rb-fsevent (0.11.2)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
redcarpet (3.6.0)
|
||||
rexml (3.3.6)
|
||||
strscan
|
||||
rexml (3.3.9)
|
||||
rouge (3.30.0)
|
||||
sassc (2.4.0)
|
||||
ffi (~> 1.9)
|
||||
|
|
@ -107,7 +106,6 @@ GEM
|
|||
sprockets (4.0.2)
|
||||
concurrent-ruby (~> 1.0)
|
||||
rack (> 1, < 3)
|
||||
strscan (3.1.0)
|
||||
temple (0.10.3)
|
||||
thor (1.2.2)
|
||||
tilt (2.0.11)
|
||||
|
|
@ -129,8 +127,8 @@ DEPENDENCIES
|
|||
middleman-autoprefixer (~> 3.0.0)
|
||||
middleman-sprockets (~> 4.1.1)
|
||||
middleman-syntax (~> 3.2.0)
|
||||
nokogiri (~> 1.16.5)
|
||||
rack (~> 2.2.8)
|
||||
nokogiri (~> 1.18.8)
|
||||
rack (~> 2.2.13)
|
||||
redcarpet (~> 3.6.0)
|
||||
rouge (~> 3.30.0)
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 36 KiB |
|
|
@ -1,10 +1,10 @@
|
|||
# Authentication
|
||||
|
||||
Your Adafruit IO Key is used to restrict or grant access to your data. The key is unique and covers every use of the Adafruit IO API for your account. You can access your key any dashboard by clicking on the golden key icon:
|
||||
Your Adafruit IO Key is used to restrict or grant access to your data. The key is unique and covers every use of the Adafruit IO API for your account. You can access your key on any IO page by clicking on the golden key icon:
|
||||
|
||||
<%= image_tag "images/authentication/aio-key-dashboard-link.png" %>
|
||||
|
||||
Or by clicking on the "View AIO Key" link in the sidebar while you're visiting Adafruit IO.
|
||||
Or by clicking on the "View Adafruit IO Key" link in the small screen drop-down menu while you're visiting Adafruit IO.
|
||||
|
||||
<%= image_tag "images/authentication/aio-key-sidebar-link.png" %>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ Error Code | Meaning
|
|||
403 | Forbidden -- This action is not permitted.
|
||||
404 | Not Found -- The specified record could not be found.
|
||||
406 | Not Acceptable -- You requested a format that we don't serve.
|
||||
422 | Unprocessable Entity -- You've sent data we can't accept/understand. Is the value field (string/number) missing?
|
||||
429 | Too Many Requests -- You're sending or requesting data too quickly! Slow down!
|
||||
500 | Internal Server Error -- We had a problem with our server. Try again later.
|
||||
503 | Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
|
||||
|
|
|
|||
|
|
@ -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