intelligent-agent / Refactor

Linux distro for 3D-printers
https://wiki.iagent.no/wiki/Refactor
GNU Affero General Public License v3.0
28 stars 19 forks source link

Add support for setting up a printer as a hotspot #309

Closed eliasbakken closed 2 years ago

eliasbakken commented 2 years ago

It should be possible to set up a printer as a hotspot for direct access. This should be the default behavior if a wifi adapter is available and it has not yet been associated with a different access point.

eliasbakken commented 2 years ago

Attempt is ready following these instructions: https://www.raspberryconnect.com/projects/65-raspberrypi-hotspot-accesspoints/158-raspberry-pi-auto-wifi-hotspot-switch-direct-connection

eliasbakken commented 2 years ago

PR #311 sets up a hotspot on demand consistently, but if the wifi adapter is missing and probably also when removed, the service fails. Instead, the service should start when wlan0 becomes available and stop when it is removed. Also, there is no simple way to search for and choose an access point. This should be handled through a plugin in OctoPrint/Mainsail.

eliasbakken commented 2 years ago

It has now been tested that the script does not fail when a wifi adapter is not present. It remains to be tested that a wifi connection to an AP can be set up.

eliasbakken commented 2 years ago

Basic support has been added.