EmonTX Energy
Another draft energy dashboard for the EmonTX's pulse energy meter readings.
Labels:
* TDM
* emonTX
{
  "__inputs": [
    {
      "name": "DS_INFLUXDB-EMONTX",
      "label": "InfluxDB-EmonTX",
      "description": "TDM edge influxdb",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.6.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 11718,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": "${DS_INFLUXDB-EMONTX}",
      "gridPos": {
        "h": 8,
        "w": 23,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "interval": "",
      "options": {
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "links": [
              {
                "title": "",
                "url": ""
              }
            ],
            "mappings": [],
            "max": 3500,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "yellow",
                  "value": 2500
                },
                {
                  "color": "red",
                  "value": 3300
                }
              ]
            },
            "title": "",
            "unit": "watt"
          },
          "overrides": [],
          "values": false
        },
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.6.0",
      "targets": [
        {
          "alias": "Current Power",
          "groupBy": [],
          "measurement": "emontx3",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT -1*derivative(\"pulse\", 1h) FROM \"emontx3\" WHERE time >= now() - 5m  order by time desc limit 1",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "pulse"
                ],
                "type": "field"
              },
              {
                "params": [
                  "1h"
                ],
                "type": "non_negative_derivative"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Avg Power last 10 min",
          "groupBy": [
            {
              "params": [
                "10m"
              ],
              "type": "time"
            }
          ],
          "measurement": "emontx3",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT -1*derivative(\"pulse\", 1h) FROM \"emontx3\" WHERE time >= now() - 10m  order by time desc",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "pulse"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "max"
              },
              {
                "params": [
                  "1h"
                ],
                "type": "non_negative_derivative"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Avg Power last hour",
          "groupBy": [
            {
              "params": [
                "1h"
              ],
              "type": "time"
            }
          ],
          "hide": false,
          "measurement": "emontx3",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT -1*derivative(\"pulse\", 1h) FROM \"emontx3\" WHERE time >= now() - 1h  order by time desc",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "pulse"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "max"
              },
              {
                "params": [
                  "1h"
                ],
                "type": "non_negative_derivative"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Power",
      "type": "gauge"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_INFLUXDB-EMONTX}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 23,
        "x": 0,
        "y": 8
      },
      "hiddenSeries": false,
      "id": 2,
      "interval": "",
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Power (W)",
          "groupBy": [],
          "hide": false,
          "measurement": "emontx3",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "pulse"
                ],
                "type": "field"
              },
              {
                "params": [
                  "1h"
                ],
                "type": "non_negative_derivative"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Mov Avg Power (W)",
          "groupBy": [],
          "measurement": "emontx3",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT moving_average( \"non_negative_derivative\", 5) from (select non_negative_derivative(\"pulse\", 1h) FROM \"emontx3\" WHERE $timeFilter);",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "pulse"
                ],
                "type": "field"
              },
              {
                "params": [
                  "1h"
                ],
                "type": "non_negative_derivative"
              },
              {
                "params": [
                  "5"
                ],
                "type": "moving_average"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Instant Power",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "watt",
          "label": "W",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_INFLUXDB-EMONTX}",
      "fill": 6,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 23,
        "x": 0,
        "y": 17
      },
      "hiddenSeries": false,
      "id": 8,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pluginVersion": "6.6.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": true,
      "targets": [
        {
          "alias": "Daily consumption",
          "groupBy": [
            {
              "params": [
                "24h"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "emontx3",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "select difference(max) from (select max(\"pulse\") / 1000.0 from \"emontx3\" where $timeFilter group by time(1h))",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "pulse"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "difference"
              },
              {
                "params": [
                  " / 1000"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Energy per hour",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": 24,
        "min": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "kwatth",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_INFLUXDB-EMONTX}",
      "fill": 6,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 23,
        "x": 0,
        "y": 25
      },
      "hiddenSeries": false,
      "id": 9,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pluginVersion": "6.6.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": true,
      "targets": [
        {
          "alias": "Daily consumption",
          "groupBy": [
            {
              "params": [
                "24h"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "emontx3",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "select difference(max) from (select max(\"pulse\") / 1000.0 from \"emontx3\" where ($timeFilter OR time >= now() - 30d) group by time(1d))",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "pulse"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "difference"
              },
              {
                "params": [
                  " / 1000"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Energy per day",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": 24,
        "min": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "kwatth",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "EmonTX Energy",
  "uid": "d9g3vPggk",
  "version": 7,
  "description": "Another draft energy dashboard for the EmonTX's pulse energy meter readings."
}