| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683 | {  "annotations": {    "list": [      {        "builtIn": 1,        "datasource": "-- Grafana --",        "enable": true,        "hide": true,        "iconColor": "rgba(0, 211, 255, 1)",        "name": "Annotations & Alerts",        "type": "dashboard"      }    ]  },  "editable": true,  "gnetId": null,  "graphTooltip": 0,  "id": 1,  "links": [],  "panels": [    {      "datasource": null,      "description": "",      "fieldConfig": {        "defaults": {          "color": {            "mode": "thresholds"          },          "decimals": 1,          "mappings": [],          "max": 300,          "min": 0,          "thresholds": {            "mode": "absolute",            "steps": [              {                "color": "red",                "value": null              },              {                "color": "orange",                "value": 30              },              {                "color": "yellow",                "value": 100              },              {                "color": "green",                "value": 160              }            ]          },          "unit": "watt"        },        "overrides": []      },      "gridPos": {        "h": 7,        "w": 24,        "x": 0,        "y": 0      },      "id": 4,      "maxDataPoints": 1,      "options": {        "reduceOptions": {          "calcs": [            "lastNotNull"          ],          "fields": "",          "values": false        },        "showThresholdLabels": false,        "showThresholdMarkers": true,        "text": {}      },      "pluginVersion": "7.5.7",      "targets": [        {          "groupBy": [            {              "params": [                "$__interval"              ],              "type": "time"            },            {              "params": [                "null"              ],              "type": "fill"            }          ],          "orderByTime": "ASC",          "policy": "default",          "query": "from(bucket: \"influxdb\")\n  |> range(start: -1m)\n  |> filter(fn: (r) =>\n    r._measurement == \"solar\"\n  )\n  |> aggregateWindow(\n    every: 10s,\n    fn: (tables=<-, column) => tables |> median(),\n  )\n  ",          "refId": "A",          "resultFormat": "time_series",          "select": [            [              {                "params": [                  "value"                ],                "type": "field"              },              {                "params": [],                "type": "mean"              }            ]          ],          "tags": []        }      ],      "title": "Current Input",      "transformations": [        {          "id": "reduce",          "options": {            "includeTimeField": false,            "mode": "reduceFields",            "reducers": [              "mean"            ]          }        },        {          "id": "filterFieldsByName",          "options": {            "include": {              "names": [                "value W"              ]            }          }        }      ],      "type": "gauge"    },    {      "datasource": null,      "description": "",      "fieldConfig": {        "defaults": {          "color": {            "mode": "thresholds"          },          "mappings": [],          "max": 0,          "thresholds": {            "mode": "absolute",            "steps": [              {                "color": "green",                "value": null              }            ]          },          "unit": "watth"        },        "overrides": []      },      "gridPos": {        "h": 8,        "w": 10,        "x": 0,        "y": 7      },      "id": 8,      "interval": null,      "maxDataPoints": 100,      "options": {        "colorMode": "value",        "graphMode": "none",        "justifyMode": "auto",        "orientation": "auto",        "reduceOptions": {          "calcs": [            "lastNotNull"          ],          "fields": "",          "values": false        },        "text": {},        "textMode": "auto"      },      "pluginVersion": "7.5.7",      "targets": [        {          "groupBy": [            {              "params": [                "$__interval"              ],              "type": "time"            },            {              "params": [                "null"              ],              "type": "fill"            }          ],          "orderByTime": "ASC",          "policy": "default",          "query": "from(bucket: \"influxdb\")\r\n  |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\r\n  |> filter(fn: (r) =>\r\n    r._measurement == \"solar\"\r\n  )\r\n  |> aggregateWindow(\r\n    every: $__interval,\r\n    fn: (tables=<-, column) => tables |> median(method: \"estimate_tdigest\"),\r\n  )\r\n  |> cumulativeSum()\r\n  |> map(fn: (r) => ({r with _value: r._value * float(v: int(v: $__interval)) / 1000000000000.0 / 3.6}))\r\n",          "refId": "A",          "resultFormat": "time_series",          "select": [            [              {                "params": [                  "value"                ],                "type": "field"              },              {                "params": [],                "type": "mean"              }            ]          ],          "tags": []        }      ],      "timeFrom": null,      "timeShift": null,      "title": "Generated In Period",      "transformations": [        {          "id": "filterFieldsByName",          "options": {            "include": {              "names": [                "value W"              ]            }          }        }      ],      "type": "stat"    },    {      "aliasColors": {},      "bars": false,      "dashLength": 10,      "dashes": false,      "datasource": null,      "description": "",      "fieldConfig": {        "defaults": {},        "overrides": []      },      "fill": 1,      "fillGradient": 0,      "gridPos": {        "h": 8,        "w": 14,        "x": 10,        "y": 7      },      "hiddenSeries": false,      "id": 5,      "interval": "1m",      "legend": {        "alignAsTable": false,        "avg": false,        "current": false,        "max": false,        "min": false,        "rightSide": false,        "show": false,        "total": false,        "values": false      },      "lines": true,      "linewidth": 1,      "maxDataPoints": 150,      "nullPointMode": "null",      "options": {        "alertThreshold": true      },      "percentage": false,      "pluginVersion": "7.5.7",      "pointradius": 2,      "points": false,      "renderer": "flot",      "seriesOverrides": [],      "spaceLength": 10,      "stack": false,      "steppedLine": false,      "targets": [        {          "groupBy": [            {              "params": [                "$__interval"              ],              "type": "time"            },            {              "params": [                "null"              ],              "type": "fill"            }          ],          "orderByTime": "ASC",          "policy": "default",          "query": "from(bucket: \"influxdb\")\n  |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n  |> filter(fn: (r) =>\n    r._measurement == \"solar\"\n  )\n  |> aggregateWindow(\n    every: $__interval,\n    fn: (tables=<-, column) => tables |> median(method: \"estimate_tdigest\"),\n  )",          "queryType": "randomWalk",          "refId": "A",          "resultFormat": "time_series",          "select": [            [              {                "params": [                  "value"                ],                "type": "field"              },              {                "params": [],                "type": "mean"              }            ]          ],          "tags": []        }      ],      "thresholds": [],      "timeFrom": null,      "timeRegions": [],      "timeShift": null,      "title": "Power",      "tooltip": {        "shared": false,        "sort": 0,        "value_type": "individual"      },      "transformations": [        {          "id": "calculateField",          "options": {            "alias": "Power",            "binary": {              "left": "value {name=\"solar\", type=\"A\"}",              "operator": "*",              "reducer": "sum",              "right": "value {name=\"solar\", type=\"V\"}"            },            "mode": "reduceRow",            "reduce": {              "include": [                "value {name=\"solar\", type=\"W\"}"              ],              "reducer": "sum"            },            "replaceFields": true          }        }      ],      "type": "graph",      "xaxis": {        "buckets": null,        "mode": "time",        "name": null,        "show": true,        "values": []      },      "yaxes": [        {          "$$hashKey": "object:105",          "format": "watt",          "label": null,          "logBase": 1,          "max": null,          "min": null,          "show": true        },        {          "$$hashKey": "object:106",          "format": "dateTimeAsLocal",          "label": null,          "logBase": 1,          "max": null,          "min": null,          "show": false        }      ],      "yaxis": {        "align": false,        "alignLevel": null      }    },    {      "datasource": null,      "description": "",      "fieldConfig": {        "defaults": {          "color": {            "mode": "thresholds"          },          "custom": {            "align": null,            "filterable": false          },          "mappings": [            {              "from": "",              "id": 1,              "text": "",              "to": "",              "type": 1            }          ],          "max": 0,          "thresholds": {            "mode": "absolute",            "steps": [              {                "color": "green",                "value": null              }            ]          },          "unit": "watth"        },        "overrides": [          {            "matcher": {              "id": "byName",              "options": "Time"            },            "properties": [              {                "id": "unit",                "value": "time:DD.MM.YYYY"              }            ]          }        ]      },      "gridPos": {        "h": 8,        "w": 14,        "x": 0,        "y": 15      },      "id": 9,      "interval": null,      "maxDataPoints": 500,      "options": {        "showHeader": true      },      "pluginVersion": "7.5.7",      "targets": [        {          "groupBy": [            {              "params": [                "$__interval"              ],              "type": "time"            },            {              "params": [                "null"              ],              "type": "fill"            }          ],          "orderByTime": "ASC",          "policy": "default",          "query": "import \"date\"\r\nimport \"experimental\"\r\n\r\nstart_rounded = date.truncate(t: v.timeRangeStart, unit: 1d) //we can pass v.windowPeriod\r\nend_rounded = date.truncate(t: v.timeRangeStop, unit: 1d)\r\nend_rounded2 = experimental.addDuration(d: 1d, to: end_rounded)\r\n\r\nfrom(bucket: \"influxdb\")\r\n  |> range(start: start_rounded, stop: end_rounded2)\r\n  |> filter(fn: (r) =>\r\n    r._measurement == \"solar\"\r\n  )\r\n  |> filter(fn: (r) => r.type == \"W\")\r\n  |> aggregateWindow(\r\n    every: $__interval,\r\n    timeSrc: \"_start\",\r\n    fn: (tables=<-, column) => tables |> median(),\r\n  )\r\n  |> aggregateWindow(\r\n    every: 1d,\r\n    timeSrc: \"_start\",\r\n    fn: (tables=<-, column) => tables |> sum(),\r\n  )\r\n  |> map(fn: (r) => ({r with _value: r._value * float(v: int(v: $__interval)) / 1000000000000.0 / 3.6}))\r\n",          "refId": "A",          "resultFormat": "time_series",          "select": [            [              {                "params": [                  "value"                ],                "type": "field"              },              {                "params": [],                "type": "mean"              }            ]          ],          "tags": []        }      ],      "timeFrom": null,      "timeShift": null,      "title": "Generated per day",      "transformations": [        {          "id": "renameByRegex",          "options": {            "regex": "value W",            "renamePattern": "Amount"          }        }      ],      "type": "table"    },    {      "aliasColors": {},      "bars": false,      "dashLength": 10,      "dashes": false,      "datasource": null,      "description": "",      "fieldConfig": {        "defaults": {          "unit": "volt"        },        "overrides": []      },      "fill": 1,      "fillGradient": 0,      "gridPos": {        "h": 8,        "w": 10,        "x": 14,        "y": 15      },      "hiddenSeries": false,      "id": 6,      "interval": "1m",      "legend": {        "alignAsTable": false,        "avg": false,        "current": false,        "max": false,        "min": false,        "rightSide": false,        "show": false,        "total": false,        "values": false      },      "lines": true,      "linewidth": 1,      "maxDataPoints": 150,      "nullPointMode": "null",      "options": {        "alertThreshold": true      },      "percentage": false,      "pluginVersion": "7.5.7",      "pointradius": 2,      "points": false,      "renderer": "flot",      "seriesOverrides": [],      "spaceLength": 10,      "stack": false,      "steppedLine": false,      "targets": [        {          "groupBy": [            {              "params": [                "$__interval"              ],              "type": "time"            },            {              "params": [                "null"              ],              "type": "fill"            }          ],          "orderByTime": "ASC",          "policy": "default",          "query": "from(bucket: \"influxdb\")\n  |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n  |> filter(fn: (r) =>\n    r._measurement == \"solar\"\n  )\n  |> aggregateWindow(\n    every: $__interval,\n    fn: (tables=<-, column) => tables |> median(method: \"estimate_tdigest\"),\n  )",          "queryType": "randomWalk",          "refId": "A",          "resultFormat": "time_series",          "select": [            [              {                "params": [                  "value"                ],                "type": "field"              },              {                "params": [],                "type": "mean"              }            ]          ],          "tags": []        }      ],      "thresholds": [],      "timeFrom": null,      "timeRegions": [],      "timeShift": null,      "title": "Solar Voltage",      "tooltip": {        "shared": false,        "sort": 0,        "value_type": "individual"      },      "transformations": [        {          "id": "calculateField",          "options": {            "alias": "Power",            "binary": {              "left": "value {name=\"solar\", type=\"A\"}",              "operator": "*",              "reducer": "sum",              "right": "value {name=\"solar\", type=\"V\"}"            },            "mode": "reduceRow",            "reduce": {              "include": [                "value {name=\"solar\", type=\"U\"}"              ],              "reducer": "sum"            },            "replaceFields": true          }        }      ],      "type": "graph",      "xaxis": {        "buckets": null,        "mode": "time",        "name": null,        "show": true,        "values": []      },      "yaxes": [        {          "$$hashKey": "object:105",          "format": "volt",          "label": null,          "logBase": 1,          "max": null,          "min": null,          "show": true        },        {          "$$hashKey": "object:106",          "format": "dateTimeAsLocal",          "label": null,          "logBase": 1,          "max": null,          "min": null,          "show": false        }      ],      "yaxis": {        "align": false,        "alignLevel": null      }    }  ],  "refresh": "10s",  "schemaVersion": 27,  "style": "dark",  "tags": [],  "templating": {    "list": []  },  "time": {    "from": "now-30m",    "to": "now"  },  "timepicker": {},  "timezone": "browser",  "title": "Solar",  "uid": "jn3v5cV4k",  "version": 48}
 |