|
22 | 22 | "editable": true, |
23 | 23 | "fiscalYearStartMonth": 0, |
24 | 24 | "graphTooltip": 1, |
25 | | - "iteration": 1673847675441, |
| 25 | + "iteration": 1674146873239, |
26 | 26 | "links": [ |
27 | 27 | { |
28 | 28 | "icon": "dashboard", |
|
61 | 61 | }, |
62 | 62 | { |
63 | 63 | "datasource": "TeslaMate", |
| 64 | + "fieldConfig": { |
| 65 | + "defaults": { |
| 66 | + "color": { |
| 67 | + "mode": "continuous-GrYlRd" |
| 68 | + }, |
| 69 | + "custom": { |
| 70 | + "axisLabel": "", |
| 71 | + "axisPlacement": "auto", |
| 72 | + "axisSoftMin": 0, |
| 73 | + "fillOpacity": 80, |
| 74 | + "gradientMode": "scheme", |
| 75 | + "hideFrom": { |
| 76 | + "legend": false, |
| 77 | + "tooltip": false, |
| 78 | + "viz": false |
| 79 | + }, |
| 80 | + "lineWidth": 1, |
| 81 | + "scaleDistribution": { |
| 82 | + "type": "linear" |
| 83 | + } |
| 84 | + }, |
| 85 | + "mappings": [], |
| 86 | + "thresholds": { |
| 87 | + "mode": "absolute", |
| 88 | + "steps": [ |
| 89 | + { |
| 90 | + "color": "green", |
| 91 | + "value": null |
| 92 | + } |
| 93 | + ] |
| 94 | + } |
| 95 | + }, |
| 96 | + "overrides": [ |
| 97 | + { |
| 98 | + "matcher": { |
| 99 | + "id": "byName", |
| 100 | + "options": "n" |
| 101 | + }, |
| 102 | + "properties": [ |
| 103 | + { |
| 104 | + "id": "displayName", |
| 105 | + "value": "Total" |
| 106 | + } |
| 107 | + ] |
| 108 | + } |
| 109 | + ] |
| 110 | + }, |
64 | 111 | "gridPos": { |
65 | | - "h": 16, |
66 | | - "w": 24, |
| 112 | + "h": 6, |
| 113 | + "w": 17, |
67 | 114 | "x": 0, |
68 | 115 | "y": 1 |
69 | 116 | }, |
| 117 | + "id": 32, |
| 118 | + "links": [], |
| 119 | + "options": { |
| 120 | + "barRadius": 0, |
| 121 | + "barWidth": 0.97, |
| 122 | + "groupWidth": 0.7, |
| 123 | + "legend": { |
| 124 | + "calcs": [], |
| 125 | + "displayMode": "hidden", |
| 126 | + "placement": "bottom" |
| 127 | + }, |
| 128 | + "orientation": "auto", |
| 129 | + "showValue": "auto", |
| 130 | + "stacking": "none", |
| 131 | + "tooltip": { |
| 132 | + "mode": "single", |
| 133 | + "sort": "none" |
| 134 | + }, |
| 135 | + "xField": "Power [kW]", |
| 136 | + "xTickLabelRotation": -45, |
| 137 | + "xTickLabelSpacing": 0 |
| 138 | + }, |
| 139 | + "pluginVersion": "8.5.15", |
| 140 | + "targets": [ |
| 141 | + { |
| 142 | + "datasource": "TeslaMate", |
| 143 | + "format": "table", |
| 144 | + "group": [], |
| 145 | + "metricColumn": "none", |
| 146 | + "rawQuery": true, |
| 147 | + "rawSql": "WITH data AS (\n SELECT ROUND(MAX(c.charger_power) / 5, 0) * 5 AS \"power\"\n FROM charging_processes cp\n LEFT JOIN charges c ON cp.id = c.charging_process_id\n WHERE \n $__timeFilter(c.date) \n AND cp.car_id = $car_id \n AND cp.charge_energy_added > 0.01 \n AND c.fast_charger_present\n GROUP BY cp.id\n)\nSELECT power AS \"Power [kW]\", COUNT(power) AS n\nFROM data\nWHERE power > 22\nGROUP BY 1\nORDER BY 1 ASC\n", |
| 148 | + "refId": "A", |
| 149 | + "select": [ |
| 150 | + [ |
| 151 | + { |
| 152 | + "params": [ |
| 153 | + "value" |
| 154 | + ], |
| 155 | + "type": "column" |
| 156 | + } |
| 157 | + ] |
| 158 | + ], |
| 159 | + "timeColumn": "time", |
| 160 | + "where": [ |
| 161 | + { |
| 162 | + "name": "$__timeFilter", |
| 163 | + "params": [], |
| 164 | + "type": "macro" |
| 165 | + } |
| 166 | + ] |
| 167 | + } |
| 168 | + ], |
| 169 | + "title": "Max power per recharge", |
| 170 | + "type": "barchart" |
| 171 | + }, |
| 172 | + { |
| 173 | + "datasource": "TeslaMate", |
| 174 | + "description": "", |
| 175 | + "fieldConfig": { |
| 176 | + "defaults": { |
| 177 | + "color": { |
| 178 | + "mode": "continuous-YlBl" |
| 179 | + }, |
| 180 | + "custom": { |
| 181 | + "axisLabel": "Number of recharges", |
| 182 | + "axisPlacement": "auto", |
| 183 | + "axisSoftMin": 0, |
| 184 | + "fillOpacity": 52, |
| 185 | + "gradientMode": "scheme", |
| 186 | + "hideFrom": { |
| 187 | + "legend": false, |
| 188 | + "tooltip": false, |
| 189 | + "viz": false |
| 190 | + }, |
| 191 | + "lineWidth": 1, |
| 192 | + "scaleDistribution": { |
| 193 | + "type": "linear" |
| 194 | + } |
| 195 | + }, |
| 196 | + "mappings": [], |
| 197 | + "thresholds": { |
| 198 | + "mode": "absolute", |
| 199 | + "steps": [ |
| 200 | + { |
| 201 | + "color": "green", |
| 202 | + "value": null |
| 203 | + }, |
| 204 | + { |
| 205 | + "color": "red", |
| 206 | + "value": 80 |
| 207 | + } |
| 208 | + ] |
| 209 | + } |
| 210 | + }, |
| 211 | + "overrides": [ |
| 212 | + { |
| 213 | + "matcher": { |
| 214 | + "id": "byName", |
| 215 | + "options": "n" |
| 216 | + }, |
| 217 | + "properties": [ |
| 218 | + { |
| 219 | + "id": "displayName", |
| 220 | + "value": "Recharges" |
| 221 | + } |
| 222 | + ] |
| 223 | + }, |
| 224 | + { |
| 225 | + "matcher": { |
| 226 | + "id": "byName", |
| 227 | + "options": "location" |
| 228 | + }, |
| 229 | + "properties": [ |
| 230 | + { |
| 231 | + "id": "displayName", |
| 232 | + "value": "Location" |
| 233 | + } |
| 234 | + ] |
| 235 | + } |
| 236 | + ] |
| 237 | + }, |
| 238 | + "gridPos": { |
| 239 | + "h": 6, |
| 240 | + "w": 7, |
| 241 | + "x": 17, |
| 242 | + "y": 1 |
| 243 | + }, |
| 244 | + "id": 34, |
| 245 | + "options": { |
| 246 | + "barRadius": 0, |
| 247 | + "barWidth": 0.97, |
| 248 | + "groupWidth": 0.7, |
| 249 | + "legend": { |
| 250 | + "calcs": [], |
| 251 | + "displayMode": "hidden", |
| 252 | + "placement": "bottom" |
| 253 | + }, |
| 254 | + "orientation": "auto", |
| 255 | + "showValue": "auto", |
| 256 | + "stacking": "none", |
| 257 | + "tooltip": { |
| 258 | + "mode": "none", |
| 259 | + "sort": "none" |
| 260 | + }, |
| 261 | + "xTickLabelRotation": 0, |
| 262 | + "xTickLabelSpacing": 0 |
| 263 | + }, |
| 264 | + "pluginVersion": "8.5.15", |
| 265 | + "targets": [ |
| 266 | + { |
| 267 | + "datasource": "TeslaMate", |
| 268 | + "format": "table", |
| 269 | + "group": [], |
| 270 | + "metricColumn": "none", |
| 271 | + "rawQuery": true, |
| 272 | + "rawSql": "WITH charges_summary AS (\n SELECT\n cp.id,\n COALESCE(geo.name, CONCAT_WS(', ', COALESCE(addr.name, nullif(CONCAT_WS(' ', addr.road, addr.house_number), '')), addr.city)) AS location,\n COUNT(c.charging_process_id)\n FROM\n charging_processes cp\n LEFT JOIN \n addresses addr ON addr.id = address_id\n LEFT JOIN\n geofences geo ON geo.id = geofence_id\n LEFT JOIN\n charges c ON cp.id = c.charging_process_id\n WHERE\n $__timeFilter(date) AND\n cp.car_id = $car_id AND cp.charge_energy_added > 0.01 AND c.fast_charger_present \n GROUP BY 1, 2\n)\nSELECT \n CASE\n WHEN location ILIKE '%supercharger%' THEN 'Tesla SuperCharger'\n ELSE 'Other DC Stations' END AS location,\n COUNT(location) AS n\nFROM charges_summary\nGROUP BY 1", |
| 273 | + "refId": "A", |
| 274 | + "select": [ |
| 275 | + [ |
| 276 | + { |
| 277 | + "params": [ |
| 278 | + "start_km" |
| 279 | + ], |
| 280 | + "type": "column" |
| 281 | + } |
| 282 | + ] |
| 283 | + ], |
| 284 | + "table": "drives", |
| 285 | + "timeColumn": "start_date", |
| 286 | + "timeColumnType": "timestamp", |
| 287 | + "where": [ |
| 288 | + { |
| 289 | + "name": "$__timeFilter", |
| 290 | + "params": [], |
| 291 | + "type": "macro" |
| 292 | + } |
| 293 | + ] |
| 294 | + } |
| 295 | + ], |
| 296 | + "title": "Fast charging networks", |
| 297 | + "type": "barchart" |
| 298 | + }, |
| 299 | + { |
| 300 | + "datasource": "TeslaMate", |
| 301 | + "gridPos": { |
| 302 | + "h": 13, |
| 303 | + "w": 12, |
| 304 | + "x": 0, |
| 305 | + "y": 7 |
| 306 | + }, |
70 | 307 | "id": 29, |
71 | 308 | "links": [], |
72 | 309 | "pconfig": { |
|
246 | 483 | ] |
247 | 484 | } |
248 | 485 | ], |
249 | | - "title": "SuperCharger Charging Curve", |
| 486 | + "title": "Tesla SuperCharger charging curve", |
250 | 487 | "type": "natel-plotly-panel", |
251 | 488 | "version": 1 |
252 | 489 | }, |
253 | 490 | { |
254 | 491 | "datasource": "TeslaMate", |
255 | 492 | "gridPos": { |
256 | | - "h": 16, |
257 | | - "w": 24, |
258 | | - "x": 0, |
259 | | - "y": 17 |
| 493 | + "h": 13, |
| 494 | + "w": 12, |
| 495 | + "x": 12, |
| 496 | + "y": 7 |
260 | 497 | }, |
261 | 498 | "id": 30, |
262 | 499 | "links": [], |
|
437 | 674 | ] |
438 | 675 | } |
439 | 676 | ], |
440 | | - "title": "DC Charging Curve", |
| 677 | + "title": "DC charging curve", |
441 | 678 | "type": "natel-plotly-panel", |
442 | 679 | "version": 1 |
443 | 680 | } |
|
0 commit comments