Skip to content

Commit

Permalink
Merge pull request #18 from brentru/update-names-in-secrets-file
Browse files Browse the repository at this point in the history
Update variable names in examples for default secrets.py
  • Loading branch information
brentru committed Mar 14, 2019
2 parents b00f674 + dbc0ffd commit 566a9ac
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Create an Adafruit IO Client object

.. code-block:: python
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)
Sending data to an Adafruit IO feed

Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_analog_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

try:
# Get the 'light' feed from Adafruit IO
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

try:
# Get the 'temperature' feed from Adafruit IO
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_digital_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

try:
# Get the 'digital' feed from Adafruit IO
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_esp_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

try:
# Get the 'temperature' feed from Adafruit IO
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

# Create a new 'circuitpython' feed with a description
print('Creating new Adafruit IO feed...')
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

# Create a new group
print('Creating a new Adafruit IO Group...')
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

try:
# Get the 'location' feed from Adafruit IO
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_randomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

# Random Data ID
# (to obtain this value, visit
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

try:
# Get the 'temperature' feed from Adafruit IO
Expand Down
6 changes: 3 additions & 3 deletions examples/adafruit_io_simpletest_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
# Set your Adafruit IO Username and Key in secrets.py
# (visit io.adafruit.com if you need to create an account,
# or if you need your Adafruit IO key.)
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
aio_username = secrets['aio_username']
aio_key = secrets['aio_key']

# Create an instance of the Adafruit IO REST client
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
io = RESTClient(aio_username, aio_key, wifi)

# Weather Location ID
# (to obtain this value, visit
Expand Down

0 comments on commit 566a9ac

Please sign in to comment.