Skip to content

Commit 81657b1

Browse files
committed
Change appw to password in examples
1 parent 44cb163 commit 81657b1

17 files changed

+34
-34
lines changed

examples/esp32spi/requests_esp32spi_advanced.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Get WiFi details, ensure these are setup in settings.toml
1616
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
17-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
17+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
1818

1919
# If you are using a board with pre-defined ESP32 Pins:
2020
esp32_cs = DigitalInOut(board.ESP_CS)
@@ -37,7 +37,7 @@
3737
print("Connecting to AP...")
3838
while not radio.is_connected:
3939
try:
40-
radio.connect_AP(ssid, appw)
40+
radio.connect_AP(ssid, password)
4141
except RuntimeError as e:
4242
print("could not connect to AP, retrying: ", e)
4343
continue

examples/esp32spi/requests_esp32spi_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Get WiFi details, ensure these are setup in settings.toml
1616
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
17-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
17+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
1818

1919
# If you are using a board with pre-defined ESP32 Pins:
2020
esp32_cs = DigitalInOut(board.ESP_CS)
@@ -37,7 +37,7 @@
3737
print("Connecting to AP...")
3838
while not radio.is_connected:
3939
try:
40-
radio.connect_AP(ssid, appw)
40+
radio.connect_AP(ssid, password)
4141
except RuntimeError as e:
4242
print("could not connect to AP, retrying: ", e)
4343
continue

examples/wifi/expanded/requests_wifi_adafruit_discord_active_online.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# Get WiFi details, ensure these are setup in settings.toml
3030
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
31-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
31+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
3232

3333

3434
# Converts seconds to minutes/hours/days
@@ -58,7 +58,7 @@ def time_calc(input_time):
5858
requests = adafruit_requests.Session(pool, ssl.create_default_context())
5959
while not wifi.radio.ipv4_address:
6060
try:
61-
wifi.radio.connect(ssid, appw)
61+
wifi.radio.connect(ssid, password)
6262
except ConnectionError as e:
6363
print("Connection Error:", e)
6464
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_discord.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Get WiFi details, ensure these are setup in settings.toml
2323
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
24-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
24+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
2525
Discord_Auth = os.getenv("Discord_Authorization")
2626

2727
# Initialize WiFi Pool (There can be only 1 pool & top of script)
@@ -62,7 +62,7 @@ def time_calc(input_time): # input_time in seconds
6262
requests = adafruit_requests.Session(pool, ssl.create_default_context())
6363
while not wifi.radio.ipv4_address:
6464
try:
65-
wifi.radio.connect(ssid, appw)
65+
wifi.radio.connect(ssid, password)
6666
except ConnectionError as e:
6767
print("Connection Error:", e)
6868
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_fitbit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Get WiFi details, ensure these are setup in settings.toml
4040
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
41-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
41+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
4242

4343
Fitbit_ClientID = os.getenv("Fitbit_ClientID")
4444
Fitbit_Token = os.getenv("Fitbit_Token")
@@ -79,7 +79,7 @@ def time_calc(input_time):
7979
requests = adafruit_requests.Session(pool, ssl.create_default_context())
8080
while not wifi.radio.ipv4_address:
8181
try:
82-
wifi.radio.connect(ssid, appw)
82+
wifi.radio.connect(ssid, password)
8383
except ConnectionError as e:
8484
print("Connection Error:", e)
8585
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Get WiFi details, ensure these are setup in settings.toml
2424
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
25-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
25+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
2626
# Github developer token required.
2727
github_username = os.getenv("Github_username")
2828
github_token = os.getenv("Github_token")
@@ -49,7 +49,7 @@
4949
requests = adafruit_requests.Session(pool, ssl.create_default_context())
5050
while not wifi.radio.ipv4_address:
5151
try:
52-
wifi.radio.connect(ssid, appw)
52+
wifi.radio.connect(ssid, password)
5353
except ConnectionError as e:
5454
print("Connection Error:", e)
5555
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_mastodon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
# Get WiFi details, ensure these are setup in settings.toml
3434
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
35-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
35+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
3636

3737

3838
# Converts seconds in minutes/hours/days
@@ -70,7 +70,7 @@ def time_calc(input_time):
7070
requests = adafruit_requests.Session(pool, ssl.create_default_context())
7171
while not wifi.radio.ipv4_address:
7272
try:
73-
wifi.radio.connect(ssid, appw)
73+
wifi.radio.connect(ssid, password)
7474
except ConnectionError as e:
7575
print("Connection Error:", e)
7676
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_openskynetwork_private.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
# Get WiFi details, ensure these are setup in settings.toml
3434
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
35-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
35+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
3636
osnu = os.getenv("OSN_Username")
3737
osnp = os.getenv("OSN_Password")
3838

@@ -92,7 +92,7 @@ def _format_datetime(datetime):
9292
request = adafruit_requests.Session(pool, ssl.create_default_context())
9393
while not wifi.radio.ipv4_address:
9494
try:
95-
wifi.radio.connect(ssid, appw)
95+
wifi.radio.connect(ssid, password)
9696
except ConnectionError as e:
9797
print("Connection Error:", e)
9898
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_openskynetwork_private_area.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
# Get WiFi details, ensure these are setup in settings.toml
3636
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
37-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
37+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
3838
# No token required, only website login
3939
osnu = os.getenv("OSN_Username")
4040
osnp = os.getenv("OSN_Password")
@@ -107,7 +107,7 @@ def _format_datetime(datetime):
107107
request = adafruit_requests.Session(pool, ssl.create_default_context())
108108
while not wifi.radio.ipv4_address:
109109
try:
110-
wifi.radio.connect(ssid, appw)
110+
wifi.radio.connect(ssid, password)
111111
except ConnectionError as e:
112112
print("Connection Error:", e)
113113
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_openskynetwork_public.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
# Get WiFi details, ensure these are setup in settings.toml
3232
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
33-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
33+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
3434

