From 275345f6427eb47dcc14496ca59d8acdb7881acb Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 3 Jun 2026 21:47:32 +0200 Subject: [PATCH] feat: config_example.json, updated gitignore and package.json v0.2.0 --- .gitignore | 4 ++-- config_example.json | 15 +++++++++++++++ package.json | 9 +++++---- 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 config_example.json diff --git a/.gitignore b/.gitignore index e43a5cc..c5b0598 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,9 @@ *.mpy # Secrets -main.py wifi_config.py config.py +config.json tenant_*.py # OS @@ -14,4 +14,4 @@ Thumbs.db # IDE .vscode/ .idea/ -__pycache__/ +__pycache__/ \ No newline at end of file diff --git a/config_example.json b/config_example.json new file mode 100644 index 0000000..b376bc4 --- /dev/null +++ b/config_example.json @@ -0,0 +1,15 @@ +{ + "wifi_ssid": "YOUR_SSID", + "wifi_pass": "YOUR_PASSWORD", + "wifi_static": false, + "wifi_ip": "192.168.1.50", + "wifi_mask": "255.255.255.0", + "wifi_gw": "192.168.1.1", + "wifi_dns": "8.8.8.8", + "comm_key": "YOUR_32_CHAR_BOOTSTRAP_KEY......", + "comm_iv": "YOUR_16_CHAR_IV.", + "base_url": "https://api.parta.app/API/V1/identity_layer/identity_iot/", + "tenant_id": 1, + "node_type": "sensor", + "node_label": "pico-01" +} \ No newline at end of file diff --git a/package.json b/package.json index 5377040..62a13d7 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "urls": [ - ["identity_iot.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot.py"], - ["identity_iot_ed25519.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot_ed25519.py"], - ["identity_iot_aes.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/identity_iot_aes.py"], - ["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"], + ["main.py", "https://git.aeonianengineering.net/wide/identity-micropython/raw/branch/main/main.py"] ], "deps": [ ["ssd1306", "latest"]