WiFi schedule: more than one wireless network


I would like to use the package wifi-schedule to turn one of my wifi networks on and off, but the package just switched the hole radio chip on or off, so it would effect all wireless networks.

Is there any option that will select only one specific network? If so: can this option work with luci-wifi-schedule as well?

did you make this to work?
as i also want the same thing, to select ssid to disable and not wifi.

Unfortunately not in a very sophisticated way . :frowning:

I wrote text files for each wifi network, containing lines like this:

Mo 0900 1700
Tu 0800 1600

I safed these file as wifi1.txt, wifi2.txt, and every morning at 3 o'clock these files will be parsed by a bash script, which will turn the starting and ending time into an at-job like this:

echo "/etc/config/wifi1-on.sh" | at "$START"
echo "/etc/config/wifi1-off.sh" | at "$ENDE"

The on-and-off-scripts look like this:

/sbin/uci set wireless.@wifi-iface[1].disabled=0  
/sbin/uci commit wireless
/sbin/uci set wireless.@wifi-iface[1].disabled=1  
/sbin/uci commit wireless

By parsing the text files once per day in the early morning and transforming them into at-jobs, cron does not need to be called more then once a day. There might be a slight fallacy in this concept, because I don't yet know if at will be called once per minute to see if there's a pending job. If that is true, then I will have to reconstruct the hole thing.

1 Like