[Dead] Location Tracker

Introducing 'Location Tracker'

Track your phone’s location. Works with the 'Life360 with States' app (free and paid) and with your OWN locations.

NOTE: This replaces the ‘Life360 Tracker’ app.

Send location data from your phone to Hubitat using either:

  • Life360 (Android or iOS)
  • Tasker with AutoLocation (Android)

Features:

  • Works with the ‘Life360 with States’ App and/or Tasker
  • Locations can come from Life360, Tasker and/or manually entered into the Places device page
  • Can create unlimited Places!
  • Know when a user has arrived, has been there or is moving.
  • Alerts - Get special alerts based on Phone Battery and/or Places NOT allowed
  • Can notify by Speech, Push and/or turn on/off a switch.
  • See your status on a Dashboard tile! Two tiles available, Status and History.

Link to the Life360 with States app.

Note: If you know of a way to get (name,lat,lng, optional: radius) from iOS, let me know!!

App can be found on my Github:

Parent:

V1.0.0 - 01/?/20 - Initial release

Child:

V1.0.0 - 01/?/20 - Initial release


Differences in Apps...

  • Life360 (phone app) - https://www.life360.com/
  • Tasker (phone app) - https://joaoapps.com/
  • Life360 with States - Pulls all the data into Hubitat from the Life360 app
  • Location Tracker - Pulls all the data into Hubitat from the Tasker app and Life360 with States to do some cool stuff! :wink:

HE Life360 Connector should be at the least disabled, if not removed as it is not needed.

1 Like

PLEASE do the install instructions in order. :wink:


Installation instructions - if using ‘Life360 with States’

Requires ‘Life360 with States’ to be already installed and working properly.

In HE:

  • Install parent app - Location Tracker (LT-parent.groovy)
  • Install child app - Location Tracker Child (LT-child.groovy)
  • Install driver - Location Tracker Places Driver (LTPD.groovy)

Installation instructions - if using ‘Tasker’ (Android)

Requires:

  • ‘Tasker’ to be installed on your Android phone (paid)
  • ‘Tasker’ add-on AutoLocation (paid)
  • Either an API Key from Google Maps or a Consumer Key from MapsQuest (both have free tiers)

In HE:

  • Install parent app - Location Tracker (LT-parent.groovy)
  • Install child app - Location Tracker Child (LT-child.groovy)
  • Install places driver - Location Tracker Places Driver (LTPD.groovy)
  • Install user driver - Location Tracker User Driver (LTUD.groovy)

On Phone:

  • Have Tasker installed and operating correctly
  • Have add-on AutoLocation installed (how to setup is below)
  • Follow the next few sections carefully to setup Tasker
  • Requires only 2 Tasks and 1 Profile
  • IMPORTANT: Capitalization counts when working with Tasker!
    .
How to setup - AutoLocation

Setting up AutoLocation

  • Click 'Start Monitor'

That's it!

How to setup - Task - New Places from Tasker

Setting up Location Tracker - New Places

This will be the same for each for you want to setup.

Create New Task

  • Open Tasker, go to Tasks, click the '+' in the lower right hand corner
  • Enter in a name for the Task - 'Location Tracker - New Place' and hit the 'check mark'
  • On new screen, hit the '+' again, on bottom 'Filter' type 'Query', select 'Variable Query'
  • Title: Name of New Place?
  • Variable: %PLACE
  • Hit the 'back arrow' at the top of screen
  • Hit the '+' again, on bottom 'Filter' type 'HTTP', select 'HTTP Request'
  • Method: Get
  • URL: This is the URL found in MakerAPI. Replace YOURAPPNO and YOURDEVICENO with your info and also be sure to include the /addPlace/%PLACE,%LOC,200 portion.
    ie. https://cloud.hubitat.com/api/19i34kajdi-kdjfdk-kdfjdk-kdjfdk/apps/YOURAPPNO/devices/YOURDEVICENO/addPlace/%PLACE,%LOC,200?access_token=akdjfdksj-akdfj-kdfjd-kakjf
  • Hit the 'back arrow' at the top of screen
  • On new screen, hit the '+' again, on bottom 'Filter' type 'Pop', select 'Popup'
  • Title: Location Tracker
  • Text: All set!
  • Hit the 'back arrow' at the top of screen

To save:

  • Hit the 'back arrow' at the top of screen
  • Hit 'Check Mark' at the top of screen

How to setup - Task - Push Location from Tasker

How to setup - Push Location from Tasker

This will be different for each device you want to setup.

Create New Task

  • Open Tasker, go to Tasks, click the '+' in the lower right hand corner
  • Enter in a name for the Task - 'Location Tracker - Push Loc' and hit the 'check mark'
  • On new screen, hit the '+' again, on bottom 'Filter' type 'get', select 'Get Location V2' (make sure it's the V2)
  • Hit the '+' again, on bottom 'Filter' type 'if', select 'if'
  • Condition: %gl_coordinates 'NEQ' %PrevLoc
  • Hit the 'back arrow' at the top of screen
  • Hit the '+' again, on bottom 'Filter' type 'HTTP', select 'HTTP Request'
  • Method: Get
  • URL: This is the URL found in MakerAPI. Replace YOURAPPNO and YOURDEVICENO with your info and also be sure to include the deviceLoc/%DATE,%TIME,%gl_coordinates,%LOCSPD,%LOCALT portion.
    ie. https://cloud.hubitat.com/api/19i34kajdi-kdjfdk-kdfjdk-kdjfdk/apps/YOURAPPNO/devices/YOURDEVICENO/deviceLoc/%DATE,%TIME,%gl_coordinates,%LOCSPD,%LOCALT?access_token=akdjfdksj-akdfj-kdfjd-kakjf
  • Hit the 'back arrow' at the top of screen
  • Hit the '+' again, on bottom 'Filter' type 'variable', select 'Variable Set'
  • Name: %gl_coordinates
  • To: %PrevLoc
  • Hit the 'back arrow' at the top of screen
  • Hit the '+' again, on bottom 'Filter' type 'end', select 'End If'

To save:

  • Hit the 'back arrow' at the top of screen
  • Hit 'Check Mark' at the top of screen

How to setup - Profile - Location Tracker - Activity

Setting up Location Tracker - Activity

Create New Profile

  • Open Tasker, go to Profiles, click the '+' in the lower right hand corner
  • Enter in a name for the Profile - 'Location Tracker - Activity' and hit the 'check mark'
  • Choose 'Event', type in 'auto' and select 'AutoLocation A...'
  • Click the 'Pencil' and select the ways you want to track.
    -- I have: In Vehicle, On Foot, Walking, Running, On a Bicycle and Unknown checked off. Min Confidence: 50
  • Hit the 'check mark' at the top of screen
  • Hit the 'back arrow' at the top of screen
  • Choose 'Location Tracker - Push Loc' that we made earlier
  • Hit the 'check mark' at the top of screen

2 Likes

Whether you use Life360 and/or Tasker, anyone can create Places. All places are stored in a device called 'Location Tracker - Places' and is automatically created for you. Within this device you can Add, Edit or Delete any Place.

2 Likes

I see you are doing some development work in there...looking forward to the result...

2 Likes

You do great work. Your Life360 with states allows lat/long to 1.0E-4 (and yes, I know the values waiver with sensor report positioning changes). What is your minimum usable nRadius for this new app?

Not sure if this maybe got turned on when you were fixing the L360 problem a debug message pops up for me even with debug logging turned off for the device.

I created a pull request to fix it... I know it's picky.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.