luci/applications/luci-app-wifischedule
Hosted Weblate 89c3cb878f Translated using Weblate (Ukrainian)
Currently translated at 100.0% (16 of 16 strings)

Translation: OpenWrt/LuCI/applications/hd-idle
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshd-idle/uk/

Translated using Weblate (Ukrainian)

Currently translated at 23.0% (18 of 78 strings)

Translation: OpenWrt/LuCI/applications/frpc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/uk/

Translated using Weblate (Ukrainian)

Currently translated at 22.3% (21 of 94 strings)

Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/uk/

Translated using Weblate (Ukrainian)

Currently translated at 23.4% (26 of 111 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/uk/

Translated using Weblate (Ukrainian)

Currently translated at 40.3% (21 of 52 strings)

Translation: OpenWrt/LuCI/applications/ttyd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsttyd/uk/

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (34 of 34 strings)

Translation: OpenWrt/LuCI/applications/wifischedule
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/uk/

Translated using Weblate (Ukrainian)

Currently translated at 27.5% (8 of 29 strings)

Translation: OpenWrt/LuCI/applications/vpnbypass
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/uk/

Translated using Weblate (Ukrainian)

Currently translated at 7.5% (14 of 186 strings)

Translation: OpenWrt/LuCI/applications/unbound
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/uk/

Translated using Weblate (Ukrainian)

Currently translated at 16.5% (31 of 187 strings)

Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/uk/

Translated using Weblate (Ukrainian)

Currently translated at 18.5% (20 of 108 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/uk/

Translated using Weblate (Ukrainian)

Currently translated at 38.4% (10 of 26 strings)

Translation: OpenWrt/LuCI/applications/dcwapd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/uk/

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (12 of 12 strings)

Translation: OpenWrt/LuCI/applications/bcp38
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbcp38/uk/

Translated using Weblate (Ukrainian)

Currently translated at 14.3% (28 of 195 strings)

Translation: OpenWrt/LuCI/applications/banip
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/uk/

Translated using Weblate (Ukrainian)

Currently translated at 46.6% (84 of 180 strings)

Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/uk/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (180 of 180 strings)

Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/zh_Hans/

Translated using Weblate (Ukrainian)

Currently translated at 16.8% (19 of 113 strings)

Translated using Weblate (Ukrainian)

Currently translated at 59.3% (79 of 133 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (46 of 46 strings)

Translated using Weblate (Ukrainian)

Currently translated at 16.4% (32 of 195 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (212 of 212 strings)

Translated using Weblate (Ukrainian)

Currently translated at 19.2% (66 of 343 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (25 of 25 strings)

Translated using Weblate (Ukrainian)

Currently translated at 98.7% (1920 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/uk/

Translated using Weblate (Ukrainian)

Currently translated at 7.5% (14 of 186 strings)

Translation: OpenWrt/LuCI/applications/unbound
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/uk/

Translated using Weblate (Ukrainian)

Currently translated at 27.0% (36 of 133 strings)

Translated using Weblate (Ukrainian)

Currently translated at 98.7% (1920 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/uk/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (49 of 49 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (113 of 113 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (195 of 195 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (31 of 31 strings)

Translation: OpenWrt/LuCI/applications/yggdrasil
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsyggdrasil/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (13 of 13 strings)

Translation: OpenWrt/LuCI/applications/shairplay
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshairplay/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (65 of 65 strings)

Translation: OpenWrt/LuCI/applications/dnscrypt-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdnscrypt-proxy/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (31 of 31 strings)

Translation: OpenWrt/LuCI/applications/dynapoint
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdynapoint/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (25 of 25 strings)

Translation: OpenWrt/LuCI/applications/cshark
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (123 of 123 strings)

Translation: OpenWrt/LuCI/applications/nlbwmon
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnlbwmon/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (133 of 133 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (44 of 44 strings)

Translation: OpenWrt/LuCI/applications/ser2net
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsser2net/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (116 of 116 strings)

Translation: OpenWrt/LuCI/applications/radicale
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (168 of 168 strings)

Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (23 of 23 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (102 of 102 strings)

Translated using Weblate (Ukrainian)

Currently translated at 17.5% (37 of 211 strings)

Translation: OpenWrt/LuCI/applications/dockerman
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdockerman/uk/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (50 of 50 strings)

Translation: OpenWrt/LuCI/applications/acme
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/zh_Hant/

Translated using Weblate (Ukrainian)

Currently translated at 21.7% (17 of 78 strings)

Translation: OpenWrt/LuCI/applications/frpc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/uk/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (94 of 94 strings)

Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/zh_Hant/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (111 of 111 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/zh_Hans/

Translated using Weblate (Ukrainian)

Currently translated at 16.5% (31 of 187 strings)

Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/uk/

Translated using Weblate (Ukrainian)

Currently translated at 14.0% (8 of 57 strings)

Translation: OpenWrt/LuCI/applications/nft-qos
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnft-qos/uk/

Translated using Weblate (Ukrainian)

Currently translated at 38.4% (10 of 26 strings)

Translation: OpenWrt/LuCI/applications/dcwapd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/uk/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (80 of 80 strings)

Translation: OpenWrt/LuCI/applications/shadowsocks-libev
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/zh_Hant/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (195 of 195 strings)

Translation: OpenWrt/LuCI/applications/banip
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (180 of 180 strings)

Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/zh_Hans/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (29 of 29 strings)

Translation: OpenWrt/LuCI/applications/vpnbypass
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (170 of 170 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/zh_Hant/

Translated using Weblate (Ukrainian)

Currently translated at 11.2% (15 of 133 strings)

Translated using Weblate (Ukrainian)

Currently translated at 16.4% (32 of 195 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (191 of 191 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (343 of 343 strings)

Translated using Weblate (Ukrainian)

Currently translated at 19.2% (66 of 343 strings)

Translated using Weblate (Ukrainian)

Currently translated at 23.1% (19 of 82 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (1944 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hant/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (1944 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/

Translated using Weblate (Ukrainian)

Currently translated at 98.8% (1922 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/uk/

Translated using Weblate (Ukrainian)

Currently translated at 84.5% (1644 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/uk/

Translated using Weblate (Russian)

Currently translated at 100.0% (1944 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (113 of 113 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 96.7% (30 of 31 strings)

Translation: OpenWrt/LuCI/applications/yggdrasil
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsyggdrasil/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (33 of 33 strings)

Translation: OpenWrt/LuCI/applications/vnstat2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat2/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (168 of 168 strings)

Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/zh_Hant/

Translated using Weblate (Ukrainian)

Currently translated at 16.1% (5 of 31 strings)

Translation: OpenWrt/LuCI/applications/yggdrasil
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsyggdrasil/uk/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (111 of 111 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/zh_Hant/

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (20 of 20 strings)

Translation: OpenWrt/LuCI/applications/wireguard
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswireguard/uk/

Translated using Weblate (Ukrainian)

Currently translated at 15.5% (29 of 187 strings)

Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/uk/

Translated using Weblate (Ukrainian)

Currently translated at 18.5% (20 of 108 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/uk/

Translated using Weblate (Ukrainian)

Currently translated at 14.3% (28 of 195 strings)

Translation: OpenWrt/LuCI/applications/banip
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/uk/

Translated using Weblate (Ukrainian)

Currently translated at 46.6% (84 of 180 strings)

Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/uk/

Translated using Weblate (Italian)

Currently translated at 100.0% (20 of 20 strings)

Translation: OpenWrt/LuCI/applications/wireguard
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswireguard/it/

Translated using Weblate (Italian)

Currently translated at 100.0% (6 of 6 strings)

Translation: OpenWrt/LuCI/applications/olsr-services
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr-services/it/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (61 of 61 strings)

Translation: OpenWrt/LuCI/applications/attendedsysupgrade
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/zh_Hant/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (180 of 180 strings)

Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/zh_Hans/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (29 of 29 strings)

Translation: OpenWrt/LuCI/applications/vpnbypass
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (170 of 170 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/zh_Hant/

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (187 of 187 strings)

Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/zh_Hant/

Translated using Weblate (Italian)

Currently translated at 97.7% (43 of 44 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (32 of 32 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 92.0% (1790 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hant/

Translated using Weblate (Ukrainian)

Currently translated at 79.7% (1550 of 1944 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/uk/

Co-authored-by: G R <gradaellig@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Vladdrako <vladdrako007@gmail.com>
Co-authored-by: 王攀 <41330784@qq.com>
Signed-off-by: G R <gradaellig@gmail.com>
Signed-off-by: Vladdrako <vladdrako007@gmail.com>
Signed-off-by: 王攀 <41330784@qq.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfwknopd/it/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsqos/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsrp-pppoe-server/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswatchcat/uk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/lucimodulesluci-mod-dashboard/zh_Hant/
Translation: OpenWrt/LuCI/applications/firewall
Translation: OpenWrt/LuCI/applications/fwknopd
Translation: OpenWrt/LuCI/applications/minidlna
Translation: OpenWrt/LuCI/applications/nut
Translation: OpenWrt/LuCI/applications/olsr
Translation: OpenWrt/LuCI/applications/openvpn
Translation: OpenWrt/LuCI/applications/qos
Translation: OpenWrt/LuCI/applications/radicale2
Translation: OpenWrt/LuCI/applications/rp-pppoe-server
Translation: OpenWrt/LuCI/applications/splash
Translation: OpenWrt/LuCI/applications/statistics
Translation: OpenWrt/LuCI/applications/transmission
Translation: OpenWrt/LuCI/applications/watchcat
Translation: OpenWrt/LuCI/modules/luci-mod-dashboard
2022-04-18 19:54:58 +03:00
..
luasrc applications: add ACL dependency annotations to legacy controllers 2020-04-19 17:17:26 +02:00
po Translated using Weblate (Ukrainian) 2022-04-18 19:54:58 +03:00
root/usr/share/rpcd/acl.d treewide: stage ACL rules for legacy applications 2020-04-10 23:21:35 +02:00
Makefile treewide: move server side CBI support to luci-compat 2019-11-03 20:49:31 +01:00
README.md treewide: Fix typos in comments 2018-10-10 15:00:07 +08:00

wifischedule

Turns WiFi on and off according to a schedule on an openwrt router

Components

  • wifischedule: Shell script that creates cron jobs based on configuration provided in UCI and does all the other logic of enabling and disabling wifi with the use of /sbin/wifi and /usr/bin/iwinfo. Can be used standalone.
  • luci-app-wifischedule: LUCI frontend for creating the UCI configuration and triggering the actions. Depends on wifischedule.

Use cases

You can create user-defined events when to enable or disable WiFi. There are various use cases why you would like to do so:

  1. Reduce power consumption and therefore reduce CO2 emissions.
  2. Reduce emitted electromagnatic radiation.
  3. Force busincess hours when WiFi is available.

Regarding 1: Please note, that you need to unload the wireless driver modules in order to get the most effect of saving power. In my test scenario only disabling WiFi saves about ~0.4 Watt, unloading the modules removes another ~0.4 Watt.

Regarding 2: Think of a wireless accesspoint e.g. in your bedrom, kids room where you want to remove the amount of radiation emitted.

Regarding 3: E.g. in a company, why would wireless need to be enabled weekends if no one is there working? Or think of an accesspoint in your kids room when you want the youngsters to sleep after 10 pm instead of facebooking...

Configuration

You can create an arbitrary number of schedule events. Please note that there is on sanity check done whether the start / stop times overlap or make sense. If start and stop time are equal, this leads to disabling the WiFi at the given time.

Logging if enabled is done to the file /var/log/wifi_schedule.log and can be reviewed through the "View Logfile" tab. The cron jobs created can be reviewed through the "View Cron Jobs" tab.

Please note that the "Unload Modules" function is currently considered as experimental. You can manually add / remove modules in the text field. The button "Determine Modules Automatically" tries to make a best guess determining regarding the driver module and its dependencies. When un-/loading the modules, there is a certain number of retries (module_load) performed.

The option "Force disabling wifi even if stations associated" does what it says - when activated it simply shuts down WiFi. When unchecked, its checked every recheck_interval minutes if there are still stations associated. Once the stations disconnect, WiFi is disabled.

Please note, that the parameters module_load and recheck_interval are only accessible through uci.

UCI Configuration wifi_schedule

UCI configuration file: /etc/config/wifi_schedule:

config global
        option logging '0'
        option enabled '0'
        option recheck_interval '10'
        option modules_retries '10'

config entry 'Businesshours'
        option enabled '0'
        option daysofweek 'Monday Tuesday Wednesday Thursday Friday'
        option starttime '06:00'
        option stoptime '22:00'
        option forcewifidown '0'

config entry 'Weekend'
        option enabled '0'
        option daysofweek 'Saturday Sunday'
        option starttime '00:00'
        option stoptime '00:00'
        option forcewifidown '1'

Script: wifi_schedule.sh

This is the script that does the work. Make your changes to the UCI config file: /etc/config/wifi_schedule

Then call the script as follows in order to get the necessary cron jobs created:

wifi_schedule.sh cron

All commands:

wifi_schedule.sh cron|start|stop|forcestop|recheck|getmodules|savemodules|help

    cron: Create cronjob entries.
    start: Start wifi.
    stop: Stop wifi gracefully, i.e. check if there are stations associated and if so keep retrying.
    forcestop: Stop wifi immediately.
    recheck: Recheck if wifi can be disabled now.
    getmodules: Returns a list of modules used by the wireless driver(s)
    savemodules: Saves a list of automatic determined modules to UCI
    help: This description.