[RELEASE] OwnTracks for Hubitat Presence Detection

I re-did my wife's thumbnail just in case the original had some corruption or something, but it still won't appear for me on my map in the Owntracks map. My thumb shows up perfectly on her map/phone so now she can stalk me. EEK!

Her thumb does appear in the Recorder Family Map/Friends tile, but doesn't appear in Google Family map.

Just strange, and can't figure out what I've done wrong or not done, or ? Grrrr.... :wink:

One easy, hopefully, question. Will Owntracks still work on her Z Fold if she turns off the Owntracks notification? She hates persistent notifications...

I'm not sure if I understood correctly. (English is not my native language)
Just to confirm;
The developers of the mobile app (I didn't know that they were separate developers) don't want to use historical data. So even if I install a "recorder" I won't be able to see historical data on the mobile app. Recorder is a separate application which runs on a PC or RPI just for historical data (no other extras ?) and it only provides this as a web page , not to the mobile app.
Is that correct ?

Edit:

I see that the mobile app source is also provided on Github
So I can modify it to display historical data.
How do you send the historical data, what should I check on mobile side ?

Yes, it just masks that ongoing notification (annoys me too, se peas in a pod as they say!) Let me check more into why you are having the thumbnail issue.

Yes, you can build out whatever you want the app to do. To send it backwards, you'd have to look at the OwnTracks app code and do something similar to what I did with the Google friends map.

what do you mean ?
Does your code send the data to the mobile app ?
I assumed so. If yes, then in what format it is posted ? Does the mobile app pull the data from the server ? (hubitat in this case)

It sends some data. I suggest you go through the readme on the mobile app, but I can tell you right now, I'm not going down the rabbit hole to do what you are asking or hold our hand along the way. You are 100% on your own if you think you need to do this......

You are just re-doing what the Google Family map displays already.

2 Likes

HUGE FYI if you are using the OwnTracks Recorder and got clever like me and configured it to geocode addresses with this optional configuration parameter:
OTR_GEOKEY="<optional Google Geocode API Key>"

Each location event is sent to the recorder, and each one is counting towards your 10,000 free monthly quota. I have no means to block over-use of the geocode lookups since the OwnTracks app cannot count those.

I'd recommend NOT using geocode lookups on the recorder, or configure it to use a different provider than Google.

5 Likes

Hi just checking what is the latest side load version for the smart phone I see it at 2.5.6 is this correct?. Also is it still preferred over the App store version?

2.5.6 is the latest version. Below is the delta between them, but if you aren't going to build it with your own google key, you don't get #5. Honestly, using the Play Store is almost the same, with less benefit now from the sideload.

Improvement customizations to OwnTracks

  1. Disabled the monitoring mode drawer in the map (DrawerProvider.java / MapActivity.kt)
  2. Assign optimal defaults to the parameters and default to HTTP mode (DefaultsProvider.kt)
  3. Hide 'password' since it is not used (preferences_connection.xml)
  4. Allow the trackerID to be more than 2-characters (contact.kt)
  5. Add an 'address' with the geocoded address (defaults to lat/lon if no address is available) (MessageLocation.kt / BackgroundService.kt / LocationProcessor.kt)

Ok thank you for the feed back and explanation.

1 Like

hey @lpakula

I've been using almost exclusively the google family map, and I was wondering if it would be possible to have it start at a specific member? right now the other user on my instance is in another country, and it's quite tricky to scroll all the way to their location.
I noticed the url is something like this:
http://MYIP/apps/api/2404/googlemap?access_token=ACCESS_TOKEN&member=

I tried filling the &member parameter at the end with the name of the member, but nothing seems to happen.
A possible solution for my case at least would be to just be able to have a "google family map" for individual members?

Thank you so much!

Edit: looked at the app code and realised that the member needs to be lowercase in the end. It works!

Yes, you can just append the user you'd like the map to start with at the end of the URL. So if the user is "Bob", then for your example:
http://MYIP/apps/api/2404/googlemap?access_token=ACCESS_TOKEN&member=Bob

hmmm I think there might be a bug there.
http://myip/apps/api/2404/googlemap?access_token=ACCESS_TOKEN&member=Bob
That works at first.
But then, if I change the member at the end to another member, it keeps loading the same location as before, it doesn't seem to take any effect. It's as if its cached or something?

I get this error... Using the username either an all lowercase or as entered in the app.

{"error":true,"type":"AppException","message":"Not Found"}

1 Like

Let me check that as soon as someone leaves the house today.

Are you using your cloud link and adding the name? I don't see that error from my side.

now it's working again for me, but only if using the member name lowercase.

1 Like

I just pushed 1.8.13 to address that. It should have been ignoring case for the centering feature.

Just updated to test, and indeed the lowercase part is fixed, but I realised now why it sometimes didn't work before. You can test it yourself:
If after loading the map you click somebody (so you are actually following them), no matter how many times you refresh the page, change the member attribute, change browsers, it will still center on that person that you clicked.
It will only respect the member attribute if you click somewhere else on the map.
The "following" function seems to be getting stuck.

Ignore my post, operator typo error. :slightly_smiling_face:

1 Like