diff --git a/install.py b/install.py new file mode 100644 index 0000000..6761347 --- /dev/null +++ b/install.py @@ -0,0 +1,25 @@ +# ============================================================+ +# Identity IoT — install.py +# Run once on a fresh Pico W to install all dependencies. +# Edit SSID and PASS before running. +# ============================================================+ + +SSID = 'YOUR_SSID' +PASS = 'YOUR_PASSWORD' + +# ---- WiFi ---- +import network, utime +wlan = network.WLAN(network.STA_IF) +wlan.active(True) +wlan.connect(SSID, PASS) +print('Connecting to WiFi...') +while not wlan.isconnected(): + utime.sleep(1) +print('Connected:', wlan.ifconfig()[0]) + +# ---- Install ---- +import mip +print('Installing identity-micropython...') +mip.install("https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/package.json") +print('Done. Remove SSID/PASS from install.py before committing.') + \ No newline at end of file diff --git a/package.json b/package.json index 4c82091..eb55f94 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,18 @@ { "urls": [ - ["lib/identity_iot.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot.py"], - ["lib/identity_iot_ed25519.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot_ed25519.py"], - ["lib/identity_iot_aes.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot_aes.py"], - ["lib/sha512.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/sha512.py"] + ["lib/identity_iot.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot.py"], + ["lib/identity_iot_ed25519.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot_ed25519.py"], + ["lib/identity_iot_aes.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot_aes.py"], + ["lib/sha512.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/sha512.py"], + ["boot_manager.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/boot_manager.py"], + ["provisioning_server.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/provisioning_server.py"], + ["node_access_control.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/node_access_control.py"], + ["node_sensor.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/node_sensor.py"], + ["node_relay.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/node_relay.py"], + ["main.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/main.py"] ], "deps": [ ["ssd1306", "latest"] ], - "version": "0.2.0" + "version": "0.3.0" } \ No newline at end of file