Skip to content

Commit 566a9ac

Browse files
authored
Merge pull request #18 from brentru/update-names-in-secrets-file
Update variable names in examples for default secrets.py
2 parents b00f674 + dbc0ffd commit 566a9ac

11 files changed

+31
-31
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Create an Adafruit IO Client object
4040

4141
.. code-block:: python
4242
43-
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
43+
io = RESTClient(aio_username, aio_key, wifi)
4444
4545
Sending data to an Adafruit IO feed
4646

examples/adafruit_io_simpletest_analog_in.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
# Set your Adafruit IO Username and Key in secrets.py
5252
# (visit io.adafruit.com if you need to create an account,
5353
# or if you need your Adafruit IO key.)
54-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
55-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
54+
aio_username = secrets['aio_username']
55+
aio_key = secrets['aio_key']
5656

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

6060
try:
6161
# Get the 'light' feed from Adafruit IO

examples/adafruit_io_simpletest_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
# Set your Adafruit IO Username and Key in secrets.py
4949
# (visit io.adafruit.com if you need to create an account,
5050
# or if you need your Adafruit IO key.)
51-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
52-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
51+
aio_username = secrets['aio_username']
52+
aio_key = secrets['aio_key']
5353

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

5757
try:
5858
# Get the 'temperature' feed from Adafruit IO

examples/adafruit_io_simpletest_digital_out.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
# Set your Adafruit IO Username and Key in secrets.py
5050
# (visit io.adafruit.com if you need to create an account,
5151
# or if you need your Adafruit IO key.)
52-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
53-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
52+
aio_username = secrets['aio_username']
53+
aio_key = secrets['aio_key']
5454

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

5858
try:
5959
# Get the 'digital' feed from Adafruit IO

examples/adafruit_io_simpletest_esp_at.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
# Set your Adafruit IO Username and Key in secrets.py
6060
# (visit io.adafruit.com if you need to create an account,
6161
# or if you need your Adafruit IO key.)
62-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
63-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
62+
aio_username = secrets['aio_username']
63+
aio_key = secrets['aio_key']
6464

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

6868
try:
6969
# Get the 'temperature' feed from Adafruit IO

examples/adafruit_io_simpletest_feeds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
# Set your Adafruit IO Username and Key in secrets.py
4848
# (visit io.adafruit.com if you need to create an account,
4949
# or if you need your Adafruit IO key.)
50-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
51-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
50+
aio_username = secrets['aio_username']
51+
aio_key = secrets['aio_key']
5252

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

5656
# Create a new 'circuitpython' feed with a description
5757
print('Creating new Adafruit IO feed...')

examples/adafruit_io_simpletest_groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
# Set your Adafruit IO Username and Key in secrets.py
4848
# (visit io.adafruit.com if you need to create an account,
4949
# or if you need your Adafruit IO key.)
50-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
51-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
50+
aio_username = secrets['aio_username']
51+
aio_key = secrets['aio_key']
5252

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

5656
# Create a new group
5757
print('Creating a new Adafruit IO Group...')

examples/adafruit_io_simpletest_metadata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
# Set your Adafruit IO Username and Key in secrets.py
4949
# (visit io.adafruit.com if you need to create an account,
5050
# or if you need your Adafruit IO key.)
51-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
52-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
51+
aio_username = secrets['aio_username']
52+
aio_key = secrets['aio_key']
5353

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

5757
try:
5858
# Get the 'location' feed from Adafruit IO

examples/adafruit_io_simpletest_randomizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
# Set your Adafruit IO Username and Key in secrets.py
5050
# (visit io.adafruit.com if you need to create an account,
5151
# or if you need your Adafruit IO key.)
52-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
53-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
52+
aio_username = secrets['aio_username']
53+
aio_key = secrets['aio_key']
5454

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

5858
# Random Data ID
5959
# (to obtain this value, visit

examples/adafruit_io_simpletest_temperature.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
# Set your Adafruit IO Username and Key in secrets.py
5757
# (visit io.adafruit.com if you need to create an account,
5858
# or if you need your Adafruit IO key.)
59-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
60-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
59+
aio_username = secrets['aio_username']
60+
aio_key = secrets['aio_key']
6161

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

6565
try:
6666
# Get the 'temperature' feed from Adafruit IO

examples/adafruit_io_simpletest_weather.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
# Set your Adafruit IO Username and Key in secrets.py
5151
# (visit io.adafruit.com if you need to create an account,
5252
# or if you need your Adafruit IO key.)
53-
ADAFRUIT_IO_USER = secrets['adafruit_io_user']
54-
ADAFRUIT_IO_KEY = secrets['adafruit_io_key']
53+
aio_username = secrets['aio_username']
54+
aio_key = secrets['aio_key']
5555

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

5959
# Weather Location ID
6060
# (to obtain this value, visit

0 commit comments

Comments
 (0)