What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

What have YOU done with Tasker?

I have 3 location based profiles using 3 different contexts.


The first profile is home. Checks to see if my wifi router is in site. If it is, set's bightness to low, Ringer to high.

On exit, sets auto brightness.

2nd profile is "in my car"

It knows when I'm in my car because I have a cheap Sony BT5700u Bluetooth radio. When I enter the car, and turn it on, my phone automatically opens slacker (which is set to replay last station) then goes to the car dock!

When I exit my car it doesn't pause slacker :(

When I get to work, currently I don't do much, but since I work in a funy multi building area, I use cell locationing. When it sees tower X, it shows I'm at work, and sets silent mode.

No effin around w/ dates. Works when I'm working from home or hollidays automatically ;)

Thanks for memembers who posted the tasker wiki. Some of those profiles helped me to build my set up, which AMAZES friends / family. My wife thought I was pretty cool when she got in the car, we started driving to din, and slacker popped up :)

On a side note, slacker doesn't allways hold it's settings (maybe between reboots?), so sometimes I have to select a station. Anyone know why?

Can u share profile setup for finding router?
 
Probably an easy answer

I have set up to change the notification LED to flash a different color for when my fiance texts so i know its from her by the flash. It works but it gives me an annoying icon in the notification bar.
 
I have set up to change the notification LED to flash a different color for when my fiance texts so i know its from her by the flash. It works but it gives me an annoying icon in the notification bar.

In your current profile give the notify LED the Title "SMS from Fiance" without the quotes then add
"+" - Variable - Variable Set - %LEDNOTE to 1

Add a new profile
Context
%LEDNOTE matches 1
Display On

Alert - Notify Cancel - Title: SMS from Fiance
"+" - Variable - Variable Set %LEDNOTE to 0


This will cancel the notification when you turn your screen on. If your screen is already on it will not cancel it until it turns off and come back on based on my testing. If you need more help let me know.
 
How do you guys set up locations? Do you use the NET option, or another option? Trying to define my apartment location as home.

I wrote this for enabling wifi when I get home.

Low Battery Usage Wifi Enableing Profile Using Wifi Near - Tasker Wiki


I've got this setup and it is working great when I am near home. Here's the weird thing...

Usually when I am at work, I'll turn wifi on since we have an AP there. But, when I turn wifi on, it turns on, connects to the AP and gets an IP address, then says connected. Then, it turns wifi right back off. The entire time this is happening, the 'wifi off' profile stays active, so I assumed that this is why wifi was getting turned back off.

Then, I disabled the 'wifi off' profile, turned my wifi back on and it connected to my work AP and stayed on. Then I re-enabled the 'wifi off' profile, and it still stayed on and connected (which is what I expected). So, it appears that the wifi off profile is preventing a new connection. I'm guessing that this is because there is a timing setting somewhere that prevents the wifi off profile from being able to detect that there is now a connection.

The other thing I've noticed is that if I turn off my screen while I'm connected to an AP (not the one specified in my home area), when I turn the screen back on, the 'wifi off' profile is once again active and the wifi doesn't reconnect. I'm sure this is due to the fact that I have wifi set to not be active when the screen is off in the advanced wifi settings on the phone.

I did just think of something that may work though while typing all of this and I'm going to try it. If it works, I'll update the post with the results.
 
How do you guys set up locations? Do you use the NET option, or another option? Trying to define my apartment location as home.

I wrote this for enabling wifi when I get home.

Low Battery Usage Wifi Enableing Profile Using Wifi Near - Tasker Wiki


I've got this setup and it is working great when I am near home. Here's the weird thing...

Usually when I am at work, I'll turn wifi on since we have an AP there. But, when I turn wifi on, it turns on, connects to the AP and gets an IP address, then says connected. Then, it turns wifi right back off. The entire time this is happening, the 'wifi off' profile stays active, so I assumed that this is why wifi was getting turned back off.

Then, I disabled the 'wifi off' profile, turned my wifi back on and it connected to my work AP and stayed on. Then I re-enabled the 'wifi off' profile, and it still stayed on and connected (which is what I expected). So, it appears that the wifi off profile is preventing a new connection. I'm guessing that this is because there is a timing setting somewhere that prevents the wifi off profile from being able to detect that there is now a connection.

The other thing I've noticed is that if I turn off my screen while I'm connected to an AP (not the one specified in my home area), when I turn the screen back on, the 'wifi off' profile is once again active and the wifi doesn't reconnect. I'm sure this is due to the fact that I have wifi set to not be active when the screen is off in the advanced wifi settings on the phone.

I did just think of something that may work though while typing all of this and I'm going to try it. If it works, I'll update the post with the results.

Weird...

