Context for NOT being in a location

1,820 views
Skip to first unread message

OhioGuy67

unread,
Apr 7, 2011, 4:27:53 PM4/7/11
to Tasker
Is there anyway to specify a profile context to not be in a geographic
location? Basically I want a profile to trigger whenever I leave an
area.

Rudolf

unread,
Apr 8, 2011, 7:59:37 AM4/8/11
to Tasker
If your location contexts activates a profile you could use:

%PACTIVE doesn't match *,<profilename>,*

CodeMonkey

unread,
Apr 9, 2011, 4:39:18 AM4/9/11
to Tasker
I centralised my location tracking by using a single user variable
%MYLOC.
It (currently) has 3 possible values:
- 0 = Unknown (ie not home / work)
- 1 = Home
- 2 = Work

Value is set as 0 on a Device Boot context, and then adjusted to the
appropriate value based on Cell Near contexts for Home and Work. The
Home and Work profiles return it to 0 on exit tasks. This way you can
drive appropriate behaviour using a Variable Value context.

Radimus

unread,
May 12, 2011, 3:23:20 PM5/12/11
to Tasker
I've been working on this sort of logic myself, but trying to make it
more.... accurate?

Profile: Boot
Set Variable: %MYLOC = 0

Profile: Near home
Context: Cell Near
Task: Wifi on, if %MYLOC = 0
End Task: Wifi off
+ Set Variable %MYLOC = 0

Profile: Home
Context: Wifi near SSID=....
Task: Set Variable %MYLOC = 1
+ Wifi off


The idea being I want to be at the location, in order to be 'tagged'
there (Cell Near is too vague), but I do not want to keep wifi on the
whole time while I am there to keep my location set

The Home and Near Home could be duplicated for work, school, etc. The
"Near Home" profile could be genericized to be "Arriving/Nearing"
whatever, as long as the cells were collected at each site

Suggestions for improvents are VERY WELCOME... I'm thinking about
using a timer to turn wifi on/off every few minutes instead of leaving
it on the whole time.
> > area.- Hide quoted text -
>
> - Show quoted text -

Radimus

unread,
May 13, 2011, 1:10:59 PM5/13/11
to Tasker
Profile: Boot
Context: Device Boot
Task: BootTasks
+Variable Set: %MYLOC = 0

Task: Approaching Destination
+WIFI: On, If %MYLOC=0

Task: Leaving Destination
+Send SMS, to XXXXXXXXX, "Johnny is leaving %MYLOC"
+WiFi: off
+Variable Set: %MYLOC = 0

---- Make one of these below for each destination to be monitored
(Home, School, Work, etc)

Profile: Near __________
Context: Cell Near -> populate with the Cells in the area
Task: Near Location
Exit Task: Leaving Destination

----- make one of these for each of the above (Work, school, Home,
etc)

Profile: At_____
Context: Wifi Near (SSID of wireless network)
Context: Variable Value: %MYLOC=0
Task: _______
+Variable Set: %MYLOC = _______
+Send SMS, to XXXXXXXXX, "Johnny has arrived at %MYLOC"
+Wifi: off (you can skip this one if wifi is used at this location)

-----------------------
> > - Show quoted text -- Hide quoted text -

Eric F

unread,
May 15, 2011, 11:53:11 AM5/15/11
to Tasker
Couldn't you just hit "invert" button?
Reply all
Reply to author
Forward
0 new messages