Page 1 of 1
enable or disable guest wifi on schedule
Posted: Fri Jun 30, 2017 10:40 pm
by alex3137
Hello
Is it possible to schedule when the guest wifi is enabled ?
Thanks
Re: enable or disable guest wifi on schedule
Posted: Fri Jun 30, 2017 11:11 pm
by Lantis
You'd need to write a script to turn it on/off, then trigger that with CRON.
There's plenty of examples on the internet.
To just disable the guest network, you'll want to create an option called "disabled" under the wifi-iface and set it to 1, then restart the "wifi"
Re: enable or disable guest wifi on schedule
Posted: Sat Jul 01, 2017 12:48 am
by ektus
There's the "WIFI Schedule" plugin that can toggle wifi on a daily or weekly schedule. Maybe that one could be expanded to not only toggle the entire wifi, but also parts of it (guest, 2.4GHz, 5GHz).
Regards
Ektus.
Re: enable or disable guest wifi on schedule
Posted: Sat Jul 01, 2017 1:14 am
by Lantis
Are you volunteering
But yes that would be one way of doing it.
Re: enable or disable guest wifi on schedule
Posted: Sun Jul 02, 2017 12:28 am
by alex3137
Lantis wrote:You'd need to write a script to turn it on/off, then trigger that with CRON.
There's plenty of examples on the internet.
To just disable the guest network, you'll want to create an option called "disabled" under the wifi-iface and set it to 1, then restart the "wifi"
Ok thanks I should be able to write this.
Re: enable or disable guest wifi on schedule
Posted: Sun Jul 02, 2017 1:21 am
by alex3137
Can you confirm in which file and what is the name of the guest wifi interface ?
I looked in /etc/config/network and see nothing corresponding to the guest wifi interface.
Re: enable or disable guest wifi on schedule
Posted: Sun Jul 02, 2017 2:25 am
by Lantis
It will be in /etc/config/wireless
It will be a section with a name of
"ap_gn_g" or "ap_gn_a"
The "gn" meaning Guest Network, and the G or A meaning 2.4 or 5GHz networks.