On 08/05/2017 01:41 AM, Patrick Patricio Gibbs wrote:
Two scenarios in which we want to control access based
on set schedules. Ideally this would be configured in the luci GUI.
A) Router WiFi Schedule
Faby has a router with LibreMesh in her house, and she wants the WiFi to turn on every
day at 2pm and turn off at 6pm. This could be achieved a number if ways:
- the WiFi radios are enabled only during the desired hours.
To switch on and off the radio sounds the easiest way to me.
Just adding to cron a line to switch it off using "wifi off radio0"
(also a line for radio1 also if the router is also 5 GHz) at 6pm and
another line to switch it on again with "wifi radio0" at 2pm should be
enough. And if you unexpectedly need the AP to be on out of allowed
hours you just reboot the router (unplug and plug) and the AP will be
active again.