How do I show the location on the map? Where is the specific vehicle or person?
(I want to see in real time where my vehicle is)
Where do I start?
rpwong
(Russ)
July 30, 2020, 4:42am
2
razserv2010:
Where do I start?
I’d suggest searching the forum for “GPS” and seeing if anything of interest to you comes up.
1 Like
mstormi
(Markus Storm)
July 30, 2020, 7:46am
3
razserv2010:
Where do I start?
Where you should always start:
By reading the docs and searching the forum. Look for the gpstracker binding .
.
1 Like
This thread is always a good start here.
Before you ask…
Community forum is NOT a helpdesk
Let’s put this in the front: nobody here works for openHAB. The community members are helping with an Open Source Project, not a commercial software.
Additionally, the forum is NOT dealing with general Home Automation topics, the focus is on openHAB. In some cases, various products or technologies which are not directly linked to openHAB can be discussed but with the proper title , category or tag .
We are ALL volunteering our free time to help…
I chose to use the GPSLogger app for Android
And it works with openhab but it shows me the location of my previous home and not where I am now
You know how to fix it so I could see my current location?
rlkoshak
(Rich Koshak)
July 30, 2020, 3:31pm
6
There are lots of tutorials a short search away.
By default the Mapview element in OH only supports showing one location at a time. If you are tracking multiple people you need more than one Mapview. This tutorial is based on Google Map and most of the credit goes to @patrik_gfeller . All I’ve done is update it to use the GPSTracker binding instead of MQTT and Scripted Automation using Python for the Rules. I’ve also not implemented the geocoding rules as Google now charges $5 per 1k requests a month. It would not be difficult to implement if …
If you use GPSTracker binding for your presence detection, why not also create personal GPS Tracks in GPX format and make time sheets when you enter or leave a specific place.
I wrote some python scripts for that which I tested with my mariaDB persistence on openhabianpy. They should work also with other SQL databases.
You find them on GitHub: openHABdbTools
Some further description how they work you can read here:
https://albold-home.de/create-gpx-tracks-with-openhab2-presence-detection/
h…
The add-on readme has lots of examples in it too including how to show the current location using the built in OpenMap.
OH is only going to know the most recently reported location. You will have to mess with the GPSLogger app settings to control how often it reports and to make sure that it doesn’t get shutdown in the background.