OnionUI / MainUI-issues

MainUI is Onion's frontend, unfortunately it's closed source. Any issue will be directed here and hopefully Miyoo will see it and fix them.
1 stars 0 forks source link

[MainUI] - Feature Request : a flag to trigger hotspot icon in top bar #4

Open Aemiii91 opened 1 year ago

Aemiii91 commented 1 year ago

As the hotspot feature was not in MainUI Miyoo354 we have re-created it. But we have some difficulties with the hotspot MainUI top bar icon.

A flag to trigger hotspot icon in top bar (will overwrite WiFi icon even if wpa_supp is running)

XK9274 commented 1 year ago

The feature request:

It would be useful for us to have some sort of flag we can set in a config file that would allow us to manually force the WIFI icon OFF and the hotspot icon ON. This is due to how we're having to run the hotspot.

If we could set hotspot: 1 in system.json and ask MainUI to respect this flag when it's set to 1, then show the hotspot icon regardless of whether the hotspot is running or not. This would give us manual control over the icons (in our hotspot launch function we could just set hotspot to 1 and we're done, no need to kill anything apart from putting wlan0 down to stop the wifi connection)

The reasoning behind it:

The problem arises from how we're having to run the hotspot, if we kill wpa_supplicant and run hostapd on wlan1 or 0 then the hotspot works fine and the icon shows but this has the side effect of MainUI noticing wpa_supplicant is not running, causing it to be relaunched, killing the hotspot and restarting wifi. The compromise is to run the hotspot on wlan1 but leave the wpa_supplicant running, putting wlan0 down.

Testing

From my experiments it seems MainUI will show:

The Wi-Fi icon if:

The hotspot icon if:

No icon (but hotspot working) if :