WebThingsIO / gateway

WebThings Gateway
http://webthings.io/gateway
Mozilla Public License 2.0
2.61k stars 336 forks source link

[Snap] Implement Wi-Fi hotspot on first boot #3156

Open benfrancis opened 2 months ago

benfrancis commented 2 months ago

As a user I want to connect to the gateway as a Wi-Fi hotspot when it first boots, so that I can connect the gateway to a network of my choosing.

Currently with Raspbian-based images when the gateway first boots it acts as a Wi-Fi hotspot with a captive portal which a user can connect to from another device (e.g. smartphone/tablet/laptop) in order to connect the gateway to a Wi-Fi network.

This will need implementing separately for the snap package when bundled with a custom Ubuntu Core OS image. This could be part of the gateway snap, or possibly a separate one.

For inspiration see:

benfrancis commented 6 days ago

See wifi-setup.ts for the Wi-Fi hotspot implementation used when running on Raspbian.

ogra1 commented 2 hours ago

Have you yet tried to simply turn on this feature as-is and capture all errors/denials from the snap env. ? As long as it uses standard features in the backend it should work similar to the examples you listed in the initial post, we'd just need a list of interfaces (from snappy-debug) and add potentially missing binaries to the snap as long as it uses standard features and tools at least.