{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "limit": 100, "name": "Annotations & Alerts", "showIn": 0, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 8, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "fieldConfig": { "defaults": { "decimals": 0, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "percentage", "steps": [ { "color": "red", "value": null }, { "color": "red", "value": 10 }, { "color": "yellow", "value": 20 }, { "color": "#6ED0E0", "value": 30 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 5, "w": 5, "x": 0, "y": 0 }, "id": 35, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "9.5.1", "targets": [ { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "editorMode": "code", "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SET vessel.id = '${__user.login}';\nSELECT\n time AS \"time\",\n cast(metrics-> 'environment.rpi.pijuice.batteryPercent' AS numeric) * 100 AS batteryPercent\nFROM api.metrics\nWHERE\n $__timeFilter(time) AND vessel_id= '${__user.login}'\nORDER BY 1;", "refId": "A", "select": [ [ { "params": [ "_from_lat" ], "type": "column" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "trip_in_progress", "timeColumn": "_from_time", "timeColumnType": "timestamp", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "RPI State of Charge", "type": "gauge" }, { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "fieldConfig": { "defaults": { "decimals": 0, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#d44a3a", "value": null }, { "color": "rgb(80, 79, 79)", "value": -10 }, { "color": "#5195ce", "value": 10 } ] }, "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 5, "w": 4, "x": 5, "y": 0 }, "hideTimeOverride": true, "id": 29, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "editorMode": "code", "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SET vessel.id = '${__user.login}';\nSELECT\n time AS \"time\",\n cast(metrics-> 'environment.rpi.pijuice.batteryTemperature' AS numeric) - 273.15 AS batteryTemperature\nFROM api.metrics\nWHERE\n $__timeFilter(time) AND vessel_id= '${__user.login}'\nORDER BY 1", "refId": "A", "select": [ [ { "params": [ "_from_lat" ], "type": "column" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "trip_in_progress", "timeColumn": "_from_time", "timeColumnType": "timestamp", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "Battery Temperature", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "fieldConfig": { "defaults": { "decimals": 0, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "volt" }, "overrides": [] }, "gridPos": { "h": 5, "w": 4, "x": 9, "y": 0 }, "id": 21, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "editorMode": "code", "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SET vessel.id = '${__user.login}';\nSELECT\n time AS \"time\",\n cast(metrics-> 'environment.rpi.pijuice.batteryVoltage' AS numeric) AS batteryVoltage\nFROM api.metrics\nWHERE\n $__timeFilter(time) AND vessel_id= '${__user.login}'\nORDER BY 1", "refId": "A", "select": [ [ { "params": [ "_from_lat" ], "type": "column" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "trip_in_progress", "timeColumn": "_from_time", "timeColumnType": "timestamp", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "Battery Voltage", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 12 }, { "color": "green", "value": 13 }, { "color": "#6ED0E0", "value": 14 } ] }, "unit": "volt" }, "overrides": [] }, "gridPos": { "h": 5, "w": 3, "x": 13, "y": 0 }, "hideTimeOverride": true, "id": 7, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "editorMode": "code", "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SET vessel.id = '${__user.login}';\nSELECT\n time AS \"time\",\n cast(metrics-> 'environment.rpi.pijuice.gpioVoltage' AS numeric) AS gpioVoltage\nFROM api.metrics\nWHERE\n $__timeFilter(time) AND vessel_id= '${__user.login}'\nORDER BY 1", "refId": "A", "select": [ [ { "params": [ "_from_lat" ], "type": "column" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "trip_in_progress", "timeColumn": "_from_time", "timeColumnType": "timestamp", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "Battery Input Voltage", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 12 }, { "color": "green", "value": 13 }, { "color": "#6ED0E0", "value": 14 } ] }, "unit": "amp" }, "overrides": [] }, "gridPos": { "h": 5, "w": 3, "x": 16, "y": 0 }, "hideTimeOverride": true, "id": 48, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "editorMode": "code", "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SET vessel.id = '${__user.login}';\nSELECT\n time AS \"time\",\n cast(metrics-> 'environment.rpi.pijuice.gpioCurrent' AS numeric) / 1000 AS gpioCurrent\nFROM api.metrics\nWHERE\n $__timeFilter(time) AND vessel_id= '${__user.login}'\nORDER BY 1", "refId": "A", "select": [ [ { "params": [ "_from_lat" ], "type": "column" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "trip_in_progress", "timeColumn": "_from_time", "timeColumnType": "timestamp", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "Battery Input Current", "type": "stat" }, { "aliasColors": { "electrical.batteries.256.current.mean": "blue" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": {}, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 5 }, "hiddenSeries": false, "id": 47, "legend": { "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.1", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "InfluxDB" }, "editorMode": "code", "format": "table", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "measurement": "electrical.batteries.256.current", "orderByTime": "ASC", "policy": "default", "query": "from(bucket: \"bromera\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"electrical.batteries.House.current\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "rawSql": "", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "tags": [] } ], "thresholds": [ { "$$hashKey": "object:8288", "colorMode": "critical", "fill": true, "line": true, "op": "gt", "value": -1, "yaxis": "left" }, { "$$hashKey": "object:8294", "colorMode": "ok", "fill": true, "line": true, "op": "gt", "value": 1, "yaxis": "left" } ], "timeRegions": [], "title": "House Amps", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "$$hashKey": "object:8148", "format": "amp", "logBase": 1, "show": true }, { "$$hashKey": "object:8149", "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": { "electrical.inverters.257.acout.current.mean": "blue" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": {}, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 5 }, "hiddenSeries": false, "id": 45, "legend": { "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.1", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "InfluxDB" }, "editorMode": "code", "format": "table", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "measurement": "electrical.inverters.257.acout.current", "orderByTime": "ASC", "policy": "default", "rawSql": "", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "tags": [] } ], "thresholds": [], "timeRegions": [], "title": "AC Current", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "$$hashKey": "object:8029", "format": "amp", "logBase": 1, "show": true }, { "$$hashKey": "object:8030", "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": { "electrical.batteries.256.current.mean": "blue", "electrical.batteries.256.voltage.mean": "yellow" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "postgres", "uid": "PCC52D03280B7034C" }, "description": "", "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 13 }, "hiddenSeries": false, "id": 37, "legend": { "alignAsTable": false, "avg": true, "current": false, "max": true, "min": true, "rightSide": false, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.1", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { "$$hashKey": "object:5017", "alias": "electrical.batteries.256.current.mean", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "InfluxDB" }, "editorMode": "code", "format": "table", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "measurement": "electrical.batteries.256.voltage", "orderByTime": "ASC", "policy": "default", "query": "from(bucket: \"bromera\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"electrical.batteries.House.voltage\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "rawSql": "", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "tags": [] }, { "datasource": { "uid": "InfluxDB" }, "editorMode": "code", "format": "table", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "hide": false, "measurement": "electrical.batteries.256.current", "orderByTime": "ASC", "policy": "default", "query": "from(bucket: \"bromera\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"electrical.batteries.House.current\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "rawQuery": true, "rawSql": "", "refId": "B", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "tags": [] } ], "thresholds": [], "timeRegions": [], "title": "House Bank Voltage vs Current", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "$$hashKey": "object:4372", "format": "volt", "label": "Volts", "logBase": 1, "show": true }, { "$$hashKey": "object:4373", "format": "amp", "label": "Amps", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": { "From grid": "#1f78c1", "Total": "#e5ac0e" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "uid": "InfluxDB" }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 13 }, "hiddenSeries": false, "id": 10, "legend": { "alignAsTable": false, "avg": true, "current": false, "max": true, "min": true, "rightSide": false, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "paceLength": 10, "percentage": false, "pluginVersion": "9.5.1", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "alias": "InvOut", "datasource": { "uid": "InfluxDB" }, "groupBy": [ { "params": [ "10s" ], "type": "time" }, { "params": [ "linear" ], "type": "fill" } ], "hide": false, "measurement": "electrical.inverters.257.acout.power", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [] }, { "alias": "From grid", "datasource": { "uid": "InfluxDB" }, "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "linear" ], "type": "fill" } ], "hide": true, "measurement": "mqtt_consumer", "orderByTime": "ASC", "policy": "default", "refId": "B", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [ { "key": "topic", "operator": "=", "value": "N/b0d5ccf4a0e4/vebus/261/Ac/ActiveIn/L1/P" } ] } ], "thresholds": [], "timeRegions": [], "title": "AC Watts", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "$$hashKey": "object:1574", "format": "watt", "logBase": 1, "show": true }, { "$$hashKey": "object:1575", "format": "short", "logBase": 1, "show": false } ], "yaxis": { "align": false } } ], "refresh": "5m", "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-30d", "to": "now" }, "timepicker": { "refresh_intervals": [ "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "RPI System", "uid": "4kxYm6j7k", "version": 1, "weekStart": "" }