Skip to content

Update variable names in examples for default secrets.py #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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