Community
OpenEnergyMonitor

Community

Dev: Captive portal based WiFi setup manager

(Glyn Hudson) #1

The WiFi setup on the emonPi has never supported captive portal and can be quite involved to maintain.

I’ve just tested out this captive portal based WiFi setup manager on a RaspberryPi 3B+ running Stretch

Works really well, to install run:

bash <(curl -L https://github.com/balena-io/wifi-connect/raw/master/scripts/raspbian-install.sh)

Then to start run:

$ sudo wifi-connect --portal-ssid WiFiTest

The start command could be started by a script that checks for wifi connectivity like this one: https://github.com/balena-io/wifi-connect/blob/master/scripts/start.sh

An example of using WiFi Connect in a docker based Python project can be found here: https://github.com/balena-io-projects/balena-wifi-connect-example

This post is just to document this test, we have no immediate plans to deploy this on the emonPi but good to know for future developments.

0 Likes