From dc7877d50f92062691cb01554a3b53bd84c56e87 Mon Sep 17 00:00:00 2001 From: Christian Traber Date: Sun, 26 Jan 2020 07:40:21 +0100 Subject: [PATCH] added Charged annotation to projected range dashboard. Prepared to show region after grafana update. (grafana#20752) --- grafana/dashboards/projected-range.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/grafana/dashboards/projected-range.json b/grafana/dashboards/projected-range.json index a30a384ed1..f3fc9d40a1 100644 --- a/grafana/dashboards/projected-range.json +++ b/grafana/dashboards/projected-range.json @@ -9,6 +9,18 @@ "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" + }, + { + "datasource": "TeslaMate", + "enable": false, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "Charged", + "rawQuery": "SELECT\n$__time(start_date),\nend_date as timeend,\nconcat('Charged: ',round(cast(charge_energy_added as numeric),2),' kWh') AS text\nFROM charging_processes\nWHERE\n$__timeFilter(start_date) AND duration_min > 5\nORDER BY start_date DESC", + "showIn": 0, + "tags": [], + "type": "tags" } ] },