Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95327

Track map history

$
0
0

@moshe19803 wrote:

hi,
i would like to use a plugin TrackMap for Grafana that can show location history on a map.
i added the TrackMap plugin and i dont know how to select the right table.

in the plugin page it say:
The plugin requires latitude and longitude measurements provided as floats in two separate fields.

The following setup has been tested using InfluxDB as a data source in the case where latitude and longitude are stored in the location table. You will have customize the query for your setup accordingly.

SELECT median("latitude"), median("longitude") FROM "location" WHERE $timeFilter GROUP BY time($interval)

It’s also possible to use MySQL/MariaDB as a data source by using 2 queries along the lines of:

A: SELECT "latitude" as value, $__time(timestamp) FROM "location" WHERE $__timeFilter(timestamp) ORDER BY timestamp ASC
B: SELECT "longitude" as value, $__time(timestamp) FROM "location" WHERE $__timeFilter(timestamp) ORDER BY timestamp ASC

i have entinty from life360 that have the info for latitide and longitude but i cant find it in the grafana quary.

ani idea?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>