Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardoc/wifi-switcher
Tildagon - mutli wifi switcher
https://github.com/richardoc/wifi-switcher
tildagon-app
Last synced: 15 days ago
JSON representation
Tildagon - mutli wifi switcher
- Host: GitHub
- URL: https://github.com/richardoc/wifi-switcher
- Owner: RichardoC
- License: mit
- Created: 2024-09-05T22:45:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T21:27:42.000Z (4 months ago)
- Last Synced: 2024-12-06T21:14:20.110Z (about 2 months ago)
- Topics: tildagon-app
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wifi-switcher
For switching between multiple wifi networks on the Tildagon. This will not change your actual WiFi settings which will reset after a restart.
## How to set networks
When connected with mpremote, set the list of networks.
The networks must be a json of the following format. Leave username blank if it's not enterprise wifi.
```json
[
{
"ssid": "SOME_NETWORK",
"password": "SOME_PASSWORD",
"username": "SOME_ENTERPRISE_USERNAME"
},
{
"ssid": "ANOTHER_NETWORK",
"password": "ANOTHER PASSWORD",
"username": ""
}
]
```### Commands using mpremote
This assumes you have connected to the device using [mpremote](https://tildagon.badge.emfcamp.org/using-the-badge/connect-to-wifi/#option-4-use-mpremote-to-edit-the-settings-file)
```python
import settings
settings.set("RichardoC_wifi_switcher", """[
{
"ssid": "abc",
"password": "abc",
"username": ""
},
{
"ssid": "def",
"password": "def",
"username": "example"
}
]""")# confirm it was set correctly
import json
json.loads(settings.get("RichardoC_wifi_switcher"))[
{
"ssid": "abc",
"password": "abc",
"username": ""
},
{
"ssid": "def",
"password": "def",
"username": "example"
}
]# save the updated networks
settings.save()```