GPS history view/map

I am using the new GPSTracker binding to track the location of our phones. I’d like to store locations and date/time in my InfluxDB and somehow automatically create a map view of our location histories. Does anyone have an idea how to do that? I’d like to be able to get something like a Google Maps route view with the history of the past 24 hours or so.

3 Likes

That would interest me too.
Is there a solution to this?

Also interested.
Have MariaDB persistence active already

GPSTracker with OwnTracks-APP is working:
I can see the actual position of my Mobile in my openHAB-Item

Now I try to store all positions in my DB and display it in a map. I only find this 3-years-old ticket
Did anyone solve it?

Sketch of a solution - based on https://wiki.openstreetmap.org/wiki/Openlayers_Track_example:

  1. Store your data as a gpx file in conf/html.
  2. Store the HTML code in conf/html/osm_test.html.
  3. Adjust url, lat, lon, zoom (url: "http://localhost:8080/static/your_track.gpx").
  4. Test it: http://localhost:8080/static/osm_test.html

Example files:
around_lake.gpx.txt (982 Bytes)
osm_test.html.txt (3.0 KB)

Use rules to create the gpx files and to adjust the parameters in osm_test.html.

Use
Webview url="Webview url="http://localhost:8080/static/osm_test.html" height=10
in your sitemap

But unfortunately, this doesn’t seem to work:
net::ERR_CONNECTION_REFUSED

Any hints how to fix this?

1 Like

UI integration:

grafik

Hi @Ap15e ,

thanks for your support