Currently translated at 1.3% (1 of 72 strings) Translation: OpenWrt/LuCI/applications/frpc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 6.9% (3 of 43 strings) Translation: OpenWrt/LuCI/applications/ser2net Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsser2net/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 14.8% (4 of 27 strings) Translation: OpenWrt/LuCI/applications/vnstat2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat2/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 7.4% (2 of 27 strings) Translation: OpenWrt/LuCI/applications/vnstat2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat2/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 1.5% (1 of 65 strings) Translation: OpenWrt/LuCI/applications/yggdrasil Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsyggdrasil/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 4.0% (4 of 98 strings) Translation: OpenWrt/LuCI/applications/vpn-policy-routing Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 5.0% (2 of 40 strings) Translation: OpenWrt/LuCI/applications/https-dns-proxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 4.2% (2 of 47 strings) Translation: OpenWrt/LuCI/applications/mjpg-streamer Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Italian) Currently translated at 6.3% (3 of 47 strings) Translation: OpenWrt/LuCI/applications/mjpg-streamer Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 100.0% (33 of 33 strings) Translation: OpenWrt/LuCI/applications/wifischedule Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 3.0% (1 of 33 strings) Translation: OpenWrt/LuCI/applications/wifischedule Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 4.0% (2 of 49 strings) Translation: OpenWrt/LuCI/applications/bmx7 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbmx7/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 6.1% (3 of 49 strings) Translation: OpenWrt/LuCI/applications/bmx7 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbmx7/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 8.3% (2 of 24 strings) Translation: OpenWrt/LuCI/applications/wireguard Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswireguard/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 6.4% (5 of 77 strings) Translation: OpenWrt/LuCI/applications/shadowsocks-libev Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Italian) Currently translated at 11.6% (9 of 77 strings) Translation: OpenWrt/LuCI/applications/shadowsocks-libev Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Translated using Weblate (Slovak) Currently translated at 4.3% (1 of 23 strings) Translation: OpenWrt/LuCI/applications/vpnbypass Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 4.7% (2 of 42 strings) Translation: OpenWrt/LuCI/applications/advanced-reboot Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) 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/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Italian) Currently translated at 41.6% (5 of 12 strings) Translation: OpenWrt/LuCI/applications/shairplay Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshairplay/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 12.0% (3 of 25 strings) Translation: OpenWrt/LuCI/applications/dcwapd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 12.0% (3 of 25 strings) Translation: OpenWrt/LuCI/applications/dcwapd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 5.0% (8 of 158 strings) Translation: OpenWrt/LuCI/applications/mwan3 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 20.3% (35 of 172 strings) Translation: OpenWrt/LuCI/applications/aria2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 12.5% (2 of 16 strings) Translation: OpenWrt/LuCI/applications/udpxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsudpxy/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Italian) Currently translated at 26.3% (5 of 19 strings) Translation: OpenWrt/LuCI/applications/ltqtapi Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsltqtapi/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Translated using Weblate (Slovak) Currently translated at 10.0% (3 of 30 strings) Translation: OpenWrt/LuCI/applications/dynapoint Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdynapoint/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 2.4% (3 of 124 strings) Translation: OpenWrt/LuCI/applications/privoxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsprivoxy/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 13.0% (3 of 23 strings) Translation: OpenWrt/LuCI/applications/lxc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 13.0% (3 of 23 strings) Translation: OpenWrt/LuCI/applications/lxc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 3.4% (4 of 115 strings) Translation: OpenWrt/LuCI/applications/radicale Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 100.0% (54 of 54 strings) Translation: OpenWrt/LuCI/applications/nft-qos Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnft-qos/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 5.5% (3 of 54 strings) Translation: OpenWrt/LuCI/applications/nft-qos Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnft-qos/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Slovak) Currently translated at 7.6% (9 of 118 strings) Translation: OpenWrt/LuCI/applications/travelmate Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Italian) Currently translated at 14.4% (17 of 118 strings) Translation: OpenWrt/LuCI/applications/travelmate Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Translated using Weblate (Slovak) Currently translated at 5.2% (6 of 115 strings) Translation: OpenWrt/LuCI/applications/nlbwmon Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnlbwmon/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 100.0% (27 of 27 strings) Translation: OpenWrt/LuCI/applications/noddos Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnoddos/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 75.1% (133 of 177 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 3.3% (6 of 177 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Italian) Currently translated at 97.1% (172 of 177 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Translated using Weblate (Chinese (Traditional)) Currently translated at 3.2% (2 of 61 strings) Translation: OpenWrt/LuCI/applications/ocserv Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 3.2% (2 of 61 strings) Translation: OpenWrt/LuCI/applications/ocserv Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (Italian) Currently translated at 14.7% (9 of 61 strings) Translation: OpenWrt/LuCI/applications/ocserv Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Translated using Weblate (Slovak) Currently translated at 3.9% (4 of 101 strings) Translation: OpenWrt/LuCI/applications/transmission Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/sk/ Translated using Weblate (Chinese (Traditional)) Currently translated at 97.8% (46 of 47 strings) Translation: OpenWrt/LuCI/applications/minidlna Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/zh_Hant/ Translated using Weblate (Slovak) Currently translated at 11.1% (5 of 45 strings) Translation: OpenWrt/LuCI/applications/upnp Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/sk/ Translated using Weblate (Chinese (Traditional)) Currently translated at 97.9% (190 of 194 strings) Translation: OpenWrt/LuCI/applications/olsr Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/zh_Hant/ Translated using Weblate (Slovak) Currently translated at 4.1% (8 of 194 strings) Translation: OpenWrt/LuCI/applications/olsr Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/sk/ Translated using Weblate (Chinese (Traditional)) Currently translated at 100.0% (22 of 22 strings) Translation: OpenWrt/LuCI/applications/samba Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba/zh_Hant/ Translated using Weblate (Chinese (Traditional)) Currently translated at 2.7% (2 of 73 strings) Translation: OpenWrt/LuCI/applications/tinyproxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/zh_Hant/ Translated using Weblate (Slovak) Currently translated at 2.6% (5 of 190 strings) Translation: OpenWrt/LuCI/applications/openvpn Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/sk/ Translated using Weblate (Slovak) Currently translated at 3.4% (2 of 58 strings) Translation: OpenWrt/LuCI/applications/uhttpd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsuhttpd/sk/ Translated using Weblate (Slovak) Currently translated at 100.0% (13 of 13 strings) Translation: OpenWrt/LuCI/applications/wol Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswol/sk/ Translated using Weblate (French) Currently translated at 92.3% (12 of 13 strings) Translation: OpenWrt/LuCI/applications/wol Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswol/fr/ Translated using Weblate (Slovak) Currently translated at 10.0% (1 of 10 strings) Translation: OpenWrt/LuCI/applications/p910nd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsp910nd/sk/ Translated using Weblate (Chinese (Traditional)) Currently translated at 100.0% (71 of 71 strings) Translation: OpenWrt/LuCI/applications/opkg Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/zh_Hant/ Translated using Weblate (French) Currently translated at 36.6% (26 of 71 strings) Translation: OpenWrt/LuCI/applications/opkg Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/fr/ Translated using Weblate (Slovak) Currently translated at 2.8% (6 of 209 strings) Translation: OpenWrt/LuCI/applications/firewall Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/sk/ Translated using Weblate (Slovak) Currently translated at 8.3% (2 of 24 strings) Translation: OpenWrt/LuCI/applications/qos Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsqos/sk/ Translated using Weblate (Chinese (Traditional)) Currently translated at 96.2% (78 of 81 strings) Translation: OpenWrt/LuCI/applications/splash Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/zh_Hant/ Translated using Weblate (Italian) Currently translated at 3.7% (5 of 132 strings) Translation: OpenWrt/LuCI/applications/nut Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/it/ Translated using Weblate (Chinese (Traditional)) Currently translated at 79.9% (243 of 304 strings) Translation: OpenWrt/LuCI/applications/statistics Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/zh_Hant/ Translated using Weblate (Slovak) Currently translated at 1.3% (4 of 304 strings) Translation: OpenWrt/LuCI/applications/statistics Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/sk/ Translated using Weblate (Chinese (Traditional)) Currently translated at 77.0% (1030 of 1337 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hant/ Signed-off-by: Trevor <wowpapa3232@gmail.com> Translated using Weblate (Slovak) Currently translated at 36.3% (486 of 1337 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/sk/ Signed-off-by: anonymous <noreply@weblate.org> Translated using Weblate (Slovak) Currently translated at 36.3% (486 of 1337 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/sk/ Signed-off-by: Chaoos <all@chaoos.com> Translated using Weblate (French) Currently translated at 89.3% (1194 of 1337 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/fr/ Signed-off-by: Hydci <giogio59@live.fr> Translated using Weblate (Italian) Currently translated at 48.2% (645 of 1337 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/it/ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> |
||
---|---|---|
.. | ||
luasrc | ||
po | ||
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.