Any self-hosted option for real time location sharing?

Hi there, everyone. For various reasons, our family makes use of Life360. I'm wanting to move to either a linux or completely degoogled phone…

I use Home Assistant for this. It works very well and the data is all local. It’s probably a bit heavy if you don’t use the other parts of home assistant though.

Do you know if it works well with GrapheneOS?

Does it use http or MQTT?

I was using Traccar and that worked well until moving to GOS and then background updates wouldn’t work.

I tried owntrack and nextcloud but never got it to work.

Does it use http or MQTT?

Home Assistant uses HTTP for this. Realistically, you won’t see much difference between HTTP and MQTT for this use case.

MQTT is harder to secure than HTTP, and has some limitations (eg it normally only supports username and password auth - no SSO, no 2FA) so I’d avoid it for anything public-facing unless you have a specific reason to use it. Using it via a VPN is fine, but you’d still need to configure a separate MQTT username and password per user.

It uses http, and yes, it works perfectly on GrapheneOS.
Home Assistant location doesn’t quite play nice with GOS. My wife and I have been looking for a Life360 replacement ourselves. She runs Graphene, and it’ll grab location periodically, but it’s not consistent.
Do you use persistent connection? Both myself and my partner use GOS and it works fine, and updates frequently. You might also be able to change the pull rate as well.

I want to say I enabled it, but I’ll have to check again.

Does it affect the battery usage much by increasing the poll rate?

I think it could drain battery depending on what settings you tweak. However, I don’t have terrible battery drain. Here’s all of my settings that could be related:

With those settings, I get pretty frequent updates to my location, especially while driving (likely because I plug my phone in while in the car)

Interesting. Thanks for the screenshots, I’ll have my wife check those settings.

So we took a look trying to figure out why her phone wasn’t giving HA a consistent location… She likes to turn off the camera/mic/location killswitches 😂

Quick fix haha, but at least we know that Graphene is doing the thing that it’s known to do!

Haha, glad you figured it out!