Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedroaraoz/wifimanager
WiFi Manager for the Pico W - MicroPython
https://github.com/pedroaraoz/wifimanager
micropython pico-w wifimanager
Last synced: about 2 months ago
JSON representation
WiFi Manager for the Pico W - MicroPython
- Host: GitHub
- URL: https://github.com/pedroaraoz/wifimanager
- Owner: PedroAraoz
- License: mit
- Created: 2024-10-15T01:57:40.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T23:00:47.000Z (2 months ago)
- Last Synced: 2024-11-09T13:03:49.653Z (about 2 months ago)
- Topics: micropython, pico-w, wifimanager
- Language: Python
- Homepage:
- Size: 60.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WiFiManager
Used to enable WiFi access to pico W projects without the need to hardcode credentials. Especially useful for projects that are going to be moving around or for when you don't know the WiFi at build time.### Installing
#### mip
```python
mip.install("github:PedroAraoz/WifiManager/wifimanager.py")
```#### Manually
Download the `wifimanager.py` file and upload it to your pico with [Thonny](https://thonny.org) or [MicroPico](https://github.com/paulober/MicroPico)### How it works
Tries to load credentials from the `credentials` file. If they are not present or if they are incorrect, it will create an access point in which you can connect and through a webpage, load the credentials to be saved in plaintext.There is **NO** security or encryption anywhere - use at your own risk!
#### Configuration
You can change the default `ssid` and `password` for the access point and also the `timeout` of how many seconds the manager will wait to connect to WiFi before starting the access point.
```python
# Configure custom credentials and timeout
WiFiManager(
ssid='YourCustomSSID',
password='YourCustomPassword',
timeout=20 #seconds
)
```##### Website
The website that the access point creates can modified by changing the `_webpage()` method. You can style it to your preference.### Contributions
Any contribution to the project is greatly appreciated, just open a PR.