Created
April 14, 2019 08:33
-
-
Save CoMPaTech/6c508dd9e7c386a19a9612b183e11f14 to your computer and use it in GitHub Desktop.
teslascraper charging dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "DS_TESLASCRAPER", | |
"label": "TeslaScraper", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "influxdb", | |
"pluginName": "InfluxDB" | |
}, | |
{ | |
"name": "VAR_RANGEUNIT", | |
"type": "constant", | |
"label": "rangeunit", | |
"value": "km", | |
"description": "" | |
} | |
], | |
"__requires": [ | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "5.2.4" | |
}, | |
{ | |
"type": "panel", | |
"id": "graph", | |
"name": "Graph", | |
"version": "5.0.0" | |
}, | |
{ | |
"type": "datasource", | |
"id": "influxdb", | |
"name": "InfluxDB", | |
"version": "5.0.0" | |
}, | |
{ | |
"type": "panel", | |
"id": "natel-discrete-panel", | |
"name": "Discrete", | |
"version": "0.0.9" | |
}, | |
{ | |
"type": "panel", | |
"id": "singlestat", | |
"name": "Singlestat", | |
"version": "5.0.0" | |
} | |
], | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
}, | |
{ | |
"datasource": "${DS_TESLASCRAPER}", | |
"enable": false, | |
"hide": false, | |
"iconColor": "rgba(255, 96, 96, 1)", | |
"limit": 100, | |
"name": "charging_state", | |
"query": "select charging_state as title,charging_state as description from charge_state where metric='charging_state' order by time asc", | |
"showIn": 0, | |
"tags": [], | |
"tagsColumn": "", | |
"textColumn": "", | |
"type": "tags" | |
} | |
] | |
}, | |
"editable": true, | |
"gnetId": null, | |
"graphTooltip": 2, | |
"id": null, | |
"iteration": 1555230536175, | |
"links": [], | |
"panels": [ | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"decimals": 2, | |
"format": "none", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 4, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 20, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "$rangeunit", | |
"postfixFontSize": "50%", | |
"prefix": "Ideal", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"ideal_battery_range" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
}, | |
{ | |
"params": [ | |
"*$rangefactor" | |
], | |
"type": "math" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "", | |
"title": "Range", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"decimals": 2, | |
"format": "none", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 4, | |
"x": 4, | |
"y": 0 | |
}, | |
"id": 18, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "$rangeunit", | |
"postfixFontSize": "50%", | |
"prefix": "Est.", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT last(\"est_battery_range\") FROM \"charge_state\" WHERE (\"metric\" = 'est_battery_range') AND $timeFilter", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"est_battery_range" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
}, | |
{ | |
"params": [ | |
"*$rangefactor" | |
], | |
"type": "math" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "", | |
"title": "Range", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"decimals": 2, | |
"format": "none", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 4, | |
"x": 8, | |
"y": 0 | |
}, | |
"id": 19, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "$rangeunit", | |
"postfixFontSize": "50%", | |
"prefix": "Rated", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT last(\"battery_range\") *$rangefactor FROM \"charge_state\" WHERE (\"metric\" = 'battery_range') AND $timeFilter", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"battery_range" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
}, | |
{ | |
"params": [ | |
"*$rangefactor" | |
], | |
"type": "math" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "", | |
"title": "Range", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"description": "Energy added on last Charge", | |
"format": "kwatth", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 12, | |
"y": 0 | |
}, | |
"id": 32, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charge_energy_added" | |
], | |
"type": "field" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "", | |
"title": "Energy added", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"decimals": 2, | |
"format": "h", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 15, | |
"y": 0 | |
}, | |
"hideTimeOverride": false, | |
"id": 30, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "last", | |
"targets": [ | |
{ | |
"alias": "", | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"time_to_full_charge" | |
], | |
"type": "field" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "", | |
"title": "Time to Full at current Rate", | |
"transparent": false, | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [], | |
"valueName": "current" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"format": "none", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 18, | |
"y": 0 | |
}, | |
"id": 4, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charger_phases" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "", | |
"title": "AC Charger Phases", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": false, | |
"colors": [ | |
"#299c46", | |
"rgba(237, 129, 40, 0.89)", | |
"#d44a3a" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"format": "amp", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": false, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 21, | |
"y": 0 | |
}, | |
"id": 10, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charger_actual_current" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "", | |
"title": "AC Charger Actual Current", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": true, | |
"colors": [ | |
"#e24d42", | |
"#508642", | |
"#e5ac0e" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"description": "Voltage supplied by Charger", | |
"format": "volt", | |
"gauge": { | |
"maxValue": 260, | |
"minValue": 0, | |
"show": true, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 4, | |
"x": 0, | |
"y": 2 | |
}, | |
"id": 2, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT last(\"charger_voltage\") FROM \"charge_state\" WHERE (\"display_name\" =~ /^$vehicle_name$/) ", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charger_voltage" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "metric", | |
"operator": "=", | |
"value": "charger_voltage" | |
}, | |
{ | |
"condition": "AND", | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "196,240", | |
"title": "Charger Voltage", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "current" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_TESLASCRAPER}", | |
"fill": 1, | |
"gridPos": { | |
"h": 5, | |
"w": 20, | |
"x": 4, | |
"y": 2 | |
}, | |
"id": 12, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"hideEmpty": false, | |
"hideZero": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "charger_voltage", | |
"groupBy": [ | |
{ | |
"params": [ | |
"1s" | |
], | |
"type": "time" | |
}, | |
{ | |
"params": [ | |
"previous" | |
], | |
"type": "fill" | |
} | |
], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charger_voltage" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Charger Voltage", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "volt", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": "0", | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": true, | |
"colors": [ | |
"#e24d42", | |
"#e5ac0e", | |
"#508642" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"description": "Current Battery Level", | |
"format": "percent", | |
"gauge": { | |
"maxValue": 100, | |
"minValue": 0, | |
"show": true, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 4, | |
"x": 0, | |
"y": 7 | |
}, | |
"id": 14, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"battery_level" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "8,20", | |
"title": "Battery Level", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_TESLASCRAPER}", | |
"fill": 1, | |
"gridPos": { | |
"h": 5, | |
"w": 20, | |
"x": 4, | |
"y": 7 | |
}, | |
"id": 24, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "battery_level", | |
"groupBy": [ | |
{ | |
"params": [ | |
"$__interval" | |
], | |
"type": "time" | |
}, | |
{ | |
"params": [ | |
"linear" | |
], | |
"type": "fill" | |
} | |
], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT mean(\"battery_level\") FROM \"charge_state\" WHERE (\"display_name\" =~ /^$vehicle_name$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"battery_level" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "metric", | |
"operator": "=", | |
"value": "battery_level" | |
}, | |
{ | |
"condition": "AND", | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
}, | |
{ | |
"alias": "charge_limit_soc", | |
"groupBy": [ | |
{ | |
"params": [ | |
"$__interval" | |
], | |
"type": "time" | |
}, | |
{ | |
"params": [ | |
"previous" | |
], | |
"type": "fill" | |
} | |
], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT mean(\"charge_limit_soc\") FROM \"charge_state\" WHERE (\"display_name\" =~ /^$vehicle_name$/) AND $timeFilter GROUP BY time($__interval) fill(previous)", | |
"rawQuery": true, | |
"refId": "B", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charge_limit_soc" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "metric", | |
"operator": "=", | |
"value": "charge_limit_soc" | |
}, | |
{ | |
"condition": "AND", | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Battery Level", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"decimals": null, | |
"format": "percent", | |
"label": null, | |
"logBase": 1, | |
"max": "100", | |
"min": "0", | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"cacheTimeout": null, | |
"colorBackground": false, | |
"colorValue": true, | |
"colors": [ | |
"#e24d42", | |
"#629e51", | |
"#3f6833" | |
], | |
"datasource": "${DS_TESLASCRAPER}", | |
"description": "Power supplied by Charger.", | |
"format": "kwatt", | |
"gauge": { | |
"maxValue": 120, | |
"minValue": 0, | |
"show": true, | |
"thresholdLabels": false, | |
"thresholdMarkers": true | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 4, | |
"x": 0, | |
"y": 12 | |
}, | |
"id": 8, | |
"interval": null, | |
"links": [], | |
"mappingType": 1, | |
"mappingTypes": [ | |
{ | |
"name": "value to text", | |
"value": 1 | |
}, | |
{ | |
"name": "range to text", | |
"value": 2 | |
} | |
], | |
"maxDataPoints": 100, | |
"nullPointMode": "connected", | |
"nullText": null, | |
"postfix": "", | |
"postfixFontSize": "50%", | |
"prefix": "", | |
"prefixFontSize": "50%", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"sparkline": { | |
"fillColor": "rgba(31, 118, 189, 0.18)", | |
"full": false, | |
"lineColor": "rgb(31, 120, 193)", | |
"show": false | |
}, | |
"tableColumn": "", | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charger_power" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "last" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": "10,10", | |
"title": "Charger Power", | |
"type": "singlestat", | |
"valueFontSize": "80%", | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueName": "avg" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_TESLASCRAPER}", | |
"fill": 1, | |
"gridPos": { | |
"h": 5, | |
"w": 20, | |
"x": 4, | |
"y": 12 | |
}, | |
"id": 26, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "charger_power", | |
"groupBy": [ | |
{ | |
"params": [ | |
"$__interval" | |
], | |
"type": "time" | |
}, | |
{ | |
"params": [ | |
"previous" | |
], | |
"type": "fill" | |
} | |
], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charger_power" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
}, | |
{ | |
"alias": "power", | |
"groupBy": [ | |
{ | |
"params": [ | |
"$__interval" | |
], | |
"type": "time" | |
}, | |
{ | |
"params": [ | |
"previous" | |
], | |
"type": "fill" | |
} | |
], | |
"measurement": "drive_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "B", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"power" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Chargerpower vs Batterypower", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "kwatt", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"alert": { | |
"conditions": [ | |
{ | |
"evaluator": { | |
"params": [ | |
89 | |
], | |
"type": "gt" | |
}, | |
"operator": { | |
"type": "and" | |
}, | |
"query": { | |
"params": [ | |
"A", | |
"1m", | |
"now" | |
] | |
}, | |
"reducer": { | |
"params": [], | |
"type": "last" | |
}, | |
"type": "query" | |
} | |
], | |
"executionErrorState": "keep_state", | |
"frequency": "60s", | |
"handler": 1, | |
"message": "TWall-E Almost done charging", | |
"name": "SoC alert", | |
"noDataState": "ok", | |
"notifications": [] | |
}, | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_TESLASCRAPER}", | |
"fill": 1, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 0, | |
"y": 17 | |
}, | |
"id": 38, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "SoC", | |
"groupBy": [ | |
{ | |
"params": [ | |
"$__interval" | |
], | |
"type": "time" | |
}, | |
{ | |
"params": [ | |
"previous" | |
], | |
"type": "fill" | |
} | |
], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"battery_level" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=", | |
"value": "CARNAME" | |
} | |
] | |
} | |
], | |
"thresholds": [ | |
{ | |
"colorMode": "critical", | |
"fill": true, | |
"line": true, | |
"op": "gt", | |
"value": 89 | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "SoC", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "percent", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"backgroundColor": "rgba(128,128,128,0.1)", | |
"colorMaps": [ | |
{ | |
"color": "#7EB26D", | |
"text": "Disconnected" | |
}, | |
{ | |
"color": "#EAB839", | |
"text": "Starting" | |
}, | |
{ | |
"color": "#bf1b00", | |
"text": "Charging" | |
}, | |
{ | |
"color": "#EF843C", | |
"text": "Stopped" | |
}, | |
{ | |
"color": "#7eb26d", | |
"text": "Complete" | |
}, | |
{ | |
"color": "#1F78C1", | |
"text": "NoPower" | |
} | |
], | |
"crosshairColor": "#8F070C", | |
"datasource": "${DS_TESLASCRAPER}", | |
"display": "timeline", | |
"expandFromQueryS": 0, | |
"extendLastValue": true, | |
"gridPos": { | |
"h": 4, | |
"w": 20, | |
"x": 4, | |
"y": 17 | |
}, | |
"highlightOnMouseover": true, | |
"id": 28, | |
"legendSortBy": "-ms", | |
"lineColor": "rgba(0,0,0,0.1)", | |
"links": [], | |
"metricNameColor": "#000000", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"rowHeight": 50, | |
"showDistinctCount": false, | |
"showLegend": true, | |
"showLegendNames": false, | |
"showLegendPercent": true, | |
"showLegendValues": true, | |
"showTimeAxis": true, | |
"showTransitionCount": false, | |
"targets": [ | |
{ | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"charging_state\" FROM \"charge_state\" WHERE (\"display_name\" =~ /^$vehicle_name$/) AND $timeFilter-5d", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"charging_state" | |
], | |
"type": "field" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "metric", | |
"operator": "=", | |
"value": "charging_state" | |
}, | |
{ | |
"condition": "AND", | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"textSize": 12, | |
"textSizeTime": 12, | |
"timeOptions": [ | |
{ | |
"name": "Years", | |
"value": "years" | |
}, | |
{ | |
"name": "Months", | |
"value": "months" | |
}, | |
{ | |
"name": "Weeks", | |
"value": "weeks" | |
}, | |
{ | |
"name": "Days", | |
"value": "days" | |
}, | |
{ | |
"name": "Hours", | |
"value": "hours" | |
}, | |
{ | |
"name": "Minutes", | |
"value": "minutes" | |
}, | |
{ | |
"name": "Seconds", | |
"value": "seconds" | |
}, | |
{ | |
"name": "Milliseconds", | |
"value": "milliseconds" | |
} | |
], | |
"timePrecision": { | |
"name": "Minutes", | |
"value": "minutes" | |
}, | |
"timeTextColor": "#d8d9da", | |
"title": "Charger Events", | |
"type": "natel-discrete-panel", | |
"units": "short", | |
"useTimePrecision": false, | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueTextColor": "#000000", | |
"writeAllValues": true, | |
"writeLastValue": true, | |
"writeMetricNames": false | |
}, | |
{ | |
"backgroundColor": "rgba(128,128,128,0.1)", | |
"colorMaps": [ | |
{ | |
"color": "#CCC", | |
"text": "N/A" | |
}, | |
{ | |
"color": "#7EB26D", | |
"text": "false" | |
}, | |
{ | |
"color": "#bf1b00", | |
"text": "true" | |
} | |
], | |
"crosshairColor": "#8F070C", | |
"datasource": "${DS_TESLASCRAPER}", | |
"display": "timeline", | |
"expandFromQueryS": 0, | |
"extendLastValue": true, | |
"gridPos": { | |
"h": 4, | |
"w": 20, | |
"x": 4, | |
"y": 21 | |
}, | |
"hideTimeOverride": false, | |
"highlightOnMouseover": true, | |
"id": 34, | |
"legendSortBy": "-ms", | |
"lineColor": "rgba(0,0,0,0.1)", | |
"links": [], | |
"metricNameColor": "#000000", | |
"rangeMaps": [ | |
{ | |
"from": "null", | |
"text": "N/A", | |
"to": "null" | |
} | |
], | |
"rowHeight": 50, | |
"showLegend": true, | |
"showLegendNames": true, | |
"showLegendPercent": true, | |
"showLegendValues": true, | |
"showTimeAxis": true, | |
"targets": [ | |
{ | |
"alias": "Battery Heater", | |
"groupBy": [], | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"battery_heater_on\" FROM \"charge_state\" WHERE (\"display_name\" =~ /^$vehicle_name$/) AND $timeFilter-5d", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"battery_heater_on" | |
], | |
"type": "field" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "metric", | |
"operator": "=", | |
"value": "battery_heater_on" | |
}, | |
{ | |
"condition": "AND", | |
"key": "display_name", | |
"operator": "=~", | |
"value": "/^$vehicle_name$/" | |
} | |
] | |
} | |
], | |
"textSize": 24, | |
"textSizeTime": 12, | |
"timeOptions": [ | |
{ | |
"name": "Years", | |
"value": "years" | |
}, | |
{ | |
"name": "Months", | |
"value": "months" | |
}, | |
{ | |
"name": "Weeks", | |
"value": "weeks" | |
}, | |
{ | |
"name": "Days", | |
"value": "days" | |
}, | |
{ | |
"name": "Hours", | |
"value": "hours" | |
}, | |
{ | |
"name": "Minutes", | |
"value": "minutes" | |
}, | |
{ | |
"name": "Seconds", | |
"value": "seconds" | |
}, | |
{ | |
"name": "Milliseconds", | |
"value": "milliseconds" | |
} | |
], | |
"timePrecision": { | |
"name": "Minutes", | |
"value": "minutes" | |
}, | |
"timeShift": null, | |
"timeTextColor": "#d8d9da", | |
"title": "Battery Heater", | |
"type": "natel-discrete-panel", | |
"units": "short", | |
"useTimePrecision": false, | |
"valueMaps": [ | |
{ | |
"op": "=", | |
"text": "N/A", | |
"value": "null" | |
} | |
], | |
"valueTextColor": "#000000", | |
"writeAllValues": false, | |
"writeLastValue": true, | |
"writeMetricNames": false | |
}, | |
{ | |
"aliasColors": { | |
"Ideal range vs Battery level": "#e24d42", | |
"charge_state.mean_mean": "#e24d42" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_TESLASCRAPER}", | |
"fill": 1, | |
"gridPos": { | |
"h": 4, | |
"w": 20, | |
"x": 4, | |
"y": 25 | |
}, | |
"id": 36, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "Ideal range vs Battery level", | |
"groupBy": [ | |
{ | |
"params": [ | |
"$__interval" | |
], | |
"type": "time" | |
}, | |
{ | |
"params": [ | |
"previous" | |
], | |
"type": "fill" | |
} | |
], | |
"hide": false, | |
"measurement": "charge_state", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"ideal_battery_range" | |
], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
}, | |
{ | |
"params": [ | |
"*1.609344/mean(\"battery_level\")*100" | |
], | |
"type": "math" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "display_name", | |
"operator": "=", | |
"value": "CARNAME" | |
} | |
] | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Projected max range", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "lengthkm", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
} | |
], | |
"refresh": false, | |
"schemaVersion": 16, | |
"style": "dark", | |
"tags": [ | |
"tesla" | |
], | |
"templating": { | |
"list": [ | |
{ | |
"allValue": null, | |
"current": {}, | |
"datasource": "${DS_TESLASCRAPER}", | |
"definition": "select distinct(display_name) from (select * from charge_state)", | |
"hide": 0, | |
"includeAll": false, | |
"label": null, | |
"multi": false, | |
"name": "vehicle_name", | |
"options": [], | |
"query": "select distinct(display_name) from (select * from charge_state)", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
}, | |
{ | |
"current": { | |
"value": "${VAR_RANGEUNIT}", | |
"text": "${VAR_RANGEUNIT}" | |
}, | |
"hide": 2, | |
"label": null, | |
"name": "rangeunit", | |
"options": [ | |
{ | |
"value": "${VAR_RANGEUNIT}", | |
"text": "${VAR_RANGEUNIT}" | |
} | |
], | |
"query": "${VAR_RANGEUNIT}", | |
"skipUrlSync": false, | |
"type": "constant" | |
}, | |
{ | |
"allValue": null, | |
"current": { | |
"text": "1.60934", | |
"value": "1.60934" | |
}, | |
"hide": 2, | |
"includeAll": false, | |
"label": null, | |
"multi": false, | |
"name": "rangefactor", | |
"options": [ | |
{ | |
"selected": true, | |
"text": "1.60934", | |
"value": "1.60934" | |
} | |
], | |
"query": "1.60934", | |
"skipUrlSync": false, | |
"type": "custom" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-6h", | |
"to": "now" | |
}, | |
"timepicker": { | |
"refresh_intervals": [ | |
"5s", | |
"10s", | |
"30s", | |
"1m", | |
"5m", | |
"15m", | |
"30m", | |
"1h", | |
"2h", | |
"1d" | |
], | |
"time_options": [ | |
"5m", | |
"15m", | |
"1h", | |
"6h", | |
"12h", | |
"24h", | |
"2d", | |
"7d", | |
"30d" | |
] | |
}, | |
"timezone": "", | |
"title": "Charging", | |
"uid": "dNviSBUmk", | |
"version": 9 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment