GPSTracker with Life360, OwnTracks and GPSLogger integration

Yes, sorry - I should have mentioned this.
Downloaded the jar, restarted the binding and it works

Switched the log back to INFO and I now see the expected events in the log:

2018-10-05 22:05:04.206 [vent.ChannelTriggeredEvent] - gpstracker:tracker:c1:regionTrigger triggered System/leave

The big question now is why the centrally built version different and how I can force the rebuild. I don’t have any changes in the local repo…

I wish I could help with that - maybe @mstormi has an idea?

Force pushed everything again. It’s building now. Hope this time it will be better…

Happy to test once it’s done.
Do you plan to add an Accuracy-channel anytime soon? This would be great for visualization in Habpanel.

@Chrishab @mstormi
Thank you both for testing and feedbacks! I hope you’ll find this binding useful.

1 Like

There is no really a plan. It can be extended in no time if you think it is useful. I’m not using Habpanel - how would it help the visualization?

Thanks for providing this. I’ve been using the old mqttitude binding to run some presence related functions in my house but got annoyed by owntracks’ lack of reliability (using MQTT) so I’m happy to make use of yours.

I’m not sure though about if the compile in latest (#1381) works. Still using that one you temporarily provided here. And your PR is still open. Will wait with testing for #1382 as that’s to include another set of ESH fixes.
#6295 also isn’t fixed yet.

For habpanel there are several ways to show a map with markers on it (locations).
With Accuracy the map would show a circle showing how accurate the measurement was.
See https://community.openhab.org/t/custom-widget-map/39225/4 for an example.

1 Like

@Chrishab
I see… Give me me few minutes…

1 Like

Yes, actually very useful! Thank you for this. I especially like the fact that no MQTT server is needed.
Like @mstormi I will wait for the corrected snapshot binding though.

A local version with accuracy support. It works locally for me but could you also check before the push? If it’s OK I’ll include it in the same PR. Thx

2 Likes

Very nice! I deleted my thing and let the binding re-discover it and the new channel was available.
It gives the correct value. Thank you so much!!

Hi @gbicskei,
I tried your binding to connect via https://myopenhab.org/gpstracker/owntracks
But get in owntracks only an 403 error.
The login credentials I’m using are OK so I was wondering if I just miss something here.

Matt

Try https://home.myopenhab.org/gpstracker/owntracks
That works for me

Thanks a lot, that did the trick

Matt

Hi all,

i downloaded the jar from @gbicskei link and updated my config as in this threat described. But i have no luck with the switches.

I can send coordinates via Postman and my openHAB are good with it. But the switches still don’t turn on (or off).

Thing config is created via PaperUI and my Items look like this:

Location locationNils "Nils GPS" {channel="gpstracker:tracker:ni:lastLocation"}
Switch atWorkNils "Nils arbeiten [%s]" {channel="gpstracker:tracker:ni:regionTrigger" [profile="gpstracker:trigger-geofence", regionName="Work"]}
Switch atHomeNils "Nils zuhause [%s]" {channel="gpstracker:tracker:ni:regionTrigger" [profile="gpstracker:trigger-geofence", regionName="Home"]}

What can i do?

Where did you define Home and Work regions? On your phone or by defining distance channels? A log would be useful as well to be able to help (from the binding start till the second received message). This is the updated documentation. Did you do the configuration based on this?

I have defined distance channels via PaperUI. I test the switch with OwnTracks Location.

Where can i finde the logs you required for troubleshooting?

All i configured was with help of the old and new documentation.

userdata/logs/openhab.log

Make sure to set the trace level described in the documentation.