Is it possible to combine location and time/date with AND/OR?

68 views
Skip to first unread message

dcatiller

unread,
Aug 9, 2010, 2:28:05 PM8/9/10
to Tasker
First, I have to say Tasker is the best app I have on my phone! Great
job!

I have two situations where it would be really handy to be able to
combine time conditions with location. Here they are:

Regular Thursday Meeting:

I have a networking meeting every Thursday between 11:15 AM and 1:05
PM at a specific location. If my phone makes any kind of sound during
the meeting, I have to pay $20! What I'd like to be able to do is have
the phone silenced if I am at that location, during the time specified
on Thursday. I use an appointment to silence the phone now, but if I'd
really like it to only trigger when I'm at the location, just in case
I miss the meeting.


Church on Sunday:

On Sunday, I'd like to have the phone silenced as well, but in this
case only when I'm at the location, during certain times Sunday or
Saturday evening. What time I'll be there is not really predictable,
so I don't use appointments to silence the phone. Outside of Saturday
or Sunday, I'll have an appointment silence the phone, but ANDing with
location would be really handy, again in case the schedule changes.

Any help you could offer on this would be greatly appreciated.

Thanks,
Doug



BossMan

unread,
Aug 9, 2010, 4:03:50 PM8/9/10
to Tasker
You can add additional contexts to existing profile - in case of the
meeting this might be a location (can you get the fix in that place?)
or Wifi Near (if there's an access point the room or close to it)
context.
As for church: probably also a location context - use net location if
it gives you satisfactory accuracy - GPS might not be able to get fix
once in the building. You can use wifi near context as well, but
access points in churches are not very common... Also, if you're
driving to church, it might be possible to use "not docked" state as
well.

Oh, and by the way - all contexts in a profile are bound with the AND
logic.

BR,
A.

dcatiller

unread,
Aug 9, 2010, 4:39:52 PM8/9/10
to Tasker
BossMan,

Thanks, that's really helpful. I already had reliable location
profiles created for both situations (I use GPS only, and make sure I
have time for it to hit before entering the building in both cases),
but wanted the extra conditions of time to apply. It wasn't obvious to
me how to add an additional context before, but now that you've
pointed me in the direction of multiple contexts in a profile, it
seems pretty basic. I went in and added the time and day of week
contexts, and it looks like it will do exactly what I want.

Thanks for the help!

Doug

Tevya

unread,
Aug 9, 2010, 8:40:07 PM8/9/10
to Tasker
So I tried a similar thing where my phone turns off auto update, as
well as GPS if I'm at home (I work from home) during work hours.
However, it didn't seem to work. I'll watch again tomorrow, but am
fairly certain it didn't work properly. However if its an AND
statement to start the task, is it also AND to end it? Or as soon as
one of the contexts ceases, does that stop the task? Also does the
location have a set polling time to determine if you're still in that
location? I ask the last question, because the task turns off the GPS,
so I'm wondering if it decides I'm somewhere else because the cell
tower locator is really inaccurate out here?

Here's what I want to do, and if there's a better way, somebody can
tell me: I want GPS and auto updates to be turned off throughout the
day. But once in a while, I want them both to turn on. The GPS to see
if I'm still working at home, and if not, exit the task; and the auto
updates so that I still get updates but only once every couple hours
to minimize distractions.

What I did (but doesn't seem to be working) is to set the time and
location. Then in the task set auto sync and gps off, followed by a
2hr wait, then set auto sync & gps on, a 4 min wait, and finally a
goto action 1 so that it starts over. Is this a good way to do this?
And does the GPS need to be turned on more frequently for tasker to
know my location?

Thanks.

BossMan

unread,
Aug 10, 2010, 5:37:06 AM8/10/10
to Tasker
Hi,

> However if its an AND
> statement to start the task, is it also AND to end it? Or as soon as
> one of the contexts ceases, does that stop the task?
It uses AND-logic, so profile is active only when all contexts are
true. If any context is false, a profile becomes inactive.

> Also does the
> location have a set polling time to determine if you're still in that
> location?
Yes, the timeout is configurable in the preferences (separately for
display off/on cases). If you use GPS location context, you need to
have GPS on - the context does not toggle it on its own.

> Here's what I want to do, and if there's a better way, somebody can
> tell me: I want GPS and auto updates to be turned off throughout the
> day. But once in a while, I want them both to turn on.
Instead of Wait-actions you can use a time context, with the "repeat
every" option enabled. Then you can enable Auto Sync - it will be on
for one minute (this is how long the "repeat every" context is active)
and then will be restored automatically. If you want to get a location/
fix at the same time, see this message: http://groups.google.com/group/tasker/msg/dc10fdbe0251467b

> The GPS to see
> if I'm still working at home, and if not, exit the task;
1st: exit which task? Did you mean profile?
2nd: it may be hard for GPS to get a fix inside the building - did you
check it's not the problem?

General question: what do you want to get in result? Do you want to
toggle auto sync every couple of hours but only when you're at home?
And if you're not at home you want it on/off?

BR,
A.
Reply all
Reply to author
Forward
0 new messages