diff --git a/CircuitPython_Mastodon_API_Examples/Read_From_Mastodon/code.py b/CircuitPython_Mastodon_API_Examples/Read_From_Mastodon/code.py index 72fd978f4..37a6ccd95 100644 --- a/CircuitPython_Mastodon_API_Examples/Read_From_Mastodon/code.py +++ b/CircuitPython_Mastodon_API_Examples/Read_From_Mastodon/code.py @@ -14,7 +14,7 @@ import adafruit_requests hashtag = "CircuitPython" # connect to SSID -wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD')) +wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD')) # add your mastodon token as 'mastodon_token' to your settings.toml file headers = {'Authorization': 'Bearer ' + os.getenv('mastodon_token') + 'read:statuses'} diff --git a/CircuitPython_Mastodon_API_Examples/Send_To_Mastodon/code.py b/CircuitPython_Mastodon_API_Examples/Send_To_Mastodon/code.py index bcd47531f..c5e7d495f 100644 --- a/CircuitPython_Mastodon_API_Examples/Send_To_Mastodon/code.py +++ b/CircuitPython_Mastodon_API_Examples/Send_To_Mastodon/code.py @@ -14,7 +14,7 @@ headers = {'Authorization': 'Bearer ' + os.getenv('mastodon_token')} url = 'https://' + os.getenv('mastodon_host') + '/api/v1/statuses' # connect to SSID -wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD')) +wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD')) pool = socketpool.SocketPool(wifi.radio) requests = adafruit_requests.Session(pool, ssl.create_default_context()) diff --git a/NeoPixel_Sprite_Weather_Display/code.py b/NeoPixel_Sprite_Weather_Display/code.py index e10f0a1e8..8c3b34fc2 100644 --- a/NeoPixel_Sprite_Weather_Display/code.py +++ b/NeoPixel_Sprite_Weather_Display/code.py @@ -43,7 +43,7 @@ weather_url += "latitude=%d&longitude=%d&timezone=auto" % (lat, long) weather_url += "¤t_weather=true&temperature_unit=%s&windspeed_unit=mph" % temperature_unit # connect to SSID -wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD')) +wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD')) pool = socketpool.SocketPool(wifi.radio) requests = adafruit_requests.Session(pool, ssl.create_default_context()) diff --git a/PicoW_CircuitPython_HTTP_Server/code.py b/PicoW_CircuitPython_HTTP_Server/code.py index ec6169a1c..2cb1a1001 100644 --- a/PicoW_CircuitPython_HTTP_Server/code.py +++ b/PicoW_CircuitPython_HTTP_Server/code.py @@ -75,7 +75,7 @@ netmask = ipaddress.IPv4Address("255.255.255.0") gateway = ipaddress.IPv4Address("192.168.1.1") wifi.radio.set_ipv4_address(ipv4=ipv4,netmask=netmask,gateway=gateway) # connect to your SSID -wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD')) +wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD')) print("Connected to WiFi") pool = socketpool.SocketPool(wifi.radio) diff --git a/Scrolling_Alphanumeric_Countdown_Clock/code.py b/Scrolling_Alphanumeric_Countdown_Clock/code.py index 123364276..8d7b94d00 100644 --- a/Scrolling_Alphanumeric_Countdown_Clock/code.py +++ b/Scrolling_Alphanumeric_Countdown_Clock/code.py @@ -55,7 +55,7 @@ def reset_on_error(delay, error): try: - wifi.radio.connect(os.getenv("WIFI_SSID"), os.getenv("WIFI_PASSWORD")) + wifi.radio.connect(os.getenv("CIRCUITPY_WIFI_SSID"), os.getenv("CIRCUITPY_WIFI_PASSWORD")) # any errors, reset MCU except Exception as e: # pylint: disable=broad-except reset_on_error(10, e)