• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Anyone using Tasker?

The "Home Location" profile looks fine according to the example, assuming that the location and radius cause it to activate when you want it to.

In the "Wifiscan" profile, you have a state context labeled "Wifi scan". Since there is no such context in Tasker, I assume you named the context. Unfortunately I can't tell what it does, but I'll take a guess that it's a Wifi Near context (that would make sense to me). If that's the case, the second context should be "Variable Value %WIFISCAN = 1".

The Variable Value context is true for as long as the value of the variable meets the conditions you established (in this case, for as long as it remains equal to 1). In contrast, the Variable Set context is only true at the moment the variable begins to meet the conditions you established (it's instantaneous). All Event contexts in Tasker work the same way - they're instantaneous.

Looking at that second profile further, it is a VARIABLE SET %WIFISCAN,*. Seems to me it is checking to see if that variable exists, and if it does, then the Wifi Near can start. The task is Turn Wifi on. I'm not sure why the wifi wouldn't just come on and stay on in that scenario.


You are right, that context is Wifi Near. I named it based on following instructions maybe a bit too literally. Actually you can't see what it is doing because of the possibility there are other things in there, But it is doing exactly what the pic says: Turning on WIFI. So that leaves me with the question, do I need to then enter a variable there and set it to 1, like you suggested?


Not to further complicate things, but it's possible to combine these into a single profile, but leaving them separate gives you more flexibility later on if you want to trigger other things to happen when you're home, and you also want those things to happen when you're somewhere else. But let's skip that for now.

Thanks Uncle Mike. (I think I've seen you over in the Google Groups...or someone with same moniker).

I was wandering about that variable. It is set, and has a clear, in that same context. What I need to be able to do is understand how it all works well enough to draw myself a flow chart :p
In fact, based on the way it looks now, I'm not sure what the first profile has to do with turning on the WIFI Near, unless there is a variable there. I'll add it, and test today at lunch.

I tend to be VERY LITERAL, when following instructions, and often instructions take it for granted that the follower knows enough to fill in the blanks. But then filling in the blanks often leads to trouble too.


By the way, there was a discussion also about the fact that it could be done in 1 profile over on the Google thread too.

[EDIT]
I have not changed anything on the script yet.

But right now I am noticing that the Home Location script is active. The WiFi Near is not (I renamed it from WiFi Scan).

I'm not sure I see how it woudl turn off my WIFI when I leave here. Another thing, I've read that a script won't override manually set items, and of course at the moment I turned it on manually. Maybe it takes a move in/out of a location a time or two?

[EDIT2]
Had an opportunity to test. Very little luck. Here is what I experienced:

I drove for a quite a way that I thought would be out of the reach of NET Location but tasker kept the Home Location alive. I went into Tasker and turned it off, and back on. Long story short, I guess I needed to activate again even though it was 'on'.

So I went for another drive. Let the phone go dark. Went to point I felt definitely was out of HOME, and nothign had happened (I also set a SAY to announce when it changed). As soon as I turned the phone on, it announced "Leaving Home Location". So it appears that it was not working while phone was dark (sleep mode I guess its called).

So I turned around and went home. It did not come back on for NET until I got inside the house and had turned the phone on and off a couple times. The WiFi near never activated.

Speaking of which, ultimately, I'd like the WiFi to go off just as soon as I leave the WIFI reach of my home network, as opposed to the NET.

More testing/changes to do it seems.

I'm going to combine it all in one profile
 
If you look back over the previous pages of this thread UncleMike gave a good example of how to set up what your after that is workin for me
 
If you look back over the previous pages of this thread UncleMike gave a good example of how to set up what your after that is workin for me

Ok. I've found it and set it up. Before I paste a bunch of pics here to see if I have it wrong, maybe a couple answers to something will help. Maybe my expectations are too high.

When you leave the Home location and get away from that WiFi, how quickly does Tracker turn off your WiFi? Or maybe another way to ask is how quickly after getting out of the range of Home Location (let's say NET) does it inactivate?

I am thinking that the trigger to move the variable to 0 did not work. I'm virtually certain that I was not in range of the tower closest to my house.

I got a couple miles away and it never deactivated. In fact, I turned Tracker off, I heard the message about moving out of home location, then turnred it back on, and heard the message about entering Home Location.

But...I just did the Get Location thing again and it came back with a radius of 2169m, and changed the radius pulldown (whatever that is for) to 7km. That circle did encompass therange I drove. MUCH more than I was ever to get a signal when on my WinMo device. Maybe it is using multiple towers?

In the end, I want this to disable as quickly after leaving teh range of my wifi as possible.

Thoughts?
 
Yes, someone needs to check out battery use (cpu use) using SystemPanel. Any volunteers?

I have network-only location profiles checking 24/7, as well as time profiles, calendar entry profiles, one application profile, dock profiles, power-based profiles, battery status profiles, Wifi Near (not 24/7), incoming call profiles, and display on/off profiles. With all of this, even on light use days, I have yet to see Tasker at more than 3% of my total battery use.

GPS will be a big battery drain for any app. I have yet to experiment with full-time Wifi Near contexts with regard to battery use.
 
I think this has probably already been covered, but I just want to double check I set this up right. So I want Tasker to send a text to my fiance when I'm near the grocery store to see if she needs anything. I have it set up, but I only want it to send on my way home (I take the bus to work so I'm by the store in the morning and evening). So, I set up a variable (If?) to %TIME > 15:00
Is this correct?

You can't compare times (in that format) numerically in Tasker. If you have the profile working without the time restriction, I would recommend adding a time context to that same profile. In the profile list, if you tap on the context, you'll get the option to add another context. Use a From time of 15:00 and a To time of 23:59 (or earlier). It's possible it would work without specifying a To time, but I'm not sure about that.

If you wanted to get fancy, you could make it send the SMS only if you're near the store for the second time that day, or only when you're near the store after having been near work that day. This way, if you unexpectedly come home early, it will still send the SMS.
 
Ok. I've found it and set it up. Before I paste a bunch of pics here to see if I have it wrong, maybe a couple answers to something will help. Maybe my expectations are too high.

When you leave the Home location and get away from that WiFi, how quickly does Tracker turn off your WiFi? Or maybe another way to ask is how quickly after getting out of the range of Home Location (let's say NET) does it inactivate?

I am thinking that the trigger to move the variable to 0 did not work. I'm virtually certain that I was not in range of the tower closest to my house.

I got a couple miles away and it never deactivated. In fact, I turned Tracker off, I heard the message about moving out of home location, then turnred it back on, and heard the message about entering Home Location.

But...I just did the Get Location thing again and it came back with a radius of 2169m, and changed the radius pulldown (whatever that is for) to 7km. That circle did encompass therange I drove. MUCH more than I was ever to get a signal when on my WinMo device. Maybe it is using multiple towers?

In the end, I want this to disable as quickly after leaving teh range of my wifi as possible.

Thoughts?

How quickly Tasker will react to moving out of range of a Wifi signal will depend on your settings. If I recall correctly, the default scan rate is every 2 minutes when the device is awake, and every 10 minutes when the device is asleep. To avoid "bouncing" when near the edge of an area, Tasker requires two successive scans indicating that you are no longer "near" the Wifi you're looking for. With the above settings, this could take as long as 20 minutes.

You can change these settings to have Tasker react more quickly, but there will be some impact on battery usage (I don't know how much).

If you want to turn Wifi off as soon as you disconnect from the Wifi network, you could use the Wifi Connected context, with only an Exit Task which turns off Wifi as soon as you get disconnected.
 
Here's where I'm at now.

What is happening is that Profile Home Loc (Called Home Area on the example instructions) is activating fine, and Home WiFi is activating, so I am then also seeing the Wifi Near start working. I ended up with WiFi on. This happened while sitting in my home.

When I leave the home, after a fair distance the Home Wifi becomes inactive, and the WiFi stops...but Home Loc never deactivates, and then when I return to home, Home WiFi never starts back up.

I followed UncleMike's post that is working for HellFire, and my results are below:

[EDIT]
FYI...I created a widget to press and read values of the Home variable back to me. With the current setup as above, the vairable is continuing to grow. So I am studying the things and plan to have the Variable go back to 0 when I leave HOME. I am thinking the persistence of variables is part of my problem, and the fact it is not getting set back to 0.


Profile: Home Area
Context: Location
Enter Task:
Variable Add: [Name: %HOME] [Value: 1]
Exit Task:
Variable Subtract: [Name: %HOME] [Value: 1]

Profile: Home Wifi
Context: Variable Value [Name: %HOME] [Op: Greater Than] [Value: 0]
Context: Wifi Near [SSID: <MySSID>] [Toggle Wifi: Checked]
Enter Task:
Wifi [Set: On]
Variable Add: [Name: %HOME] [Value: 1]
Exit Task:
Wifi [Set: Off]
Variable Subtract [Name: %HOME] [Value: 1]

Below is the Profile Screen:

1979026e.png


Below is the ENTER task for Home Loc:

040ec4fa.png


Below is the EXIT task for Home Loc (I am confused about whether this is working or not. It never goes inactive; I never hear the associated SAY clause; But the variable subtrackt must be working, because the WiFi near stops searching):

ba9a0801.png


Below is the ENTER task for Home WiFi:

1175307c.png


Below is the EXIT for Home Wifi:

7b907c51.png



Oh, and here is the setup screen for the Context Variable Value:

15f2cac5.png


I may try deleting the Home Loc and completely recreating it and see what happens.

[EDIT]
I added Tasker Widgets to press and read back the value of the HOME variable to me. I am finding that it is not getting set back to 0, and also the persistence then is contributing factor.

I'm going to think through the code here and try to get the variable back to 0. I tried Clear Variable, and I think that eliminated the variable altogether.

I need to figure out to if that Home Loc is supposed to stay active. I wouldn't think it would once leaving the NET location. I'm suspicious of how large the NET location seems to be.

At least through this long exercise I am learning something.
 
From the deep dark inner resources of the jungle comes the mating call of the constipated ape:


AAAAAAAAAHHHHHHHHHHHHhhhhhhhh,,,,,,

That's the way I feel now. I can't get it to work consistently one way or the other. I'm sitting here in my home location, wiht the HOME variable at 1, and the WIFI scanner isn't kicking off.

I guess I need to take a break from it. But its one of those things like "I gotta figure this out or I won't go to sleep".

Ever have one of those days?:rolleyes:

.......

Ok. I changed my Home from NET to GPS, and narrowed down the area for testing. So what I am finding is that it is a combination of things as noted from other posts, but more pronounced than I thought.

Not sure about why the inconsistencies, but these factors were overall considerations:

  • NET location was VERY wide radius compared to my WinMo phone. I don't know why the variance. Maybe the learning of NET on this takes into account several cell towers, whereas on my WinMO setup, I could select from a list and narrow it down to the one closest
  • The timeouts added quite a bit of time to the expiration of the active profile, as noted by UncleMikes post to me earlier.
  • Adding those two factors together, along with some anomolies that ultimately got fixed by deleting and recreating some tasks, it was quite an effort.

So, I think for the purposes of WIFI, this is good enough.

The reason I was striving so hard for a more instantaneous change when leaving home is because I anticipate getting the Google Voice Plugin for Locale which I understand works on Tasker , and changing forwarding based on home location. I'll have to use the WIFI Connected text for that as Uncle Mike mentioned.

I would consider writing up a step by step, including explanations of all the different things, including caveats, and expectations settings to add to the Step by Steps over on the Tasker Wiki, if they can host the graphics and interest. I've figured out a lot really, with a lot of help here, and a lot of frustration :D
 
hands down one of the best apps, if not the best, out there. I use it daily with maybe 10-12 different profiles/tasks. at times it can be finicky and not fire a task for whatever reason, and I mess with it daily, but it is such a powerful app. I am constantly thinking of tasks and profiles to make it useful.

most recent I did was, when at home, use "wifi near" to sense my home network and thus, turn on wifi, turn off BT. then, when it senses I have left the house, it turns off wifi, turns on BT - as likely I am in the car so need BT for my car but no need for wifi and need 3G.

such a powerful app. glitchy at times, perfect at others, routinely updated.
 
I want to make a tasker profile/task where when I press a widget icon, the last caller will get a text message saying that I'm driving.

I'm able to get the widget, and the "Send SMS" task to work. But, only if I manually enter the phone number in tasker. I can not get the %CNUM (Last caller) variable to work. I always get an error.

Does anyone know how to get this to work?
 
Yeah. I am experiencing the glitches I think. While I could get the stuff workingi (per my posts above), tonight my first real travel to work, and come back home resulted in: Wifi turned off when I left (about 30 minutes after leaving). When I came home it did NOT kick off and turn Wifi on.

Hopefully it is just in a need of a bit of maturity.

Yes, I agree. seems like very nice app.
 
Anyone have thoughts on how to force two apps to launch? My impression is that when I first launch Trapster and then Pandora every time my car stereo connects, Trapster gets kinda lost behind Pandora and never really starts. I could insert a long wait between the two apps, I suppose, but I wonder if there is a more elegant solution out there?
 
I'm running short on time this morning, but if I'm understanding correctly, notifications include email and SMS, but alarm volume (calendar) is a separate setting in Tasker, as is ringer (phone) volume.

I hope that helps.
I gave it a stab today. For the context, I have it set to M-F from 0645-1600, then I have Ringer Vol -> 0, Ringer Vibe On, Notification Level 6 (thought this was the calendar item). I tried calling my phone, and the ringer volume was not set to 0. What did I do wrong? Also, I have the same meeting right away in the morning. To prevent this 'sound profile' from executing on vacation days, can I reference that meeting to enable the profile?
 
I gave it a stab today. For the context, I have it set to M-F from 0645-1600, then I have Ringer Vol -> 0, Ringer Vibe On, Notification Level 6 (thought this was the calendar item). I tried calling my phone, and the ringer volume was not set to 0. What did I do wrong? Also, I have the same meeting right away in the morning. To prevent this 'sound profile' from executing on vacation days, can I reference that meeting to enable the profile?

This is the one that gets to me too sometime, and hopefully unclemike can explain it. It seems when I create a context at 11am on day one to fire like you did between 0645 - 1600, it only will activate the next day when it enters 0645 since it's already passed 0645 on day one when I created the context. So, unless I set the start time to later then the time I create the context on day one, or set the 'repeat' value, it never enters the context on day one.

As for the meeting dilemma, Unclemike posted here or somewhere else I was reading his masterful wizardry, to add the vacation Calendar Entry context with the 'invert' setting on the profile. That way, the profile won't go active if the Calendar Entry for 'vacation' exists.
 
It's 10:55am now, and I just created a time-based profile from 07:55 - 16:55 that turns silent mode on. As soon as I hit the Apply button in Tasker, the profile went active and my phone went into Silent Mode. If you don't exit Tasker using the Back hardware key or the Apply button, a newly created profile won't activate.
 
@ewingr: I've had a problem with variable persistence also, and added a profile with a Device Boot context that clears the %HOME variable. A cleared variable has no assigned value, but Tasker will treat it as if its value were zero in certain mathematical situations. Variable Add is one of those situations. Setting the value to zero makes the intention more clear, an makes it easier to understand when you back to look at it months later.
 
I just tried it here and it worked fine. Try adding a Flash action just before the Send SMS action in your task, and flash the %CNUM variable on screen proior to attempting to send the message.

Flash [Text: %CNUM] [Long: Checked]
Send SMS [Number: %CNUM] [Message: <your message>]

Does the flashed text appear to be a valid number for sending an SMS?
 
@ewingr: I've had a problem with variable persistence also, and added a profile with a Device Boot context that clears the %HOME variable. A cleared variable has no assigned value, but Tasker will treat it as if its value were zero in certain mathematical situations. Variable Add is one of those situations. Setting the value to zero makes the intention more clear, an makes it easier to understand when you back to look at it months later.

This has fixed my problem of getting WiFi to turn off n on with display.

I have added a variable clear profile to device boot. Have display off to turn wifi of

Then have a display on profile to turn wifi on when %Home variable is greater than 0. This way WiFi only turns back on with screen If I'm at home.

I love this app. I'm working on a send sms profile now.
 
Is it possible to create a task based on a notification? For example, I am using SportsTap for notifications on some baseball games. But, let's say I want to use a crowd cheering for the notification sound. Can I set Tasker up to play a specific sound when I get a notification?

Keep in mind notifications are not SMS messages. This is just one example. I get notifications from several programs, and some of them play the default SMS notification tone. I want to use tasker as a custom notification utility for programs.

Simply, I want a task that says "if program X pushes a notification, perform action Y"

Can this be done?
 
I just tried it here and it worked fine. Try adding a Flash action just before the Send SMS action in your task, and flash the %CNUM variable on screen proior to attempting to send the message.

Flash [Text: %CNUM] [Long: Checked]
Send SMS [Number: %CNUM] [Message: <your message>]

Does the flashed text appear to be a valid number for sending an SMS?

Hi,

I also have the issue with CNUM. I have tried to flash it but I only have %CNUM in the alert box.
 
Simply, I want a task that says "if program X pushes a notification, perform action Y"

Can this be done?

According to the developer, Android prevents apps from accessing active notifications or hooking into them in any way. So, unfortunately, I don't think this can be done (yet).
 
Hi,

I also have the issue with CNUM. I have tried to flash it but I only have %CNUM in the alert box.

That tells me that either %CNUM has no value, or that for some reason Tasker is not substituting the appropriate value. At this point you're better off posting your problem in the Tasker discussions at Google Groups, where the developer will likely see it. I believe there is already a thread over there on this, and you should probably add to it.
 
Tasker is the best app I've come across. So far my uses for it include:


...Set my ringer to vibrate only during calendar events that have certain characteristics (i.e. they contain the word "meeting" or "doctor", or have "vibrate" in the description)...

Can you tell me how you did that? I've been trying to mess with the settings but can't get it right.

*EDIT*
So I read the Wiki (http://tasker.wikidot.com/muteinmeetings) and followed those steps including adding the word 'Meeting' in the Title portion of the Calendar Entry. Is that correct?
 
Back
Top Bottom