Page 1 of 1

Turn on/off WIFI depending on location

Posted: 05 Mar 2013 08:23
by pd04856
Hello everybody,

I have a very common question... I want to turn on/off wifi depending on the phone´s location and I´d like to hear your recommendations on the best way to achieve this.

The idea is that I want wifi turned on when I´m at home and switched off when I´m away to save battery. The challenge is that there is a very weak GSM signal around my home, so if I use the GSM locator as a trigger, it may happen that sometimes wifi is switched off for a couple of minutes. On the other hand, the location trigger (which is also based on GSM, right?) tends to be very inexact as well. Third alternative I see is to check if my personal wifi (named by ssid) is there or not, but to do that I need to turn on wifi periodically and scan for existing wifis around. Doesn´t sound very effective either.

To be honest, the Llama solution was very stable and simple, but I want to use Automagic instead because it´s great!

How did you solve this and what´s your recommendation?

Thanks in advance for your help!

Jost

Re: Turn on/off WIFI depending on location

Posted: 05 Mar 2013 10:09
by inReinbek
Hi Jost,

I've solved it with a periodic timer every 15 Minutes as trigger ...

"checking if WLAN is on" as condition
->NO: "switch WLAN on" as action and go to
->YES: "home-SSID" avail? (as condition)
->YES: connect to "home-SSID"
->NO: switch WLAN off

simple, but it works well and won't drain the battery by using GPS or else ...

Greetings

Re: Turn on/off WIFI depending on location

Posted: 05 Mar 2013 14:34
by pd04856
Hi inReinbek,

that sounds simple. I might give it a try, but I´d increase the interval to 5 minutes.

Regards,
Jost
inReinbek wrote:Hi Jost,

I've solved it with a periodic timer every 15 Minutes as trigger ...

"checking if WLAN is on" as condition
->NO: "switch WLAN on" as action and go to
->YES: "home-SSID" avail? (as condition)
->YES: connect to "home-SSID"
->NO: switch WLAN off

simple, but it works well and won't drain the battery by using GPS or else ...

Greetings