Currently translated at 100.0% (29 of 29 strings) Translation: OpenWrt/LuCI/applications/vpnbypass Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/es/ Translated using Weblate (Norwegian Bokmål) Currently translated at 53.8% (7 of 13 strings) Translation: OpenWrt/LuCI/applications/hd-idle Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshd-idle/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 24.1% (45 of 186 strings) Translation: OpenWrt/LuCI/applications/dockerman Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdockerman/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 14.0% (7 of 50 strings) Translation: OpenWrt/LuCI/applications/acme Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 6.6% (5 of 75 strings) Translation: OpenWrt/LuCI/applications/frpc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 11.3% (5 of 44 strings) Translation: OpenWrt/LuCI/applications/ser2net Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsser2net/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 20.0% (5 of 25 strings) Translation: OpenWrt/LuCI/applications/ksmbd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsksmbd/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 14.2% (4 of 28 strings) Translation: OpenWrt/LuCI/applications/vnstat2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat2/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 31.9% (30 of 94 strings) Translation: OpenWrt/LuCI/applications/vpn-policy-routing Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/nb_NO/ Translated using Weblate (Portuguese (Brazil)) 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/pt_BR/ Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (66 of 66 strings) Translation: OpenWrt/LuCI/applications/https-dns-proxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/pt_BR/ Translated using Weblate (Norwegian Bokmål) Currently translated at 16.6% (11 of 66 strings) Translation: OpenWrt/LuCI/applications/https-dns-proxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 16.6% (3 of 18 strings) Translation: OpenWrt/LuCI/applications/nextdns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnextdns/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 11.5% (6 of 52 strings) Translation: OpenWrt/LuCI/applications/ttyd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsttyd/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 11.5% (3 of 26 strings) Translation: OpenWrt/LuCI/applications/wireguard Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswireguard/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 5.8% (2 of 34 strings) Translation: OpenWrt/LuCI/applications/wifischedule Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 89.6% (26 of 29 strings) Translation: OpenWrt/LuCI/applications/vpnbypass Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 3.7% (7 of 186 strings) Translation: OpenWrt/LuCI/applications/unbound Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 23.5% (4 of 17 strings) Translation: OpenWrt/LuCI/applications/udpxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsudpxy/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 10.0% (17 of 169 strings) Translation: OpenWrt/LuCI/applications/travelmate Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 13.8% (15 of 108 strings) Translation: OpenWrt/LuCI/applications/simple-adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 100.0% (13 of 13 strings) Translation: OpenWrt/LuCI/applications/shairplay Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshairplay/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 11.1% (9 of 81 strings) Translation: OpenWrt/LuCI/applications/shadowsocks-libev Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 1.6% (2 of 125 strings) Translation: OpenWrt/LuCI/applications/privoxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsprivoxy/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 7.6% (1 of 13 strings) Translation: OpenWrt/LuCI/applications/pagekitec Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspagekitec/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 16.6% (1 of 6 strings) Translation: OpenWrt/LuCI/applications/olsr-services Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr-services/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 5.6% (7 of 123 strings) Translation: OpenWrt/LuCI/applications/nlbwmon Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnlbwmon/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 5.2% (3 of 57 strings) Translation: OpenWrt/LuCI/applications/nft-qos Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnft-qos/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 5.6% (9 of 160 strings) Translation: OpenWrt/LuCI/applications/mwan3 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/nb_NO/ Translated using Weblate (Norwegian Bokmål) 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/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 62.5% (15 of 24 strings) Translation: OpenWrt/LuCI/applications/lxc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 25.0% (5 of 20 strings) Translation: OpenWrt/LuCI/applications/ltqtapi Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsltqtapi/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 16.1% (5 of 31 strings) Translation: OpenWrt/LuCI/applications/dynapoint Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdynapoint/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 5.3% (3 of 56 strings) Translation: OpenWrt/LuCI/applications/dump1090 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdump1090/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 11.5% (3 of 26 strings) Translation: OpenWrt/LuCI/applications/dcwapd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 16.0% (4 of 25 strings) Translation: OpenWrt/LuCI/applications/cshark Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 8.3% (1 of 12 strings) Translation: OpenWrt/LuCI/applications/bcp38 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbcp38/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 18.8% (36 of 191 strings) Translation: OpenWrt/LuCI/applications/banip Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 4.8% (2 of 41 strings) Translation: OpenWrt/LuCI/applications/attendedsysupgrade Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 3.4% (6 of 173 strings) Translation: OpenWrt/LuCI/applications/aria2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/nb_NO/ Translated using Weblate (Norwegian Bokmål) Currently translated at 61.4% (102 of 166 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/nb_NO/ Translated using Weblate (Turkish) Currently translated at 57.2% (95 of 166 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/tr/ Translated using Weblate (Japanese) Currently translated at 4.8% (2 of 41 strings) Translation: OpenWrt/LuCI/applications/attendedsysupgrade Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/ja/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (29 of 29 strings) Translation: OpenWrt/LuCI/applications/vpnbypass Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/zh_Hans/ Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (29 of 29 strings) Translation: OpenWrt/LuCI/applications/vpnbypass Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/pt_BR/ Translated using Weblate (Norwegian Bokmål) Currently translated at 11.2% (22 of 195 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/nb_NO/ Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (108 of 108 strings) Translation: OpenWrt/LuCI/applications/simple-adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/pt_BR/ Translated using Weblate (Norwegian Bokmål) Currently translated at 2.2% (3 of 133 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 51.9% (53 of 102 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 91.6% (44 of 48 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 8.2% (16 of 195 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 3.1% (6 of 191 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 5.4% (4 of 74 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 75.7% (25 of 33 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 33.4% (71 of 212 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 100.0% (16 of 16 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 37.2% (127 of 341 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 6.8% (4 of 58 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 43.2% (16 of 37 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 96.0% (24 of 25 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 38.2% (648 of 1693 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/nb_NO/ Co-authored-by: Allan Nordhøy <epost@anotheragency.no> Co-authored-by: Eric <spice2wolf@gmail.com> Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com> Co-authored-by: Hosted Weblate <hosted@weblate.org> Co-authored-by: Mete <selimmeteozdogan@gmail.com> Co-authored-by: Satoru Yoshida <ramat@ram.ne.jp> Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Signed-off-by: Allan Nordhøy <epost@anotheragency.no> Signed-off-by: Eric <spice2wolf@gmail.com> Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Signed-off-by: Mete <selimmeteozdogan@gmail.com> Signed-off-by: Satoru Yoshida <ramat@ram.ne.jp> Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspolipo/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsqos/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat/nb_NO/ Translation: OpenWrt/LuCI/applications/commands Translation: OpenWrt/LuCI/applications/firewall Translation: OpenWrt/LuCI/applications/minidlna Translation: OpenWrt/LuCI/applications/nut Translation: OpenWrt/LuCI/applications/olsr Translation: OpenWrt/LuCI/applications/openvpn Translation: OpenWrt/LuCI/applications/polipo Translation: OpenWrt/LuCI/applications/qos Translation: OpenWrt/LuCI/applications/samba4 Translation: OpenWrt/LuCI/applications/statistics Translation: OpenWrt/LuCI/applications/tinyproxy Translation: OpenWrt/LuCI/applications/transmission Translation: OpenWrt/LuCI/applications/vnstat |
||
---|---|---|
.. | ||
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.