Skip to content

Commit

Permalink
Update random_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru authored Nov 27, 2023
1 parent d732c49 commit bae611b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/api/random_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from Adafruit_IO import Client, Feed, RequestError

# Set to your Adafruit IO key.
ADAFRUIT_IO_USERNAME = 'brubell'
ADAFRUIT_IO_KEY = '6ec4b31bd2c54a09be911e0c1909b7ab'
ADAFRUIT_IO_USERNAME = 'YOUR_IO_USERNAME'
ADAFRUIT_IO_KEY = 'YOUR_IO_KEY'

# Create an instance of the REST client.
aio = Client(ADAFRUIT_IO_USERNAME, ADAFRUIT_IO_KEY)
Expand All @@ -25,4 +25,4 @@
# Parse the API response
data = json.dumps(random_data)
data = json.loads(data)
print('Random Data: {0}'.format(data['value']))
print('Random Data: {0}'.format(data['value']))

0 comments on commit bae611b

Please sign in to comment.