Splines / raspi-captive-portal

⚡ A Captive Portal & Access Point setup for use with the Raspberry Pi (no Internet access)
https://dominicplein.medium.com/captive-portal-access-point-on-the-raspberry-pi-easy-setup-28a9bf72e998
MIT License
29 stars 7 forks source link

Port possibility/option for Raspberry Pi Zero 2 W #5

Closed blacksheeprobotics closed 1 year ago

blacksheeprobotics commented 1 year ago

I really appreciate the work done here - the captive portal for many of the options out there have been either outdated/requires a long work around/ or requires internet connectivity in order for the feature to work. This was a simple install and execute on the RPi4 right out of the box. Before I start looking this into deeper, what I'm looking to do is do something similar but on the Pi Zero 2 W. However, since your codebase requires connectivity during the install, the Pi Zero 2 W won't be able to do this at the moment. Would your project work if I pull in all the required libs and then run the install or does it require a sequence of installs?

Splines commented 1 year ago

Hey, glad the project was useful to you.

The only place where you will require internet connection during the install is in the setup.py file (as far as I remember 😅). However, this is just to install Node.js and npm dependencies for the server to work, all other setup is mainly copying config files around on your system and registering services. You can use any server software you want, so simply uncomment install_node() and install_server_dependencies() in the setup script and you should be good to go with your own server software.

For example, you could manually install Node.js and respective npm dependencies (e.g. put npm packages in the node_modules folder) on the Pi Zero or use nginx or even just spin up a small Python HTTP server.

Edit: Ah, I forgot the setup-access-point.sh script. It will, too, require Internet connection but as long as you manage to somehow install the required packages on the Pi Zero (e.g. dnsmasq and hostapd), you should be good to go.

blacksheeprobotics commented 1 year ago

Very nice. This is gold - thank you again.

Splines commented 1 year ago

Will close the issue for now, feel free to open it again if necessary. And have fun with your project!