Meteo
scapigliato prova

{
  "__inputs": [
    {
      "name": "DS_PGMONITOR",
      "label": "pgMonitor",
      "description": "",
      "type": "datasource",
      "pluginId": "postgres",
      "pluginName": "PostgreSQL"
    },
    {
      "name": "VAR_PLANTID",
      "type": "constant",
      "label": "plantId",
      "value": "6",
      "description": ""
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "fatcloud-windrose-panel",
      "name": "WindRose",
      "version": "0.7.0"
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.3.6"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "postgres",
      "name": "PostgreSQL",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 18073,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1675878257056,
  "links": [],
  "panels": [
    {
      "datasource": "${DS_PGMONITOR}",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 9,
        "x": 0,
        "y": 0
      },
      "id": 23,
      "links": [],
      "options": {
        "content": "<h3>Dati meteo stazione: $stackName</h3>\n\n\n\n",
        "mode": "html"
      },
      "pluginVersion": "7.3.6",
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "text"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_PGMONITOR}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {},
          "mappings": [
            {
              "id": 0,
              "op": "=",
              "text": "N/A",
              "type": 1,
              "value": "null"
            }
          ],
          "max": 1000,
          "min": 0,
          "nullValueMode": "connected",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "green",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 15,
        "x": 9,
        "y": 0
      },
      "id": 29,
      "links": [],
      "options": {
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "7.3.6",
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "hide": false,
          "metricColumn": "trend_id",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  p.name || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\n  inner join anag.stacks s on t.stack_id = s.id\nWHERE\n  $__timeFilter(data_timestamp) and p.name in ('Press', 'Temp', 'VV', 'DV', 'U.R.', 'RADST', 'Pioggia') and t.stack_id = $stackId and status = 'V'\nORDER BY t.col_order, 1\n",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "hist.elem",
          "timeColumn": "data_timestamp",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        },
        {
          "format": "time_series",
          "group": [],
          "hide": true,
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  date_trunc('hour',data_timestamp) AS \"time\",\n  s.name || ' - ' || p.name || ' media [' || t.unit || '] ' AS metric,\n  avg(value) as value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\n  inner join anag.stacks s on t.stack_id = s.id\nwhere\n  $__timeFilter(data_timestamp) and p.name in ('Press', 'TempExt', 'VVP', 'DVP', 'URExt', 'UV', 'RadSol') and s.id = $stackId\nGROUP BY\n  date_trunc('hour',data_timestamp), metric, p.type\n  \nORDER BY 1,2\n",
          "refId": "B",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Ultimi valori nel periodo",
      "transparent": true,
      "type": "gauge"
    },
    {
      "datasource": "${DS_PGMONITOR}",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 14,
        "w": 9,
        "x": 0,
        "y": 2
      },
      "id": 31,
      "pconfig": {
        "layout": {
          "autosize": false,
          "font": {
            "color": "rgb(110,110,110)",
            "family": "\"Open Sans\", Helvetica, Arial, sans-serif"
          },
          "hovermode": "closest",
          "legend": {
            "orientation": "v"
          },
          "paper_bgcolor": "transparent",
          "plot_bgcolor": "transparent",
          "polar": {
            "angularaxis": {
              "direction": "clockwise",
              "dtick": 22.5,
              "rotation": 90
            },
            "radialaxis": {
              "angle": 90,
              "ticksuffix": " m/s"
            }
          },
          "showlegend": false
        },
        "mapping": {
          "color": "vvp1",
          "size": "vvp1",
          "x": "dvp1",
          "y": "vvp1",
          "z": "DVP"
        },
        "settings": {
          "color_option": "ramp",
          "displayModeBar": false,
          "marker": {
            "color": "#33B5E5",
            "colorscale": "Jet",
            "showscale": true,
            "size": 15,
            "sizemin": 3,
            "sizemode": "area",
            "sizeref": 1,
            "symbol": "circle"
          },
          "petals": 32,
          "plot": "scatter",
          "wind_speed_interval": 1
        }
      },
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "with dvp as(\nSELECT\n  data_timestamp,\n  'DVP' AS metric,\n  value\nFROM hist.elem\nWHERE\n  $__timeFilter(data_timestamp) and trend_id = $dvp and value < 32767 and status = 'V'\n  ),\nvvp as (\nSELECT\n  data_timestamp,\n  'VVP' AS metric,\n  value\nFROM hist.elem\nWHERE\n  $__timeFilter(data_timestamp) and trend_id = $vvp and value > 0.2 and status = 'V'\n  )\n\nselect \n  dvp.data_timestamp as \"time\",\n  dvp.value as dvp1,\n  vvp.value as vvp1\nfrom \n  dvp inner join vvp using(data_timestamp)\n\n\n",
          "refId": "C",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "WindRose",
      "transparent": true,
      "type": "fatcloud-windrose-panel"
    },
    {
      "aliasColors": {
        "129-Temp [°C]": "light-green",
        "131-Temp [°C]": "light-red",
        "133-Temp [°C]": "dark-green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PGMONITOR}",
      "decimals": 1,
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 7,
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 9,
        "y": 4
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  'Temp' || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\nWHERE\n  $__timeFilter(data_timestamp) and t.id = $tempExt and status = 'V'\nORDER BY 1,2",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Temp",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "129-Temp [°C]": "light-green",
        "131-Temp [°C]": "light-red",
        "133-Temp [°C]": "dark-green",
        "5728-PM2.5 [ug/m3]": "#eab839"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PGMONITOR}",
      "decimals": 3,
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 7,
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 17,
        "y": 4
      },
      "hiddenSeries": false,
      "id": 26,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  p.name || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\nWHERE\n  $__timeFilter(data_timestamp) and t.id = $press and status = 'V'\nORDER BY 1,2",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Press",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 3,
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "129-UMR [%]": "super-light-blue",
        "131-UMR [%]": "light-blue",
        "133-UMR [%]": "dark-blue",
        "5728-PM4 [ug/m3]": "#6ed0e0",
        "UMR [%]": "green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PGMONITOR}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 7,
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 9,
        "y": 10
      },
      "hiddenSeries": false,
      "id": 8,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  'UMR' || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\nWHERE\n  $__timeFilter(data_timestamp) and t.id = $umr and status = 'V'\nORDER BY 1,2",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "UMR",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "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
      }
    },
    {
      "aliasColors": {
        "129-Press [hPa]": "super-light-purple",
        "131-Press [hPa]": "light-purple",
        "133-Press [hPa]": "dark-purple",
        "5728-PMtot [ug/m3]": "#e24d42",
        "Press [hPa]": "red"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PGMONITOR}",
      "decimals": 0,
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 7,
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 17,
        "y": 10
      },
      "hiddenSeries": false,
      "id": 6,
      "legend": {
        "avg": false,
        "current": true,
        "hideZero": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  p.name || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\nWHERE\n  $__timeFilter(data_timestamp) and t.id = $radSol and status = 'V'\nORDER BY 1,2\n",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Rad Sol",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "short",
          "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
      }
    },
    {
      "aliasColors": {
        "129-UMR [%]": "super-light-blue",
        "131-UMR [%]": "light-blue",
        "133-UMR [%]": "dark-blue",
        "5728-PM10 [ug/m3]": "#ef843c",
        "UMR [%]": "blue"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PGMONITOR}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 7,
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 1,
        "y": 16
      },
      "hiddenSeries": false,
      "id": 32,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  p.name || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\nWHERE\n  $__timeFilter(data_timestamp) and t.id = $dvp and value < 32767 and status = 'V'\nORDER BY 1,2",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "DVP",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "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
      }
    },
    {
      "aliasColors": {
        "129-UMR [%]": "super-light-blue",
        "131-UMR [%]": "light-blue",
        "133-UMR [%]": "dark-blue",
        "5728-PM10 [ug/m3]": "#ef843c",
        "UMR [%]": "blue"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PGMONITOR}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 7,
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 9,
        "y": 16
      },
      "hiddenSeries": false,
      "id": 33,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  p.name || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\nWHERE\n  $__timeFilter(data_timestamp) and t.id = $vvp and status = 'V'\nORDER BY 1,2",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "VVP",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "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
      }
    },
    {
      "aliasColors": {
        "129-UMR [%]": "super-light-blue",
        "131-UMR [%]": "light-blue",
        "133-UMR [%]": "dark-blue",
        "5728-PM10 [ug/m3]": "#ef843c",
        "UMR [%]": "blue"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PGMONITOR}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 7,
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 17,
        "y": 16
      },
      "hiddenSeries": false,
      "id": 27,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT\n  data_timestamp AS \"time\",\n  p.name || ' [' || t.unit || ']' AS metric,\n  value\nFROM \n  hist.elem e\n  inner join anag.trends t on e.trend_id = t.id\n  inner join anag.params p on t.param_id = p.id\nWHERE\n  $__timeFilter(data_timestamp) and t.id = $pluv and status = 'V'\nORDER BY 1,2",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Pioggia",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "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": "1m",
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "value": "${VAR_PLANTID}",
          "text": "${VAR_PLANTID}",
          "selected": false
        },
        "error": null,
        "hide": 2,
        "label": null,
        "name": "plantId",
        "options": [
          {
            "value": "${VAR_PLANTID}",
            "text": "${VAR_PLANTID}",
            "selected": false
          }
        ],
        "query": "${VAR_PLANTID}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "select longname from anag.stacks where plant_id = $plantId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": "Stazione",
        "multi": false,
        "name": "stackName",
        "options": [],
        "query": "select longname from anag.stacks where plant_id = $plantId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "select id from anag.stacks where longname = '$stackName'::text",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "stackId",
        "options": [],
        "query": "select id from anag.stacks where longname = '$stackName'::text",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM  anag.trends t inner join anag.params p on t.param_id = p.id inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('Temp') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "tempExt",
        "options": [],
        "query": "SELECT   t.id   FROM  anag.trends t inner join anag.params p on t.param_id = p.id inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('Temp') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('VVP') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "vvp",
        "options": [],
        "query": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('VVP') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('DVP') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "dvp",
        "options": [],
        "query": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('DVP') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('UMR') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "umr",
        "options": [],
        "query": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('UMR') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('UV') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "uv",
        "options": [],
        "query": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('UV') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('RadSol') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "radSol",
        "options": [],
        "query": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('RadSol') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('Press') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "press",
        "options": [],
        "query": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('Press') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PGMONITOR}",
        "definition": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('Pioggia') and t.stack_id = $stackId",
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "pluv",
        "options": [],
        "query": "SELECT   t.id   FROM    anag.trends t inner join anag.params p on t.param_id = p.id   inner join anag.stacks s on t.stack_id = s.id WHERE  p.name in ('Pioggia') and t.stack_id = $stackId",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "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": "Meteo",
  "uid": "rCLgba5Gz",
  "version": 8,
  "description": "scapigliato prova\r\n"
}