Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: allow to configure WIFI by editing files on the SD card #141

Open
cdupont opened this issue Feb 3, 2021 · 3 comments
Open

Feature: allow to configure WIFI by editing files on the SD card #141

cdupont opened this issue Feb 3, 2021 · 3 comments
Assignees

Comments

@cdupont
Copy link
Contributor

cdupont commented Feb 3, 2021

The idea is to allow to configure the WIFI just after flashing the SD card, by mounting the SD on the PC.
This way, no AP mode, Ethernet cable or HDMI screen is needed.
This is what Rasbian do for headless:
https://www.raspberrypi.org/documentation/configuration/wireless/headless.md

From Moji:
in order to force the pi not to go to AP mode, please set that wpa_supplicant.conf then create an empty file on the root of wazigate with this name:
~/waziup-gateway/.default_ap_done
so the wazigate knows that the WiFi is being pre-configured

@cdupont
Copy link
Contributor Author

cdupont commented Feb 3, 2021

I tried this, but didn't work: I can't connect with WIFI

@cdupont
Copy link
Contributor Author

cdupont commented Feb 3, 2021

Which wpa_supplicant.conf do I need to modify? The one in /boot or /etc/wpa_supplicant/ ?

@mojtaba-esk
Copy link
Contributor

ah one thing I forgot, after the configuration above you need to run:

bash /home/pi/waziup-gateway/wazigate-host/start_wifi.sh

or on SD card, you can add it to this file, right above the wifi scripts:
/home/pi/waziup-gateway/start.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants