OpenWrt Forum Archive

Topic: TL-WR1043ND Wifi auto-turn OFF at night?

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

how do I configure OpenWRT to turn off the Wifi automatically every night at 01.00am? Then I want OpenWRT to do a reboot every morning at 07.00am.

How do I do that?

Program those actions into crontab:

Create short executable shell scripts containing just the needed commands.
reboot causes a reboot.
And "wifi down" brings WiFi down.
Then set crontab timing to run those scripts at the required times.

Doing that too, my config turns wifi of at 22:30 and restarts router in the morning, which will enable wifi too and raise stability wink

1. make sure you set your time zone in /etc/config/system i.e. "CET-1CEST,M3.5.0,M10.5.0/3" for central europe, the default is UTC, so you would have to reconfigure summer/winter time, see http://wiki.openwrt.org/doc/uci/system
2. /etc/init.d/cron enable
3. crontab -e

# min(0-59) hour(0-23) day(1-31) month(1-12) weeksday(0-6) comand
30 22 * * * wifi down
15 06 * * * reboot

4. /etc/init.d/cron start

The discussion might have continued from here.