I was looking for a fall back solution as Life360 was slowly deprecating the features I used, and wanted OwnTracks to work "similar" to Life360 while adding in central management. You can change regions in this app, as well as location and display settings which will get pushed to each device the next time they report a location. This integration supports both the Android and iOS OwnTracks apps.
If you like this integration, feel free to Buy me a Coffee!
The app/driver is available from the Hubitat Package Manager or directly from here:
Click here for the Installation and Configuration Instructions and FAQ
Phone Locations are not Responsive
Phone Locations are not Responsive
If you are using the Android Play Store version, the Owntracks mobile app MUST be opened after each app or phone restart to make it active. You can use 3rd party tools like Tasker to do this automatically, or use the APK version in Post #2 which allows the app to automatically start and run in the background.
Ensure that the phone is set to "Move" or "Significant" monitoring mode (see image below). Tapping this icon will toggle through the "Move->Significant->Manual->Quiet" modes. Manual and Quiet will not report locations automatically. This button was disabled in the APK in post #2:
Android Battery Optimizations
Recommended Battery Settings
- Select 'Settings' -> 'Apps' -> 'OwnTracks' - > 'App Battery Usage'.
- For Android 14 QPR1 and older with the three radio box selection, select the 'Unrestricted' radio button:
- For Android 14 QPR2 and newer with the single 'Allow background usage' slider:
- Select the slider.
- Tap the text for 'Allow background usage'.
- Select 'Unrestricted'.
General troubleshooting steps
Thanks @danabw for the following!
General troubleshooting steps
Turn on debug logging in the app and set it for enough to cover your next trip. Hit Done at the bottom of the app page to save your settings.
Turn on debug logging in your Owntracks device(s) that you want to monitor. Turn off address/location info on debug logging if you want to preserve privacy. Save your changes.
Then take your trip. Keep track of when you leave and when you arrive back home.
When you get back, go to the Logs>Past Logs page and hit the Reload button to update it w/the most recent logs:
Then filter your logs on your Owntracks app and Owntracks devices:
Take screen caps of your filtered logs for the time-frame of your trip. Get logs from several minutes after you arrived home to when your trip started. Send the logs to @lpakula in a PM, or post them here - if you've turned off showing location/addresses in the logs posting them here should be fine. If you post them here, hide them so that this topic doesn't become full of really long posts w/screen caps of logs:
Like this...highlight your screen caps and then use the "Hide Details" option under the gear in the post settings:
OwnTracks Recorder (for Past Location History)
Thanks to @djh_wolf for the walkthrough!
Installing OwnTracks Recorder on Windows
- Install Docker Desktop (Docker Desktop: The #1 Containerization Tool for Developers | Docker)
- Run command prompt
- Type:
docker pull owntracks/recorder
...which will create this under the images section of Docker desktop
- Type the following two commands
docker volume create recorder_store
docker volume create config
...which will create the following volumes under the Volumes section of docker desktop...
- On my system, Docker desktop was installed in the following folder by default:
.. I manually created the following folder tree:
Data -> Docker -> Volumes -> Config -> _data
- Run the following command:
docker run -d --restart always --name=owntracks -p 8083:8083 -v recorder_store:/store -v config:/config owntracks/recorder
- Now when you click on Volumes -> Config...
...you'll see this:
...now double-click on recorder.conf and you'll see this:
- Replace this with the following code:
OTR_STORAGEDIR="C:\Program Files\Docker\Docker\data\docker\volumes\config\_data"
OTR_PORT=0
OTR_HTTPHOST="0.0.0.0"
OTR_HTTPPORT=8083
OTR_TOPICS="owntracks/#"
OTR_GEOKEY=""
OTR_BROWSERAPIKEY=""
OTR_SERVERLABEL="OwnTracks"
(I've added my google api code into there too)
- Run this under Owntracks Desktop -> Images:
...which then gives this error, which I have no idea is important:
- Now you should be able to access the recorder via your browser, once you've entered the settings in the Hubitat owntracks app and sent a location update:
(http://192.168.1.252:8083)
- If the PC is unattended, it needs to automatically login on a restart. This link fixed it:
Configure Windows to automate logon - Windows Server | Microsoft Learn
I had a "page not found for several minutes". Logged on to RD, 30 secs later, docker desktop showed they'd been running for 30 secs and everything worked fine again.
Note this is the default setting for the docker service on my machine:
I tried changing the service to autostart and that didn't make a difference, I still need to log on as a user first.
- Installing the frontend is way better.
docker pull owntracks/frontend
docker run -d --restart always --name=owntracks_ui -p 8082:80 -e SERVER_HOST=192.168.1.252 -e SERVER_PORT=8083 owntracks/frontend
Enter this into browser:
http://192.168.1.252:8082/
...