Currently translated at 100.0% (18 of 18 strings) Translation: OpenWrt/LuCI/applications/nextdns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnextdns/ru/ Translated using Weblate (Polish) Currently translated at 100.0% (190 of 190 strings) Translation: OpenWrt/LuCI/applications/banip Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/pl/ Translated using Weblate (Russian) Currently translated at 74.7% (139 of 186 strings) Translation: OpenWrt/LuCI/applications/unbound Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/ru/ Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (190 of 190 strings) Translation: OpenWrt/LuCI/applications/banip Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/pt_BR/ Translated using Weblate (Vietnamese) Currently translated at 3.2% (4 of 125 strings) Translation: OpenWrt/LuCI/applications/privoxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsprivoxy/vi/ Translated using Weblate (Vietnamese) Currently translated at 23.0% (3 of 13 strings) Translation: OpenWrt/LuCI/applications/pagekitec Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspagekitec/vi/ Translated using Weblate (Vietnamese) Currently translated at 50.0% (3 of 6 strings) Translation: OpenWrt/LuCI/applications/olsr-services Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr-services/vi/ Translated using Weblate (Russian) Currently translated at 100.0% (191 of 191 strings) Translation: OpenWrt/LuCI/applications/travelmate Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/ru/ Translated using Weblate (Russian) Currently translated at 100.0% (197 of 197 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/ru/ Translated using Weblate (Russian) Currently translated at 100.0% (36 of 36 strings) Translated using Weblate (Vietnamese) Currently translated at 9.6% (6 of 62 strings) Translation: OpenWrt/LuCI/applications/ocserv Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/vi/ Translated using Weblate (Vietnamese) Currently translated at 6.4% (8 of 124 strings) Translation: OpenWrt/LuCI/applications/nlbwmon Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnlbwmon/vi/ Translated using Weblate (Vietnamese) Currently translated at 4.1% (7 of 170 strings) Translation: OpenWrt/LuCI/applications/mwan3 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/vi/ Translated using Weblate (Vietnamese) Currently translated at 8.3% (4 of 48 strings) Translation: OpenWrt/LuCI/applications/mjpg-streamer Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/vi/ Translated using Weblate (Vietnamese) Currently translated at 3.2% (4 of 125 strings) Translation: OpenWrt/LuCI/applications/pbr Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspbr/vi/ Translated using Weblate (Vietnamese) Currently translated at 2.0% (1 of 48 strings) Translated using Weblate (Vietnamese) Currently translated at 33.3% (1 of 3 strings) Translated using Weblate (Vietnamese) Currently translated at 31.2% (5 of 16 strings) Translation: OpenWrt/LuCI/applications/hd-idle Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshd-idle/vi/ Translated using Weblate (Vietnamese) Currently translated at 0.9% (2 of 211 strings) Translation: OpenWrt/LuCI/applications/dockerman Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdockerman/vi/ Translated using Weblate (Vietnamese) Currently translated at 6.2% (3 of 48 strings) Translation: OpenWrt/LuCI/applications/acme Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/vi/ Translated using Weblate (Vietnamese) Currently translated at 3.5% (1 of 28 strings) Translation: OpenWrt/LuCI/applications/acl Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacl/vi/ Translated using Weblate (Vietnamese) Currently translated at 3.2% (2 of 62 strings) Translation: OpenWrt/LuCI/applications/sqm Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/vi/ Translated using Weblate (Vietnamese) Currently translated at 4.4% (4 of 89 strings) Translation: OpenWrt/LuCI/applications/frpc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/vi/ Translated using Weblate (Vietnamese) Currently translated at 9.0% (4 of 44 strings) Translation: OpenWrt/LuCI/applications/ser2net Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsser2net/vi/ Translated using Weblate (Vietnamese) Currently translated at 9.0% (3 of 33 strings) Translation: OpenWrt/LuCI/applications/vnstat2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat2/vi/ Translated using Weblate (Vietnamese) Currently translated at 3.2% (1 of 31 strings) Translation: OpenWrt/LuCI/applications/yggdrasil Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsyggdrasil/vi/ Translated using Weblate (Vietnamese) Currently translated at 11.7% (2 of 17 strings) Translation: OpenWrt/LuCI/applications/omcproxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsomcproxy/vi/ Translated using Weblate (Vietnamese) Currently translated at 5.7% (3 of 52 strings) Translation: OpenWrt/LuCI/applications/ttyd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsttyd/vi/ Translated using Weblate (Vietnamese) Currently translated at 5.8% (2 of 34 strings) Translation: OpenWrt/LuCI/applications/wifischedule Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/vi/ Translated using Weblate (Vietnamese) Currently translated at 3.2% (6 of 186 strings) Translation: OpenWrt/LuCI/applications/unbound Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/vi/ Translated using Weblate (Vietnamese) Currently translated at 17.6% (3 of 17 strings) Translation: OpenWrt/LuCI/applications/udpxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsudpxy/vi/ Translated using Weblate (Vietnamese) Currently translated at 2.6% (5 of 191 strings) Translation: OpenWrt/LuCI/applications/travelmate Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/vi/ Translated using Weblate (Vietnamese) Currently translated at 2.3% (3 of 128 strings) Translation: OpenWrt/LuCI/applications/simple-adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/vi/ Translated using Weblate (Vietnamese) Currently translated at 5.0% (4 of 80 strings) Translation: OpenWrt/LuCI/applications/shadowsocks-libev Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/vi/ Translated using Weblate (Vietnamese) Currently translated at 15.3% (2 of 13 strings) Translation: OpenWrt/LuCI/applications/pagekitec Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspagekitec/vi/ Translated using Weblate (Vietnamese) Currently translated at 33.3% (2 of 6 strings) Translation: OpenWrt/LuCI/applications/olsr-services Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr-services/vi/ Translated using Weblate (Vietnamese) Currently translated at 8.0% (5 of 62 strings) Translation: OpenWrt/LuCI/applications/ocserv Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/vi/ Translated using Weblate (Vietnamese) Currently translated at 6.2% (3 of 48 strings) Translation: OpenWrt/LuCI/applications/mjpg-streamer Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/vi/ Translated using Weblate (Vietnamese) Currently translated at 16.6% (4 of 24 strings) Translation: OpenWrt/LuCI/applications/lxc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/vi/ Translated using Weblate (Vietnamese) Currently translated at 16.1% (5 of 31 strings) Translation: OpenWrt/LuCI/applications/dynapoint Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdynapoint/vi/ Translated using Weblate (Vietnamese) Currently translated at 5.3% (3 of 56 strings) Translation: OpenWrt/LuCI/applications/dump1090 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdump1090/vi/ Translated using Weblate (Vietnamese) Currently translated at 15.3% (4 of 26 strings) Translation: OpenWrt/LuCI/applications/dcwapd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/vi/ Translated using Weblate (Vietnamese) Currently translated at 12.0% (3 of 25 strings) Translation: OpenWrt/LuCI/applications/cshark Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/vi/ Translated using Weblate (Vietnamese) Currently translated at 8.1% (4 of 49 strings) Translation: OpenWrt/LuCI/applications/bmx7 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbmx7/vi/ Translated using Weblate (Vietnamese) Currently translated at 25.0% (3 of 12 strings) Translation: OpenWrt/LuCI/applications/bcp38 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbcp38/vi/ Translated using Weblate (Vietnamese) Currently translated at 1.6% (3 of 181 strings) Translation: OpenWrt/LuCI/applications/banip Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/vi/ Translated using Weblate (Vietnamese) Currently translated at 1.6% (1 of 62 strings) Translation: OpenWrt/LuCI/applications/attendedsysupgrade Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/vi/ Translated using Weblate (Vietnamese) Currently translated at 3.5% (6 of 168 strings) Translation: OpenWrt/LuCI/applications/aria2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/vi/ Translated using Weblate (Vietnamese) Currently translated at 2.5% (5 of 197 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/vi/ Translated using Weblate (Vietnamese) Currently translated at 4.9% (3 of 61 strings) Translated using Weblate (Vietnamese) Currently translated at 8.6% (2 of 23 strings) Translated using Weblate (Vietnamese) Currently translated at 2.2% (3 of 133 strings) Translated using Weblate (Vietnamese) Currently translated at 4.5% (2 of 44 strings) Translated using Weblate (Vietnamese) Currently translated at 2.9% (3 of 102 strings) Translated using Weblate (Vietnamese) Currently translated at 8.6% (4 of 46 strings) Translated using Weblate (Vietnamese) Currently translated at 27.6% (54 of 195 strings) Translated using Weblate (Vietnamese) Currently translated at 2.7% (1 of 36 strings) Translated using Weblate (Russian) Currently translated at 100.0% (36 of 36 strings) Translated using Weblate (Vietnamese) Currently translated at 17.5% (13 of 74 strings) Translated using Weblate (Vietnamese) Currently translated at 18.1% (6 of 33 strings) Translated using Weblate (Vietnamese) Currently translated at 42.8% (6 of 14 strings) Translated using Weblate (Vietnamese) Currently translated at 36.3% (4 of 11 strings) Translated using Weblate (Vietnamese) Currently translated at 12.5% (2 of 16 strings) Translated using Weblate (Vietnamese) Currently translated at 35.5% (122 of 343 strings) Translated using Weblate (Vietnamese) Currently translated at 6.0% (5 of 82 strings) Translated using Weblate (Vietnamese) Currently translated at 49.2% (1061 of 2154 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/vi/ Translated using Weblate (German) Currently translated at 98.5% (66 of 67 strings) Translated using Weblate (Portuguese) Currently translated at 100.0% (67 of 67 strings) Translated using Weblate (Portuguese) Currently translated at 99.0% (215 of 217 strings) Translated using Weblate (Polish) Currently translated at 100.0% (217 of 217 strings) Translated using Weblate (German) Currently translated at 99.0% (215 of 217 strings) Translated using Weblate (Portuguese) Currently translated at 100.0% (2154 of 2154 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt/ Translated using Weblate (Polish) Currently translated at 100.0% (2154 of 2154 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/ Translated using Weblate (German) Currently translated at 100.0% (2154 of 2154 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/ Translated using Weblate (Russian) Currently translated at 100.0% (36 of 36 strings) Translated using Weblate (Spanish) Currently translated at 99.0% (215 of 217 strings) Translated using Weblate (Spanish) Currently translated at 95.8% (2064 of 2154 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/ Co-authored-by: AHOHNMYC <lqwh2h2cwa@protonmail.com> Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com> Co-authored-by: Hosted Weblate <hosted@weblate.org> Co-authored-by: Matthaiks <kitynska@gmail.com> Co-authored-by: Nguyễn văn tuyên <admin@tuyen.vn> Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Co-authored-by: ssantos <ssantos@web.de> Signed-off-by: AHOHNMYC <lqwh2h2cwa@protonmail.com> Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Signed-off-by: Matthaiks <kitynska@gmail.com> Signed-off-by: Nguyễn văn tuyên <admin@tuyen.vn> Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Signed-off-by: ssantos <ssantos@web.de> Translate-URL: https://hosted.weblate.org/projects/openwrt/luci_modules_luci-mod-dsl/de/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luci_modules_luci-mod-dsl/pt/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/de/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/pl/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/pt/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfwknopd/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsntpc/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsp910nd/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsrp-pppoe-server/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsuhttpd/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswatchcat/ru/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswatchcat/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/lucimodulesluci-mod-battstatus/vi/ Translate-URL: https://hosted.weblate.org/projects/openwrt/lucimodulesluci-mod-dashboard/vi/ Translation: OpenWrt/LuCI/applications/commands Translation: OpenWrt/LuCI/applications/firewall Translation: OpenWrt/LuCI/applications/fwknopd Translation: OpenWrt/LuCI/applications/minidlna Translation: OpenWrt/LuCI/applications/ntpc Translation: OpenWrt/LuCI/applications/nut Translation: OpenWrt/LuCI/applications/olsr Translation: OpenWrt/LuCI/applications/p910nd Translation: OpenWrt/LuCI/applications/rp-pppoe-server Translation: OpenWrt/LuCI/applications/splash Translation: OpenWrt/LuCI/applications/statistics Translation: OpenWrt/LuCI/applications/tinyproxy Translation: OpenWrt/LuCI/applications/transmission Translation: OpenWrt/LuCI/applications/uhttpd Translation: OpenWrt/LuCI/applications/vnstat Translation: OpenWrt/LuCI/applications/watchcat Translation: OpenWrt/LuCI/modules/luci-mod-battstatus Translation: OpenWrt/LuCI/modules/luci-mod-dashboard Translation: OpenWrt/LuCI/modules/luci-mod-dsl |
||
---|---|---|
.. | ||
luasrc | ||
po | ||
root/usr/share/rpcd/acl.d | ||
Makefile | ||
README.md |
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:
- Reduce power consumption and therefore reduce CO2 emissions.
- Reduce emitted electromagnatic radiation.
- 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.