Feature request: Wifi On/Off Scheduling

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

b4nd0ler0
Posts: 8
Joined: Tue Nov 22, 2011 8:26 am

Feature request: Wifi On/Off Scheduling

Post by b4nd0ler0 »

Hi all,

Would it be possible to implement wifi scheduling to turn on/off the wireless interfaces at specific times and days of the week?

I think people may find this useful in a number of ways:
1- Allows internet access control to wifi-connected devices
2- Saves energy and EMF-exposure* when wifi is not needed
3- Make you wlan also a bit more secure as it's not available to would-be intruders when not in use

I own a Netgear WNDR3700 v1 wireless router currently with stock firmware and would like very much to stick Gargoyle on it but one thing holding me down is this feature. Latest stock firmware implements as "Schedule-based WiFi on/off"
http://support.netgear.com/app/answers/ ... -1.0.16.98

Thank you and regards


* As a non-ionizing radiation I do not believe that wifi EMF is harmful but turning it off when not needed will not harm either.

ispyisail
Moderator
Posts: 4833
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Feature request: Wifi On/Off Scheduling

Post by ispyisail »


b4nd0ler0
Posts: 8
Joined: Tue Nov 22, 2011 8:26 am

Re: Feature request: Wifi On/Off Scheduling

Post by b4nd0ler0 »

Many thanks, that page wasn't on the wiki last time I looked!
That's good enough for me although as usual some people might prefer to do it through the web UI instead of fiddling around with the crontab.

Rgds

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: Feature request: Wifi On/Off Scheduling

Post by hnl_dk »

b4nd0ler0 wrote:Many thanks, that page wasn't on the wiki last time I looked!
That's good enough for me although as usual some people might prefer to do it through the web UI instead of fiddling around with the crontab.

Rgds

it would be even cooler, if it would be possible to select some mac addresses that do not apply to the limits and then instead of turning on/off wifi, just restrict access to the rest of the mac addresses.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

schmetterling
Posts: 3
Joined: Mon Jan 02, 2012 1:29 pm

Re: Feature request: Wifi On/Off Scheduling

Post by schmetterling »

I'd like implement wifi sheduler feature on WRT160NL (Gargoyle 1.5.2)

After first using a command wifi up I saw:

Code: Select all

root@Gargoyle:~# wifi up
command failed: No such device (-19)
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 00:23:69:XX:XX:XX and ssid 'Gargoyle'


What is mean command failed: No such device (-19), which appeared only first time? Maybe is a bug?

wifi up and wifi down works correctly.

According to your article:
http://www.gargoyle-router.com/wiki/doku.php?id=wireless_schedule#how-to_wireless_schedule_via_crontab
I have error message:

Code: Select all

root@Gargoyle:~# edit /etc/crontabs/root
-ash: edit: not found


Where is problem?

ispyisail
Moderator
Posts: 4833
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Feature request: Wifi On/Off Scheduling

Post by ispyisail »

Where is problem?


wiki changed

you will need to google how-to "vi", its a bit tricky to use, in fact I never use it.

I use nano

Code: Select all

opkg update
opkg install nano
nano /etc/crontabs/root


but its up to you

schmetterling
Posts: 3
Joined: Mon Jan 02, 2012 1:29 pm

Re: Feature request: Wifi On/Off Scheduling

Post by schmetterling »

thanks for explanation, I installed nano - it's more userfrendly;)

I noticed problem - yesterday I wrote:
wifi up and wifi down works correctly


Today, after putting into ssh console wifi down command, router (WRT160NL) is freezing - I can not ping it via lan (from directly connected PC) and my PC and Smartfon do not see my wifi. Router is alive again after re-connecting power.

What's happend?

ispyisail
Moderator
Posts: 4833
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Feature request: Wifi On/Off Scheduling

Post by ispyisail »

What's happend?


can you cut a paste the full command and response

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Feature request: Wifi On/Off Scheduling

Post by DoesItMatter »

schmetterling wrote:Today, after putting into ssh console wifi down command, router (WRT160NL) is freezing - I can not ping it via lan (from directly connected PC) and my PC and Smartfon do not see my wifi. Router is alive again after re-connecting power.


You are putty-ing into the router via a LAN pc correct?

Do not issue the "wifi down" command via a wifi-connected PC

Try this:

1) Reboot the router
2) Login to router via putty through a LAN connected PC
3) issue command "wifi down" and see what happens to router
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

schmetterling
Posts: 3
Joined: Mon Jan 02, 2012 1:29 pm

Re: Feature request: Wifi On/Off Scheduling

Post by schmetterling »

Yes, I conected PC to WRT160NL direct via LAN and after issue "wifi down" (putty from PC) command, router is freezing. I can not ping it from PC via LAN and I do not see wifi on smatfon...

I do not known where is problem...I made hard reset of router and problem exist still - wifi down command frezees my router.

Post Reply