The part about the screen off is what you think it is.

As for the other thing I am not sure. I am going to a bar this afternoon with a wifi ap and will try it out but I don't remember seeing this. You idea of a timeout somewhere is what I am thinking but I will have to look. Have you noticed either of the other two profiles getting enabled at work?

One thing you can do is to specify the MAC address you want the WIFI Off profile to check. This way it only works when you leave the coverage of that specific AP.

Since my home router is all I connect to that isn't on a specific time basis (like when I am in class) I added a variable state to check %HOME is cleared and I clear it when the WIFI Near profile exits. I do this because I have a large house and my bedroom doesn't get great coverage from my router. (pretty much the farthest point away from the router before you enter the attic). You could set up 2 new profiles to scan for you work router and change your WIFI Off profile to ensure a variable set in either profile is cleared before it turns off WIFI.

That sounds confusing the way I wrote it, if you need clarification I can rewrite it.
 


I've got this setup and it is working great when I am near home. Here's the weird thing...

Usually when I am at work, I'll turn wifi on since we have an AP there. But, when I turn wifi on, it turns on, connects to the AP and gets an IP address, then says connected. Then, it turns wifi right back off. The entire time this is happening, the 'wifi off' profile stays active, so I assumed that this is why wifi was getting turned back off.

Then, I disabled the 'wifi off' profile, turned my wifi back on and it connected to my work AP and stayed on. Then I re-enabled the 'wifi off' profile, and it still stayed on and connected (which is what I expected). So, it appears that the wifi off profile is preventing a new connection. I'm guessing that this is because there is a timing setting somewhere that prevents the wifi off profile from being able to detect that there is now a connection.

The other thing I've noticed is that if I turn off my screen while I'm connected to an AP (not the one specified in my home area), when I turn the screen back on, the 'wifi off' profile is once again active and the wifi doesn't reconnect. I'm sure this is due to the fact that I have wifi set to not be active when the screen is off in the advanced wifi settings on the phone.

I did just think of something that may work though while typing all of this and I'm going to try it. If it works, I'll update the post with the results.

Weird...

The part about the screen off is what you think it is.

As for the other thing I am not sure. I am going to a bar this afternoon with a wifi ap and will try it out but I don't remember seeing this. You idea of a timeout somewhere is what I am thinking but I will have to look. Have you noticed either of the other two profiles getting enabled at work?

One thing you can do is to specify the MAC address you want the WIFI Off profile to check. This way it only works when you leave the coverage of that specific AP.

Since my home router is all I connect to that isn't on a specific time basis (like when I am in class) I added a variable state to check %HOME is cleared and I clear it when the WIFI Near profile exits. I do this because I have a large house and my bedroom doesn't get great coverage from my router. (pretty much the farthest point away from the router before you enter the attic). You could set up 2 new profiles to scan for you work router and change your WIFI Off profile to ensure a variable set in either profile is cleared before it turns off WIFI.

That sounds confusing the way I wrote it, if you need clarification I can rewrite it.

I had thought about setting up new profiles for work, but since I don't always use it there, and the only place I have decent coverage is a smallish area in the building, I don't always have wifi on at work. Also, it still wouldn't fix the issue of the wifi being off if I'm anywhere else that has wifi I'd like to connect to.

WHat I'm going to try though is to add another task to the exit task of my 'near home' profile that does the cell checking. When I exit that profile, I've added an exit task to turn off wifi (along with changing the varialble to 0). I believe that should do what I want. It'll still turn on and off wifi when coming/leaving home, but anywhere else, I should have control.

As for your idea about using the MAC address, wouldn't that still leave me in the same boat? Wouldn't the profile be saying "if you're not connected to 00:00:00:00:xx I'm turning off wifi"?
 
Last edited:
As for your idea about using the MAC address, wouldn't that still leave me in the same boat? Wouldn't the profile be saying "if you're not connected to 00:00:00:00:xx I'm turning off wifi"?

Good point. I was just double checking my personal set up and I had my wifi off profile only apply to my home router via SSID and I know that I stay connected when I go to school for the two hours I am there. I don't think my time based wifi enabling profile for class is keeping wifi on because thats not how tasker works.

I think what was happening is that when I left that SSID the wifi off profile would execute and that would be the end of it because clearing the %HOME variable is an event.

I have an idea because of this in how to improve the WIFI off and I have lots of time at work today so I will explore it and let you know what I find out.
 
Ok I think I have it figured out.
3 more profiles

