secrets.py is a separate text file from your CircuitPython code.py to contain credentials, such as WiFi name & password and Adafruit IO credentials.
Open a text editor and put copy the text below and paste it in. Change the fields to correspond to your WiFi and Adafruit IO account. Save as secrets.py.
# This file is where you keep secret settings, passwords, and tokens! # If you put them in the code you risk committing that info or sharing it secrets = { 'ssid' : 'insert your network name here', 'password' : 'insert your network password here', 'aio_username' : "your-aio-username-here", 'aio_key' : 'your-aio-key-here', 'timezone' : "America/New_York" }
Text editor powered by tinymce.