Using Tasker to know if I'm at work for more than a minute

1.6k Views Asked by At

I use Tasker's Wifi Near option to activate some tasks in my phone when I arrive at my workplace. My problem is that sometimes I pass by my workplace, with no intention of entering, and the tasks get activated.

Is there a way to make Tasker activate the tasks IF I've been near my workplace's wifi spots for more than a minute?

2

There are 2 best solutions below

3
On

Here's a solution :

Profile 1 : When Near Work

  • Enter Task Actions:

    -- Set Variable %NearWork = true

    -- Set Profile_2 to active

  • Exit Task Actions:

    -- Set Variable %NearWork = false (this resets it for use for next time)

Profile 2 : (EVERY 1 min)

  • Enter Task Actions :

    -- Set Profile_2 to inactive (this is the first action that makes sure this profile only runs once after 1 min delay)

    -- if (%NearWork = true) *This only passes if the Exit Task on Profile 1 hasnt run. Meaning you are still at work after 1 min)

    ---- {{run your actions here. Alternatively call a task which has the actions }}

0
On

Create three profiles:

Near Work

Activates when you are near the work Wifi.

  • Enter Task Actions:
    • task -> wait -> 100 milliseconds (actually no actions)

At work for more than 1 minute

Activates when 'Near Work' profile is active (State -> Tasker -> Profile Active).

  • Enter Task Actions:

    • Task -> Wait -> 1 minute
    • if the 'Near Work' is still active, then call your 'At Work' tasks

Note that the Wifi Near checks frequency is controlled by Prefs/Monitor/Wifi Scan Seconds (screen on) and Prefs/Monitor/Display Off All Checks (screen of). So you need to consider those values too.