From bae611bb49f06012f32ab9ea3e45d35ed1d52e2c Mon Sep 17 00:00:00 2001 From: Brent Rubell Date: Mon, 27 Nov 2023 10:23:12 -0500 Subject: [PATCH] Update random_data.py --- examples/api/random_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/api/random_data.py b/examples/api/random_data.py index a1da2b3..719e026 100644 --- a/examples/api/random_data.py +++ b/examples/api/random_data.py @@ -12,8 +12,8 @@ import json 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) @@ -25,4 +25,4 @@ random_data = aio.receive_random(generator_id) # Parse the API response data = json.dumps(random_data) data = json.loads(data) -print('Random Data: {0}'.format(data['value'])) \ No newline at end of file +print('Random Data: {0}'.format(data['value']))