# Dev: Captive portal based WiFi setup manager

**URL:** <https://community.openenergymonitor.org/t/dev-captive-portal-based-wifi-setup-manager/10536>\
**Category:** Labs\
**Created:** [28 March 2019 18:23 UTC](https://community.openenergymonitor.org/t/dev-captive-portal-based-wifi-setup-manager/10536 "2019-03-28T18:23:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [28 March 2019 18:23 UTC](https://community.openenergymonitor.org/t/dev-captive-portal-based-wifi-setup-manager/10536/1 "2019-03-28T18:23:12Z")

</div>

The [WiFi setup on the emonPi](https://community.openenergymonitor.org/t/new-emonpi-emonbase-network-setup-wizard/4371) 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

> **[GitHub - balena-os/wifi-connect: Easy WiFi setup for Linux devices from your...](https://github.com/balena-os/wifi-connect)**
>
> Easy WiFi setup for Linux devices from your mobile phone or laptop - GitHub - balena-os/wifi-connect: Easy WiFi setup for Linux devices from your mobile phone or laptop

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: [wifi-connect/start.sh at master · balena-os/wifi-connect · GitHub](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: [GitHub - balena-io-playground/balena-wifi-connect-example: Example application to demonstrate balena-wifi-connect](https://github.com/balena-io-projects/balena-wifi-connect-example)

![Screenshot_20190328-180743](https://user-images.githubusercontent.com/758844/55182396-795aba00-5185-11e9-93d9-9f49c91f8faa.png) ![Screenshot_20190328-180955](https://user-images.githubusercontent.com/758844/55182397-795aba00-5185-11e9-98ef-157a6f31ae02.png)

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.