New Wifi Off
Context:
Not Wifi Connected
Variable Value : %WIFI = 1 (this is a dynamic variable tasker updates based on wifi being enabled or not)
Tasks:
Variable Set: %WIFITIMER = 1
Wait 30 Seconds
Variable Set: %WIFIOFF = 1 If %WIFITIMER = 1
Wait 5 Seconds
Variable Clear: %WIFIOFF
Profile Status - New Wifi Off - Off
EXIT TASK
Variable Set : %WIFITIMER = 0

WIFI Off Event
Context:
Event - Variable Set: %WIFIOFF Value:1
Task:
Wifi Off

Wifi On Event
Context
Event - Variable Set: %WIFI Value: 1
Profile Status - New Wifi Off - On


I can't test this till I get to the bar but give it a shot and let me know how it works. Try manually enabling wifi and see if it drops out. It has a 30 seconds timeout to get connected. I am not sure a task can exit before it is completely executed so that is what I am worried about. If you don't lose connection after a minute leave the area of the AP and see if WIFI is disabled.

Oh and obviously disable the old wifi off.
 
Last edited:
Ok I think I have it figured out.
3 more profiles

New Wifi Off
Context:
Not Wifi Connected
Variable Value : %WIFI = 1 (this is a dynamic variable tasker updates based on wifi being enabled or not)
Tasks:
Variable Set: %WIFITIMER = 1
Wait 30 Seconds
Variable Set: %WIFIOFF = 1 If %WIFITIMER = 1
Wait 5 Seconds
Variable Clear: %WIFIOFF
Profile Status - New Wifi Off - Off
EXIT TASK
Variable Set : %WIFITIMER = 0

WIFI Off Event
Context:
Event - Variable Set: %WIFIOFF Value:1
Task:
Wifi Off

Wifi On Event
Context
Event - Variable Set: %WIFI Value: 1
Profile Status - New Wifi Off - On


I can't test this till I get to the bar but give it a shot and let me know how it works. Try manually enabling wifi and see if it drops out. It has a 30 seconds timeout to get connected. I am not sure a task can exit before it is completely executed so that is what I am worried about. If you don't lose connection after a minute leave the area of the AP and see if WIFI is disabled.

Oh and obviously disable the old wifi off.

If I can ever get off this conference call, I'll give this a try.
 
Don't bother. I tried it and am experimenting still. I am stuck in a loop and don't know why. I'll write the derails up in about 45 minutes when% get home.

Sent from my Droid using DroidForums App
 
Ok so I have disabled the two event profiles. I also removed anything with %wifioff and just put in wifi off if %wifitimer matches 1 I then deleted the profile status at the end of the enter task. Then I found out %wifi uses words not numbers so I had to change the 1 to on.

Now when turn on wifi the profile starts. If I connect, everything if fine. If not but there is a router nearby, it shuts off wifi like it's supposed to but the some how wifi is enabled again and I get in a loop.

Sent from my Droid using DroidForums App
 
Haven't had time to play with this yet, but I'm thinking an Event Profile/Task will do what I want as far as setting wifi off. I'm thinking that setting a variable when the wifi connection is dropped, then setting an event to look for that variable set event will allow me to turn off wifi. Since an event profile/task doesn't have a duration (it just executes then is done), that 'should' be workable. Other types of profiles persist while a condition is true, but according to the tasker user guide, events basically fire, then are done.
 
Haven't had time to play with this yet, but I'm thinking an Event Profile/Task will do what I want as far as setting wifi off. I'm thinking that setting a variable when the wifi connection is dropped, then setting an event to look for that variable set event will allow me to turn off wifi. Since an event profile/task doesn't have a duration (it just executes then is done), that 'should' be workable. Other types of profiles persist while a condition is true, but according to the tasker user guide, events basically fire, then are done.

That was my thinking in what I wrote up, but I don't understand why wifi keeps getting reenabled. I also wanted to stop it from turning wifi off if for some reason there was just a little hiccup in the signal, that why I put in the 30 second delay.

Looks like my day will be pretty light again so I will see what I can do.
 
Ok This seems to work all of a sudden
Let me know if you run into trouble.


New Wifi Off
Context:
Not Wifi Connected
Variable Value : %WIFI matches on (this is a dynamic variable tasker
updates based on wifi being enabled or not)
Tasks:
Variable Set: %WIFITIMER to 1
Wait 30 Seconds
Variable Set: %WIFIOFF to 1 If %WIFITIMER matches 1
Wait 5 Seconds
Variable Clear: %WIFIOFF
Profile Status - New Wifi Off - Off
EXIT TASK
Variable Set : %WIFITIMER to 0
WIFI Off Event
Context:
Event - Variable Set: %WIFIOFF Value:1
Task:
Wifi Off
Wifi On Event
Context
Event - Variable Set: %WIFI Value: on
Profile Status - New Wifi Off - On
 
Back
Top