Advertisement
josefkyrian

PV Power Plant - Battery

May 2nd, 2024
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.86 KB | None | 0 0
  1. {
  2.   "annotations": {
  3.     "list": [
  4.       {
  5.         "builtIn": 1,
  6.         "datasource": {
  7.           "type": "grafana",
  8.           "uid": "-- Grafana --"
  9.         },
  10.         "enable": true,
  11.         "hide": true,
  12.         "iconColor": "rgba(0, 211, 255, 1)",
  13.         "name": "Annotations & Alerts",
  14.         "type": "dashboard"
  15.       }
  16.     ]
  17.   },
  18.   "editable": true,
  19.   "fiscalYearStartMonth": 0,
  20.   "graphTooltip": 0,
  21.   "id": 20,
  22.   "links": [],
  23.   "liveNow": false,
  24.   "panels": [
  25.     {
  26.       "datasource": {
  27.         "type": "mysql",
  28.         "uid": "NmGUN4Q7z"
  29.       },
  30.       "description": "",
  31.       "fieldConfig": {
  32.         "defaults": {
  33.           "color": {
  34.             "mode": "palette-classic"
  35.           },
  36.           "custom": {
  37.             "axisBorderShow": false,
  38.             "axisCenteredZero": false,
  39.             "axisColorMode": "text",
  40.             "axisLabel": "",
  41.             "axisPlacement": "auto",
  42.             "barAlignment": 0,
  43.             "drawStyle": "line",
  44.             "fillOpacity": 0,
  45.             "gradientMode": "none",
  46.             "hideFrom": {
  47.               "legend": false,
  48.               "tooltip": false,
  49.               "viz": false
  50.             },
  51.             "insertNulls": false,
  52.             "lineInterpolation": "linear",
  53.             "lineWidth": 1,
  54.             "pointSize": 5,
  55.             "scaleDistribution": {
  56.               "type": "linear"
  57.             },
  58.             "showPoints": "auto",
  59.             "spanNulls": false,
  60.             "stacking": {
  61.               "group": "A",
  62.               "mode": "none"
  63.             },
  64.             "thresholdsStyle": {
  65.               "mode": "off"
  66.             }
  67.           },
  68.           "mappings": [],
  69.           "thresholds": {
  70.             "mode": "absolute",
  71.             "steps": [
  72.               {
  73.                 "color": "green",
  74.                 "value": null
  75.               },
  76.               {
  77.                 "color": "red",
  78.                 "value": 80
  79.               }
  80.             ]
  81.           },
  82.           "unit": "volt"
  83.         },
  84.         "overrides": []
  85.       },
  86.       "gridPos": {
  87.         "h": 8,
  88.         "w": 12,
  89.         "x": 0,
  90.         "y": 0
  91.       },
  92.       "id": 2,
  93.       "options": {
  94.         "legend": {
  95.           "calcs": [],
  96.           "displayMode": "list",
  97.           "placement": "bottom",
  98.           "showLegend": true
  99.         },
  100.         "tooltip": {
  101.           "mode": "single",
  102.           "sort": "none"
  103.         }
  104.       },
  105.       "targets": [
  106.         {
  107.           "dataset": "mysql",
  108.           "datasource": {
  109.             "type": "mysql",
  110.             "uid": "NmGUN4Q7z"
  111.           },
  112.           "editorMode": "code",
  113.           "format": "table",
  114.           "rawQuery": true,
  115.           "rawSql": "SELECT\n  UNIX_TIMESTAMP(DATE(log_date)) AS \"time\",\n  MAX(max_cell_voltage-min_cell_voltage) as voltage_difference\nFROM pv_battery_state_record\nWHERE\n  $__timeFilter(log_date)\nGROUP BY UNIX_TIMESTAMP(DATE(log_date))\nORDER BY UNIX_TIMESTAMP(DATE(log_date))",
  116.           "refId": "A",
  117.           "sql": {
  118.             "columns": [
  119.               {
  120.                 "parameters": [],
  121.                 "type": "function"
  122.               }
  123.             ],
  124.             "groupBy": [
  125.               {
  126.                 "property": {
  127.                   "type": "string"
  128.                 },
  129.                 "type": "groupBy"
  130.               }
  131.             ],
  132.             "limit": 50
  133.           }
  134.         }
  135.       ],
  136.       "title": "Battery Cells Min/Max Voltage Difference By Day",
  137.       "type": "timeseries"
  138.     },
  139.     {
  140.       "datasource": {
  141.         "type": "mysql",
  142.         "uid": "NmGUN4Q7z"
  143.       },
  144.       "fieldConfig": {
  145.         "defaults": {
  146.           "color": {
  147.             "mode": "palette-classic"
  148.           },
  149.           "custom": {
  150.             "axisBorderShow": false,
  151.             "axisCenteredZero": false,
  152.             "axisColorMode": "text",
  153.             "axisLabel": "",
  154.             "axisPlacement": "auto",
  155.             "barAlignment": 0,
  156.             "drawStyle": "line",
  157.             "fillOpacity": 0,
  158.             "gradientMode": "none",
  159.             "hideFrom": {
  160.               "legend": false,
  161.               "tooltip": false,
  162.               "viz": false
  163.             },
  164.             "insertNulls": false,
  165.             "lineInterpolation": "linear",
  166.             "lineWidth": 1,
  167.             "pointSize": 5,
  168.             "scaleDistribution": {
  169.               "type": "linear"
  170.             },
  171.             "showPoints": "auto",
  172.             "spanNulls": false,
  173.             "stacking": {
  174.               "group": "A",
  175.               "mode": "none"
  176.             },
  177.             "thresholdsStyle": {
  178.               "mode": "off"
  179.             }
  180.           },
  181.           "mappings": [],
  182.           "thresholds": {
  183.             "mode": "absolute",
  184.             "steps": [
  185.               {
  186.                 "color": "green",
  187.                 "value": null
  188.               },
  189.               {
  190.                 "color": "red",
  191.                 "value": 80
  192.               }
  193.             ]
  194.           }
  195.         },
  196.         "overrides": []
  197.       },
  198.       "gridPos": {
  199.         "h": 8,
  200.         "w": 12,
  201.         "x": 12,
  202.         "y": 0
  203.       },
  204.       "id": 3,
  205.       "options": {
  206.         "legend": {
  207.           "calcs": [],
  208.           "displayMode": "list",
  209.           "placement": "bottom",
  210.           "showLegend": true
  211.         },
  212.         "tooltip": {
  213.           "mode": "single",
  214.           "sort": "none"
  215.         }
  216.       },
  217.       "targets": [
  218.         {
  219.           "dataset": "mysql",
  220.           "datasource": {
  221.             "type": "mysql",
  222.             "uid": "NmGUN4Q7z"
  223.           },
  224.           "editorMode": "code",
  225.           "format": "time_series",
  226.           "rawQuery": true,
  227.           "rawSql": "SELECT\n  UNIX_TIMESTAMP(pv_battery_bat.log_date) AS \"time\",\n  concat('cell', pv_battery_bat_battery.Bat), pv_battery_bat_battery.Volt\nFROM pv_battery_bat_battery\nJOIN pv_battery_bat ON pv_battery_bat.uuid = pv_battery_bat_battery.parent_uuid\nWHERE\n  $__timeFilter(pv_battery_bat.log_date)\nORDER BY UNIX_TIMESTAMP(pv_battery_bat.log_date)",
  228.           "refId": "A",
  229.           "sql": {
  230.             "columns": [
  231.               {
  232.                 "parameters": [],
  233.                 "type": "function"
  234.               }
  235.             ],
  236.             "groupBy": [
  237.               {
  238.                 "property": {
  239.                   "type": "string"
  240.                 },
  241.                 "type": "groupBy"
  242.               }
  243.             ],
  244.             "limit": 50
  245.           }
  246.         }
  247.       ],
  248.       "title": "Cells Voltage",
  249.       "type": "timeseries"
  250.     }
  251.   ],
  252.   "refresh": false,
  253.   "schemaVersion": 38,
  254.   "tags": [],
  255.   "templating": {
  256.     "list": []
  257.   },
  258.   "time": {
  259.     "from": "now-3h",
  260.     "to": "now"
  261.   },
  262.   "timepicker": {},
  263.   "timezone": "",
  264.   "title": "PV Power Plant - Battery",
  265.   "uid": "f0cd34f4-41b1-491b-bffd-7b037817e73f",
  266.   "version": 10,
  267.   "weekStart": ""
  268. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement