Grafana dashboard: Open Weather Map
Description: Access current weather data for any location on Earth including over 200,000 cities!

# Overview
This dashboard visualizes the data collected from the OpenWeatherMap API using Telegraf plugin. 

### Forecast
Forecast variable filter is included in this template. To analyse the forecast data, simply change the time range filter to the desire hours in the future.

{
  "__inputs": [
    {
      "name": "DS_DROPET-INFLUXDB",
      "label": "",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.4.7"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "state-timeline",
      "name": "State timeline",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "Access current weather data for any location on Earth including over 200,000 cities!",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 18388,
  "graphTooltip": 2,
  "id": null,
  "links": [
    {
      "icon": "doc",
      "tags": [],
      "targetBlank": true,
      "title": "Current weather data",
      "type": "link",
      "url": "https://openweathermap.org/current"
    }
  ],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "datasource": {
        "type": "influxdb",
        "uid": "NSiyfAf4k"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 108,
      "panels": [],
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "NSiyfAf4k"
          },
          "refId": "A"
        }
      ],
      "title": "General",
      "type": "row"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_DROPET-INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 7,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 3,
            "pointSize": 7,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 231,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "min",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "$tag_name, $tag_sys_country",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "sys_country"
              ],
              "type": "tag"
            },
            {
              "params": [
                "name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "openweathermap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"feels_like\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"${forecast}\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "main_temp"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "sys_country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "name",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Real Feels",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*(city=\")/gm",
            "renamePattern": ""
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\".*$/gm",
            "renamePattern": ""
          }
        }
      ],
      "transparent": true,
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_DROPET-INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 7,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 3,
            "pointSize": 7,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 11
      },
      "id": 200,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "min",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "$tag_name, $tag_sys_country",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "sys_country"
              ],
              "type": "tag"
            },
            {
              "params": [
                "name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "openweathermap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"temperature\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"${forecast}\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "main_temp"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "sys_country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "name",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Temperature",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*(city=\")/gm",
            "renamePattern": ""
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\".*$/gm",
            "renamePattern": ""
          }
        }
      ],
      "transparent": true,
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_DROPET-INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 7,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 3,
            "pointSize": 7,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "humidity"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 12,
        "y": 11
      },
      "id": 230,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "min",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "$tag_name, $tag_sys_country",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "sys_country"
              ],
              "type": "tag"
            },
            {
              "params": [
                "name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "openweathermap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"humidity\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"${forecast}\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "main_temp"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "sys_country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "name",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "rHumidity",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*(city=\")/gm",
            "renamePattern": ""
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\".*$/gm",
            "renamePattern": ""
          }
        }
      ],
      "transparent": true,
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_DROPET-INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 7,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 3,
            "pointSize": 7,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "pressurehpa"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 21
      },
      "id": 233,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "min",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "$tag_name, $tag_sys_country",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "sys_country"
              ],
              "type": "tag"
            },
            {
              "params": [
                "name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "openweathermap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"pressure\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"${forecast}\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "main_temp"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "sys_country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "name",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Atmospheric pressure",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*(city=\")/gm",
            "renamePattern": ""
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\".*$/gm",
            "renamePattern": ""
          }
        }
      ],
      "transparent": true,
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_DROPET-INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 7,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 3,
            "pointSize": 7,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "velocityms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 12,
        "y": 21
      },
      "id": 232,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "min",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "$tag_name, $tag_sys_country",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "sys_country"
              ],
              "type": "tag"
            },
            {
              "params": [
                "name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "openweathermap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"wind_speed\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"${forecast}\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "main_temp"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "sys_country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "name",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Wind speed",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*(city=\")/gm",
            "renamePattern": ""
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\".*$/gm",
            "renamePattern": ""
          }
        }
      ],
      "transparent": true,
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_DROPET-INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 7,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 3,
            "pointSize": 7,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 31
      },
      "id": 234,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "min",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "$tag_name, $tag_sys_country",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "sys_country"
              ],
              "type": "tag"
            },
            {
              "params": [
                "name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "openweathermap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"cloudiness\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"${forecast}\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "main_temp"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "sys_country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "name",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Cloudiness",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*(city=\")/gm",
            "renamePattern": ""
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\".*$/gm",
            "renamePattern": ""
          }
        }
      ],
      "transparent": true,
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_DROPET-INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "fillOpacity": 17,
            "lineWidth": 3,
            "spanNulls": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 12,
        "y": 31
      },
      "id": 208,
      "links": [],
      "options": {
        "alignValue": "left",
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "mergeValues": true,
        "rowHeight": 0.67,
        "showValue": "auto",
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "alias": "Wind direction",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "sys_country"
              ],
              "type": "tag"
            },
            {
              "params": [
                "name"
              ],
              "type": "tag"
            }
          ],
          "hide": false,
          "measurement": "openweathermap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"condition_description\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"${forecast}\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)",
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "wind_deg"
                ],
                "type": "field"
              },
              {
                "params": [
                  "Wind direction"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "weather_0_description"
                ],
                "type": "field"
              },
              {
                "params": [
                  "Weather condition"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "sys_sunrise"
                ],
                "type": "field"
              },
              {
                "params": [
                  "*1000"
                ],
                "type": "math"
              },
              {
                "params": [
                  "Sunrise time"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "sys_sunset"
                ],
                "type": "field"
              },
              {
                "params": [
                  "*1000"
                ],
                "type": "math"
              },
              {
                "params": [
                  "Sunset time"
                ],
                "type": "alias"
              }
            ]
          ],
          "tags": [
            {
              "key": "sys_country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "name",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Current weather data",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/.*(city=\")/gm",
            "renamePattern": ""
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/\".*$/gm",
            "renamePattern": ""
          }
        }
      ],
      "transparent": true,
      "type": "state-timeline"
    },
    {
      "collapsed": true,
      "datasource": {
        "type": "influxdb",
        "uid": "NSiyfAf4k"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 41
      },
      "id": 16,
      "panels": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 1,
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "max": 40,
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "#629e51"
                  },
                  {
                    "color": "dark-blue",
                    "value": 0
                  },
                  {
                    "color": "blue",
                    "value": 10
                  },
                  {
                    "color": "green",
                    "value": 25
                  },
                  {
                    "color": "orange",
                    "value": 30
                  },
                  {
                    "color": "red",
                    "value": 35
                  }
                ]
              },
              "unit": "celsius"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 4,
            "x": 0,
            "y": 2
          },
          "id": 209,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"temperature\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "wind_speed"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "Temperature",
          "transparent": true,
          "type": "gauge"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 1,
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "max": 100,
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "#629e51"
                  },
                  {
                    "color": "dark-blue",
                    "value": 0
                  },
                  {
                    "color": "blue",
                    "value": 40
                  },
                  {
                    "color": "green",
                    "value": 65
                  },
                  {
                    "color": "orange",
                    "value": 75
                  },
                  {
                    "color": "red",
                    "value": 88
                  }
                ]
              },
              "unit": "humidity"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 4,
            "x": 4,
            "y": 2
          },
          "id": 235,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"humidity\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "wind_speed"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "rHumidity",
          "transparent": true,
          "type": "gauge"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 1,
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "max": 25,
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "#629e51"
                  },
                  {
                    "color": "#ef843c",
                    "value": 6
                  },
                  {
                    "color": "#e24d42",
                    "value": 14
                  }
                ]
              },
              "unit": "velocityms"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 4,
            "x": 8,
            "y": 2
          },
          "id": 3,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"wind_speed\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "wind_speed"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "Wind speed",
          "transparent": true,
          "type": "gauge"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 0,
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "#ef843c"
                  },
                  {
                    "color": "#629e51",
                    "value": 999.75
                  },
                  {
                    "color": "#ef843c",
                    "value": 1013.08
                  }
                ]
              },
              "unit": "pressurehpa"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 12,
            "y": 2
          },
          "id": 5,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"pressure\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "main_pressure"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "Atmospheric pressure",
          "transparent": true,
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "from": 0,
                    "result": {
                      "text": "↓"
                    },
                    "to": 22.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 22.5,
                    "result": {
                      "text": "↙"
                    },
                    "to": 77.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 77.5,
                    "result": {
                      "text": "←"
                    },
                    "to": 112.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 112.5,
                    "result": {
                      "text": "↖"
                    },
                    "to": 157.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 157.5,
                    "result": {
                      "text": "↑"
                    },
                    "to": 202.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 202.5,
                    "result": {
                      "text": "↗"
                    },
                    "to": 247.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 247.5,
                    "result": {
                      "text": "→"
                    },
                    "to": 292.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 292.5,
                    "result": {
                      "text": "↘"
                    },
                    "to": 337.5
                  },
                  "type": "range"
                },
                {
                  "options": {
                    "from": 337.5,
                    "result": {
                      "text": "↓"
                    },
                    "to": 360
                  },
                  "type": "range"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 16,
            "y": 2
          },
          "id": 11,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"wind_degrees\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "wind_deg"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "Wind direction",
          "transparent": true,
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 4,
            "x": 20,
            "y": 2
          },
          "id": 9,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "/^1$/",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"condition_description\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n  |> last()\r\n  |> yield(name: \"last\")",
              "refId": "A",
              "resultFormat": "table",
              "select": [
                [
                  {
                    "params": [
                      "weather_0_description"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "Weather condition",
          "transformations": [
            {
              "id": "renameByRegex",
              "options": {
                "regex": "/condition_description\\s*{.*$/gm",
                "renamePattern": "1"
              }
            }
          ],
          "transparent": true,
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "rgb(31, 120, 193)",
                "mode": "thresholds"
              },
              "decimals": 0,
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-blue"
                  },
                  {
                    "color": "blue",
                    "value": 15
                  },
                  {
                    "color": "green",
                    "value": 25
                  },
                  {
                    "color": "red",
                    "value": 35
                  }
                ]
              },
              "unit": "celsius"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 12,
            "y": 5
          },
          "id": 6,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"feels_like\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "main_humidity"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "Real Feels",
          "transparent": true,
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_DROPET-INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "rgb(31, 120, 193)",
                "mode": "fixed"
              },
              "decimals": 0,
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 16,
            "y": 5
          },
          "id": 7,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_DROPET-INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "openweathermap",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "from(bucket: \"droplet\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"openweathermap\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"cloudiness\")\r\n  |> filter(fn: (r) => r[\"city\"] == \"${city}\")\r\n  |> filter(fn: (r) => r[\"forecast\"] == \"*\")\r\n  |> drop(columns: [\"condition_id\", \"condition_main\"])\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "clouds_all"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "sys_country",
                  "operator": "=~",
                  "value": "/^$country$/"
                },
                {
                  "condition": "AND",
                  "key": "name",
                  "operator": "=~",
                  "value": "/^$city$/"
                }
              ]
            }
          ],
          "title": "Cloudiness",
          "transparent": true,
          "type": "stat"
        }
      ],
      "repeat": "city",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "NSiyfAf4k"
          },
          "refId": "A"
        }
      ],
      "title": "$city",
      "type": "row"
    }
  ],
  "refresh": "",
  "revision": 1,
  "schemaVersion": 38,
  "style": "dark",
  "tags": [
    "telegraf",
    "influxdb2",
    "flux",
    "openweathermap"
  ],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_DROPET-INFLUXDB}"
        },
        "definition": "import \"influxdata/influxdb/schema\"\r\n\r\nschema.measurementTagValues(\r\n    bucket: \"droplet\",\r\n    measurement: \"openweathermap\",\r\n    tag: \"country\",\r\n)",
        "hide": 2,
        "includeAll": true,
        "label": "Country",
        "multi": true,
        "name": "country",
        "options": [],
        "query": "import \"influxdata/influxdb/schema\"\r\n\r\nschema.measurementTagValues(\r\n    bucket: \"droplet\",\r\n    measurement: \"openweathermap\",\r\n    tag: \"country\",\r\n)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_DROPET-INFLUXDB}"
        },
        "definition": "import \"influxdata/influxdb/schema\"\r\n\r\nschema.measurementTagValues(\r\n    bucket: \"droplet\",\r\n    measurement: \"openweathermap\",\r\n    tag: \"city\",\r\n)",
        "hide": 0,
        "includeAll": true,
        "label": "City",
        "multi": true,
        "name": "city",
        "options": [],
        "query": "import \"influxdata/influxdb/schema\"\r\n\r\nschema.measurementTagValues(\r\n    bucket: \"droplet\",\r\n    measurement: \"openweathermap\",\r\n    tag: \"city\",\r\n)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_DROPET-INFLUXDB}"
        },
        "definition": "import \"influxdata/influxdb/schema\"\r\n\r\nschema.measurementTagValues(\r\n    bucket: \"droplet\",\r\n    measurement: \"openweathermap\",\r\n    tag: \"forecast\",\r\n)",
        "description": "Forecast hours into future. Change time filter to future time.",
        "hide": 0,
        "includeAll": false,
        "label": "Forecast",
        "multi": false,
        "name": "forecast",
        "options": [],
        "query": "import \"influxdata/influxdb/schema\"\r\n\r\nschema.measurementTagValues(\r\n    bucket: \"droplet\",\r\n    measurement: \"openweathermap\",\r\n    tag: \"forecast\",\r\n)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 3,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Open Weather Map",
  "uid": "7wISvn_iz",
  "version": 7,
  "weekStart": ""
}