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.
https://www.openhab.org/addons/bindings/gpstracker/#sitemaps
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.