5 ms·
A bit off topic: I'm looking for a project that starts with an AP. Once someone connected to it; it opens a web page to configure the client (choose which WIFI
by Raed667 6y ago
A bit off topic:
I'm looking for a project that starts with an AP. Once someone connected to it; it opens a web page to configure the client (choose which WIFI from a list, and type the password).
It connects to the chosen WIFI and shuts down the AP.
Anyone here did something similar to that?
- savrajsingh 6y agoStarting point: https://github.com/balena-io/wifi-connect https://github.com/balena-io/wifi-connect
- numpad0 6y agoI’ve seen Raspberry Pi images from Ubiquity Robotics(not Ubiquiti Networks) having similar daemon called “pifi” for command line operation, but this one looks nicer
- flak48 6y agoYep. I didn't do it with a RasPi but with a Chinese chip I found off AliExpress Managed to strip down OpenWRT so it would fit in the meager 16MB RAM/8MB flash. In the init script (a bash script) just checked if a wifi network was configured previously (creds stored in a file). If configured, try to connect to the network for 10 seconds. If it couldn't connect, then switch to AP mode and start a lightHTTPd server listening on 192.168.0.1:80. The only files it served was a simple index.html with some JS that called a bash script via CGI that used a openwrt bash library to scan and list the available wifi networks. Then a HTML form to choose an SSID and enter the password, upon submit call another bash file to connect to the network (switch to client mode) with a timeout. If it fails, the bash would switch back to AP mode. Polling in JS to check if the connection was successful (by checking if AP mode becomes active again)
- jiggunjer 6y agoThis is basically what a chromecast does?
- Raed667 6y agoExactly, I want to replicate that behavior in Raspberry Pi.
- ncrmro 6y agoESP-32 + captive portal? https://github.com/tonyp7/esp32-wifi-manager https://github.com/tonyp7/esp32-wifi-manager
- voltagex_ 6y agoWifiManager for the ESP8266/ESP32 will do that.
- nebalee 6y agohttps://github.com/davesteele/comitup https://github.com/davesteele/comitup does this. No idea how well it works, I have not tried it yet.
- kingosticks 6y agohttps://github.com/billz/raspap-webgui https://github.com/billz/raspap-webgui