balena-os / wifi-connect

Easy WiFi setup for Linux devices from your mobile phone or laptop
Apache License 2.0
1.25k stars 355 forks source link

Changing UI directory by command line, for ui customization #396

Open stefanodinc opened 3 years ago

stefanodinc commented 3 years ago

Hi, i have a raspberry PI4 with rasberrypi 5.10.17-v71+, everything works fine even if i try to change ssid, password, inactivity....but, unfortunately, not the same when i want to change the ui folder for customization purpose.

After i duplicated the ui folder, when i try to launch simply, sudo wifi-connect -u /mynewui or sudo wifi-connect -u ./mynewui or sudo wifi-connect -u mynewui, i connect easily to the wifi-connect AP with my phone but i can only see a webpage error (net: ERR_HTTP_RESPONSE_CODE_FAILURE) instead of index.html page.

Any help would be appreciated.

Thank you.

thienandangthanh commented 7 months ago

Hi @stefanodinc,

I reproduced as you mentioned. But I can't get the same result as yours. I can still access the cloned captive portal.

Here's what I've done.

tree wifi-connect-v4.11.1-linux-armv7hf -L 1
# wifi-connect-v4.11.1-linux-armv7hf
# ├── ui
# └── wifi-connect
cd wifi-connect-v4.11.1-linux-armv7hf
cp -r ui ui-clone
./wifi-connect -u ./ui-clone

Then I access the "WiFi Connect" AP using iPhone with iOS 16. It automatically directs me to the captive portal. Then I can configure the WiFi normally.

suryasid09 commented 3 weeks ago

Hello, Thanks for the great work. I would appreciated help from the community. I am using RPi 4B with 64 bit BookWorm OS. The wifi-connect works great without using the -u ./ui-clone or --ui-directory ./ui-clone. But, with any one of the ui flags, I am also facing the same issue. I think, not sure the problem is that wifi-connect is not able to identify the UI path. I would appreciatedt the help from the community.