From ce941d358561269a271a99852cdcef937f0206fd Mon Sep 17 00:00:00 2001 From: Matthias Wirtz Date: Sun, 20 Oct 2024 10:13:25 +0200 Subject: [PATCH] exclude streaming data in visited dashboard --- grafana/dashboards/visited.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/grafana/dashboards/visited.json b/grafana/dashboards/visited.json index bb9047dafd..81e146a64b 100644 --- a/grafana/dashboards/visited.json +++ b/grafana/dashboards/visited.json @@ -213,7 +213,7 @@ "format": "table", "hide": false, "rawQuery": true, - "rawSql": "SELECT\n date_trunc('minute', date) as time,\n avg(latitude) as latitude,\n avg(longitude) as longitude\nFROM\n positions\nWHERE\n car_id = $car_id AND $__timeFilter(date)\nGROUP BY 1\nORDER BY 1", + "rawSql": "SELECT\n date_trunc('minute', date) as time,\n avg(latitude) as latitude,\n avg(longitude) as longitude\nFROM\n positions\nWHERE\n car_id = $car_id AND $__timeFilter(date) and ideal_battery_range_km is not null\nGROUP BY 1\nORDER BY 1", "refId": "Positions", "sql": { "columns": [ @@ -738,7 +738,6 @@ "from": "now-90d", "to": "now" }, - "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -767,6 +766,6 @@ "timezone": "", "title": "Visited", "uid": "RG_DxSmgk", - "version": 3, + "version": 5, "weekStart": "" } \ No newline at end of file