Skip to content

Commit ab409df

Browse files
committed
Include SuC geofences to calculate charging cost
Fixes #2753
1 parent c905e51 commit ab409df

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

grafana/dashboards/charging-stats.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"editable": true,
2323
"fiscalYearStartMonth": 0,
2424
"graphTooltip": 1,
25-
"iteration": 1656105654302,
25+
"iteration": 1658137661652,
2626
"links": [
2727
{
2828
"icon": "dashboard",
@@ -105,7 +105,7 @@
105105
},
106106
"textMode": "value"
107107
},
108-
"pluginVersion": "8.5.4",
108+
"pluginVersion": "8.5.6",
109109
"targets": [
110110
{
111111
"format": "table",
@@ -185,7 +185,7 @@
185185
},
186186
"textMode": "value"
187187
},
188-
"pluginVersion": "8.5.4",
188+
"pluginVersion": "8.5.6",
189189
"targets": [
190190
{
191191
"format": "table",
@@ -266,15 +266,15 @@
266266
},
267267
"textMode": "value"
268268
},
269-
"pluginVersion": "8.5.4",
269+
"pluginVersion": "8.5.6",
270270
"targets": [
271271
{
272272
"datasource": "TeslaMate",
273273
"format": "table",
274274
"group": [],
275275
"metricColumn": "none",
276276
"rawQuery": true,
277-
"rawSql": "SELECT\n\tsum(cp.cost)\nFROM\n\tcharging_processes cp\nLEFT JOIN \n\taddresses addr ON addr.id = address_id\nWHERE\n $__timeFilter(end_date)\n AND addr.name LIKE '%Supercharger%'\n\tAND cp.cost IS NOT NULL\n\tAND cp.car_id = $car_id;",
277+
"rawSql": "SELECT\n\tsum(cp.cost)\nFROM\n\tcharging_processes cp\nLEFT JOIN \n\taddresses addr ON addr.id = address_id\nLEFT JOIN\n geofences geo ON geo.id = geofence_id\nWHERE\n $__timeFilter(end_date)\n AND (addr.name LIKE '%Supercharger%' OR geo.name LIKE '%Supercharger%')\n\tAND cp.cost IS NOT NULL\n\tAND cp.car_id = $car_id;",
278278
"refId": "A",
279279
"select": [
280280
[
@@ -348,7 +348,7 @@
348348
},
349349
"textMode": "value"
350350
},
351-
"pluginVersion": "8.5.4",
351+
"pluginVersion": "8.5.6",
352352
"targets": [
353353
{
354354
"format": "table",
@@ -422,7 +422,7 @@
422422
},
423423
"textMode": "auto"
424424
},
425-
"pluginVersion": "8.5.4",
425+
"pluginVersion": "8.5.6",
426426
"targets": [
427427
{
428428
"format": "table",
@@ -498,7 +498,7 @@
498498
},
499499
"textMode": "auto"
500500
},
501-
"pluginVersion": "8.5.4",
501+
"pluginVersion": "8.5.6",
502502
"targets": [
503503
{
504504
"format": "table",
@@ -1395,7 +1395,7 @@
13951395
"showHeader": true,
13961396
"sortBy": []
13971397
},
1398-
"pluginVersion": "8.5.4",
1398+
"pluginVersion": "8.5.6",
13991399
"targets": [
14001400
{
14011401
"format": "table",
@@ -1537,7 +1537,7 @@
15371537
"showHeader": true,
15381538
"sortBy": []
15391539
},
1540-
"pluginVersion": "8.5.4",
1540+
"pluginVersion": "8.5.6",
15411541
"targets": [
15421542
{
15431543
"format": "table",
@@ -1645,7 +1645,7 @@
16451645
},
16461646
"showHeader": true
16471647
},
1648-
"pluginVersion": "8.5.4",
1648+
"pluginVersion": "8.5.6",
16491649
"targets": [
16501650
{
16511651
"format": "table",
@@ -1757,7 +1757,7 @@
17571757
},
17581758
"showHeader": true
17591759
},
1760-
"pluginVersion": "8.5.4",
1760+
"pluginVersion": "8.5.6",
17611761
"targets": [
17621762
{
17631763
"format": "table",

0 commit comments

Comments
 (0)