3535
# Requests URL - icao24 is their endpoint required for a transponder
3636
# example https://opensky-network.org/api/states/all?icao24=a808c5
@@ -71,7 +71,7 @@ def _format_datetime(datetime):
7171
requests = adafruit_requests.Session(pool, ssl.create_default_context())
7272
while not wifi.radio.ipv4_address:
7373
try:
74-
wifi.radio.connect(ssid, appw)
74+
wifi.radio.connect(ssid, password)
7575
except ConnectionError as e:
7676
print("Connection Error:", e)
7777
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_steam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Get WiFi details, ensure these are setup in settings.toml
2222
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
23-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
23+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
2424
# Requires Steam Developer API key
2525
steam_usernumber = os.getenv("steam_id")
2626
steam_apikey = os.getenv("steam_api_key")
@@ -64,7 +64,7 @@
6464
requests = adafruit_requests.Session(pool, ssl.create_default_context())
6565
while not wifi.radio.ipv4_address:
6666
try:
67-
wifi.radio.connect(ssid, appw)
67+
wifi.radio.connect(ssid, password)
6868
except ConnectionError as e:
6969
print("Connection Error:", e)
7070
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_twitch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Get WiFi details, ensure these are setup in settings.toml
2727
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
28-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
28+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
2929
twitch_client_id = os.getenv("Twitch_ClientID")
3030
twitch_client_secret = os.getenv("Twitch_Client_Secret")
3131
# For finding your Twitch User ID
@@ -59,7 +59,7 @@ def time_calc(input_time):
5959
requests = adafruit_requests.Session(pool, ssl.create_default_context())
6060
while not wifi.radio.connected:
6161
try:
62-
wifi.radio.connect(ssid, appw)
62+
wifi.radio.connect(ssid, password)
6363
except ConnectionError as e:
6464
print("Connection Error:", e)
6565
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_twitter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Get WiFi details, ensure these are setup in settings.toml
2929
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
30-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
30+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
3131
tw_userid = os.getenv("TW_userid")
3232
tw_bearer_token = os.getenv("TW_bearer_token")
3333

@@ -60,7 +60,7 @@
6060
requests = adafruit_requests.Session(pool, ssl.create_default_context())
6161
while not wifi.radio.ipv4_address:
6262
try:
63-
wifi.radio.connect(ssid, appw)
63+
wifi.radio.connect(ssid, password)
6464
except ConnectionError as e:
6565
print("Connection Error:", e)
6666
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_api_youtube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
# Get WiFi details, ensure these are setup in settings.toml
2828
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
29-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
29+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
3030
yt_username = os.getenv("YT_username")
3131
yt_token = os.getenv("YT_token")
3232

@@ -60,7 +60,7 @@
6060
requests = adafruit_requests.Session(pool, ssl.create_default_context())
6161
while not wifi.radio.ipv4_address:
6262
try:
63-
wifi.radio.connect(ssid, appw)
63+
wifi.radio.connect(ssid, password)
6464
except ConnectionError as e:
6565
print("Connection Error:", e)
6666
print("Retrying in 10 seconds")

examples/wifi/expanded/requests_wifi_multiple_cookies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
# Get WiFi details, ensure these are setup in settings.toml
2020
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
21-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
21+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
2222

2323
# Connect to the Wi-Fi network
2424
print("Connecting to %s" % ssid)
25-
wifi.radio.connect(ssid, appw)
25+
wifi.radio.connect(ssid, password)
2626

2727
# Set up the requests library
2828
pool = socketpool.SocketPool(wifi.radio)

examples/wifi/requests_wifi_advanced.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Get WiFi details, ensure these are setup in settings.toml
1313
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
14-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
14+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
1515

1616
# Initialize WiFi Pool (There can be only 1 pool & top of script)
1717
radio = wifi.radio
@@ -20,7 +20,7 @@
2020
print("Connecting to AP...")
2121
while not wifi.radio.ipv4_address:
2222
try:
23-
wifi.radio.connect(ssid, appw)
23+
wifi.radio.connect(ssid, password)
2424
except ConnectionError as e:
2525
print("could not connect to AP, retrying: ", e)
2626
print("Connected to", str(radio.ap_info.ssid, "utf-8"), "\tRSSI:", radio.ap_info.rssi)

examples/wifi/requests_wifi_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Get WiFi details, ensure these are setup in settings.toml
1313
ssid = os.getenv("CIRCUITPY_WIFI_SSID")
14-
appw = os.getenv("CIRCUITPY_WIFI_PASSWORD")
14+
password = os.getenv("CIRCUITPY_WIFI_PASSWORD")
1515

1616
# Initialize WiFi Pool (There can be only 1 pool & top of script)
1717
radio = wifi.radio
@@ -20,7 +20,7 @@
2020
print("Connecting to AP...")
2121
while not wifi.radio.ipv4_address:
2222
try:
23-
wifi.radio.connect(ssid, appw)
23+
wifi.radio.connect(ssid, password)
2424
except ConnectionError as e:
2525
print("could not connect to AP, retrying: ", e)
2626
print("Connected to", str(radio.ap_info.ssid, "utf-8"), "\tRSSI:", radio.ap_info.rssi)

0 commit comments

Comments
 (0)