[RELEASE] OwnTracks for Hubitat Presence Detection

Are you using the GPS for locations?

Google screwed up their fused location service back in Sept (they seemed to acknowledge an issue, and have been quiet about it). If don't enable the GPS slider, then it wants to use wifi to reduce battery consumption. The issue is since their Sept update, they don't seem to be using wifi, so you get no locations.

2 Likes

I only had the 2nd option for 'turn off' enabled. I just changed use GPS to enabled. THANKS

1 Like

I had to change my phone from Samsung s23 to Samsung s25 and noticed that my location started to jump. I mean suddenly I'm 3,3km away from home even though I'm sitting at my home sofa. There seems to be no logic or reason why it happens. This seems to be first Samsung that does it. My son used to have oneplus phone and it did exactly the same thing.
Hopefully Samsung updates "something" and I surely hope that it fixes this issue. Meanwhile.. there is probably nothing that would help me with this issue right?

Setting the Home Wi-Fi settings should help w/jumpiness...

Yep, it should but it doesn't :frowning:
It still shows SSID as connected but the location is way off..

1 Like

Interesting. I was having some similar symptoms earlier yesterday, and maybe the day before, not sure, but things seem to have calmed down starting sometime yesterday late afternoon, and today it looks like I'm having normal behavior. I am on the current hub platform beta, are you?

FYI: For those folks who are trying to run Owntracks Recorder and Frontend in Docker on Synology NAS DSM 6.x ...

I'm a Docker noob and chose not to use Portainer because I've been flummoxed by it before; instead, I used the native Synology Docker app's control panels to get the Recorder and Frontend set up. Owntracks Recorder and its web page came up quite easily but I had to bang on it for a day trying to get the Frontend to serve a map at all.

Once the Frontend web map was alive I still had what appeared to be issues getting the Frontend in one container to GET the data from the Recorder in the other container. Being a noob I did not have a clear concept of server names vs container names and how processes in different containers can communicate, so I was trusting that I had the the environment variables specifying the ports and server names correctly set up.

image

Unfortunately setting those environment variables was necessary but not sufficient, and I was still getting weird errors in the Frontend log

[error] 10#10: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server:, request: "GET /api/0/list HTTP/1.1", U..
[error] 10#10: *14 rewrite or internal redirection cycle while internally redirecting to "/config/config.js/index.html/index.html/index.html/index.html/index.ht..
[emerg] 9#9: host not found in upstream "owntracks-recorder: 8083" in /etc/nginx/nginx.conf:7

As it turns out, there was one of the Docker settings panes that I had ignored: the Links pane, which maps external containers to hostnames that can be referenced by the container being set up. Linking the Recorder container name 'owntracks-recorder' to the exact same-named alias 'owntracks-recorder' referenced by the Frontend turned out to be the key to making the data connection between the two processes in these two containers.

image

Along the way I also spun my wheels creating a Frontend /config directory, mapping it to a path in the Frontend container and populating it with a config.js that I found elsewhere in this thread, but in the end that config file was not even necessary to get the two processes talking to each other and the Frontend's defaults were sufficient to create a perfectly functional map.

Next up: trying to get the thumbnail jpegs for each user to show up on these maps the way they already do on the Owntracks mobile app!

3 Likes

is it possible to display historic location on mobile app ?
I can see the location tracking lines on map (on browser) but doesn't show up in mobile app.

Also, what is the effect of increasing "Number of total past member locations to save " ?
does it use memory on Hub ?

what is "owntracks recorder" ? When do I need it ?

Finally (finally!) got wife to OK Owntracks on her phone...

She can see my thumbnail in Owntracks on her phone, but I can't see hers. We're both at home. Her thumbnail is uploaded to the hub, 96x81 dimensions. I see it in the tiles, etc., on her phones Owntracks device page. Her thumbnail name is the same as her phone's Owntracks user name/Owntracks device name, and it's a jpg.

I've used the sync member settings option a few times, hit the up arrow on the Owntracks map on both phones to update them. Also just rebooted my phone. But her thumbnail just does not show up for me on my phone.

Any suggestions for what I'm missing?

Here's a stupid answer, I have a plethora of stupid questions spare. :slight_smile:
On my phone I don't see my gif just my wifes; I am but a pin.
On the Family tile I see both of us as gifs.
Have you enabled the Family map?

No, the developers of the app never allowed for that. That's where they developed the "recorder" to show that history, but it requires a separate computer to run. You really don't need it anymore since I added in the past history to the OwnTracks browser map.

It increases the amount of data I need to send from Hubitat to the browser to display on the map. If you go too high, the request gets rejected by the Hubitat cloud (and it just wastes mobile data if you are viewing on your phone).

Yeah, I think that's expected, to see other family member's thumbnails but not your own..

The Google Family Map only has me on it for some reason.

I must have forgotten to do one or two things. What am I missing, @lpakula? :slight_smile:

  • Can't see my wife's thumbnail in Owntracks on my phone, she can see mine.
  • Can't see her on our Google Family Map, but I can see me

I can see her on her own individual "member location" and "member presence" Google Cloud links.

1 Like

What you did sounds right. Wait, did you upload her thumbnail to the hub as well? I pull those images from the physical hub.

Oh and congrats on getting the wife on board. I just chose the "forgiveness over permission" and may have forced the entire family to use it. Purely to support the project of course! :joy:

5 Likes

Yeah, her thumbnail is on the hub, and appears in the tiles on the Owntracks device and in the Google cloud map links, so I know the jpg I uploaded does work...it's 96x81.

What size is it? Sometimes they are too high of a DPI which creates a too large of a file.

image

Hmm... that is definitely fine.

1 Like

I know...it's strange, isn't it.

Wife has a honey-do for me I need to attend to...if you (or anyone) have any ideas on this please post and I'll be back later to see if I can get this working normally.

One thing I will do is re-create her thumbnail just in case there is something wonky about the current one that is stopping it from working on the mobile app on my phone.

1 Like