Grafana dashboard: WeatherFlow Collector - Rain and Lightning
Description: WeatherFlow Collector provides multiple ways of collecting data from the WeatherFlow Tempest, Air, and Sky weather systems. These Grafana dashboards offer visualizations in real-time for current conditions, derived metrics, and forecasting.

A historical view (defaulted to seven days) shows both the precipitation rate alongside the daily accumulation. As you zoom into the specific precipitation events, change the Interval drop-down to smaller increments (up to 1-minute collections) for finer rates.

For Lightning, Strikes and Distance show on a heatmap visualization. Time is across the x-axis while the number of detected lightning strikes is bucketed by color (dark blue to yellow). The Y-axis shows the bucketed distances (up to 40 miles away). Hover over each of the squares to see a histogram of each strike/distance count.

More details on these WeatherFlow Collector dashboards may be found:

- Github Project: [https://github.com/lux4rd0/weatherflow-collector/](https://github.com/lux4rd0/weatherflow-collector/)
- Web Site: [https://labs.lux4rd0.com/weatherflow-collector/](https://labs.lux4rd0.com/weatherflow-collector/)

{
  "__inputs": [
    {
      "name": "DS_INFLUXDB_- WEATHERFLOW",
      "label": "InfluxDB - weatherflow",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.0.4"
    },
    {
      "type": "panel",
      "id": "heatmap",
      "name": "Heatmap",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "WeatherFlow Collector provides multiple ways of collecting data from the WeatherFlow Tempest, Air, and Sky weather systems. These Grafana dashboards offer visualizations in real-time for current conditions, derived metrics, and forecasting.",
  "editable": true,
  "gnetId": 14384,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1625254303228,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "tags": [
        "weatherflow-collector"
      ],
      "title": "WeatherFlow Collector Dashboards",
      "type": "dashboards"
    }
  ],
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 51,
      "panels": [],
      "repeat": "station_name",
      "title": "$station_name",
      "type": "row"
    },
    {
      "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "#37872d",
            "mode": "fixed"
          },
          "decimals": 3,
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "lengthin"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 2,
        "x": 0,
        "y": 1
      },
      "id": 90,
      "interval": "$interval",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.0.4",
      "targets": [
        {
          "alias": "Accumulation",
          "groupBy": [
            {
              "params": [
                "1m"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_obs",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "precip_accumulated"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  "* 0.039370"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            },
            {
              "condition": "AND",
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            }
          ]
        },
        {
          "alias": "Accumulation",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": true,
          "measurement": "weatherflow_obs",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "local_daily_rain_accumulation"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  "10s"
                ],
                "type": "non_negative_derivative"
              },
              {
                "params": [
                  "* 0.039370"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            },
            {
              "condition": "AND",
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "title": "Accumulation",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "dark-blue",
            "mode": "fixed"
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "m"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 2,
        "x": 2,
        "y": 1
      },
      "id": 89,
      "interval": "$interval",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "delta"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.0.4",
      "targets": [
        {
          "alias": "Minutes",
          "groupBy": [
            {
              "params": [
                "5m"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "measurement": "weatherflow_obs",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "precip_minutes_local_day"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            },
            {
              "condition": "AND",
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "title": "Duration",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 25,
            "gradientMode": "opacity",
            "hideFrom": {
              "graph": false,
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 3,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "lengthin"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Accumulation (Daily)"
            },
            "properties": [
              {
                "id": "custom.drawStyle",
                "value": "line"
              },
              {
                "id": "unit",
                "value": "lengthin"
              },
              {
                "id": "decimals",
                "value": 3
              },
              {
                "id": "custom.fillOpacity",
                "value": 6
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "#37872D",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.lineWidth",
                "value": 2
              },
              {
                "id": "custom.gradientMode",
                "value": "opacity"
              },
              {
                "id": "custom.showPoints",
                "value": "never"
              },
              {
                "id": "custom.pointSize",
                "value": 20
              },
              {
                "id": "custom.fillOpacity",
                "value": 20
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Rate"
            },
            "properties": [
              {
                "id": "decimals",
                "value": 3
              },
              {
                "id": "unit",
                "value": "in"
              },
              {
                "id": "custom.lineWidth",
                "value": 1
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "dark-blue",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.fillOpacity",
                "value": 27
              },
              {
                "id": "custom.gradientMode",
                "value": "none"
              },
              {
                "id": "custom.drawStyle",
                "value": "line"
              },
              {
                "id": "custom.pointSize",
                "value": 20
              },
              {
                "id": "custom.showPoints",
                "value": "never"
              },
              {
                "id": "decimals",
                "value": 4
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 9,
        "w": 20,
        "x": 4,
        "y": 1
      },
      "id": 81,
      "interval": "$interval",
      "options": {
        "graph": {},
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "7.5.4",
      "targets": [
        {
          "alias": "Rate",
          "cacheDurationSeconds": 300,
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_obs",
          "method": "GET",
          "orderByTime": "ASC",
          "policy": "default",
          "queryParams": "",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "precip"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  "* 0.039370"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ],
          "tz": "$tz",
          "urlPath": ""
        },
        {
          "alias": "Accumulation (Daily)",
          "cacheDurationSeconds": 300,
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_obs",
          "method": "GET",
          "orderByTime": "ASC",
          "policy": "default",
          "queryParams": "",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "precip_accum_local_day"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  "* 0.039370"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ],
          "tz": "$tz",
          "urlPath": ""
        },
        {
          "alias": "Rate",
          "cacheDurationSeconds": 300,
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_obs",
          "method": "GET",
          "orderByTime": "ASC",
          "policy": "default",
          "queryParams": "",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "precip_accumulated"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  "* 0.039370"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ],
          "tz": "$tz",
          "urlPath": ""
        },
        {
          "alias": "Accumulation (Daily)",
          "cacheDurationSeconds": 300,
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_obs",
          "method": "GET",
          "orderByTime": "ASC",
          "policy": "default",
          "queryParams": "",
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "local_daily_rain_accumulation"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  "* 0.039370"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ],
          "tz": "$tz",
          "urlPath": ""
        }
      ],
      "title": "Precipitation Amounts",
      "type": "timeseries"
    },
    {
      "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "dark-blue",
            "mode": "fixed"
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 4,
        "x": 0,
        "y": 10
      },
      "hideTimeOverride": true,
      "id": 91,
      "interval": "$interval",
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.0.4",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": true,
          "measurement": "weatherflow_evt_strike",
          "orderByTime": "ASC",
          "policy": "default",
          "queryType": "randomWalk",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "distance"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            },
            {
              "condition": "AND",
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            }
          ]
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": true,
          "measurement": "weatherflow_obs",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT distinct(\"lightning_strike_avg_distance\") FROM \"weatherflow_obs\" WHERE (\"collector_type\" =~ /^$collector_type$/ AND \"station_name\" =~ /^$station_name$/ AND \"evt_source\" =~ /^$evt_source$/)  AND lightning_strike_avg_distance <= 42 AND lightning_strike_avg_distance >= 1 AND $timeFilter GROUP BY time(1s) fill(null)",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "lightning_strike_count"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            },
            {
              "condition": "AND",
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            }
          ]
        },
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "1s"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_evt_strike",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"distance\") FROM \"weatherflow_evt_strike\" WHERE (\"collector_type\" =~ /^$collector_type$/ AND \"station_name\" =~ /^$station_name$/ AND \"evt_source\" =~ /^$evt_source$/) AND $timeFilter AND distance >= 1 GROUP BY time(1s)  fill(null)",
          "queryType": "randomWalk",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "distance"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "distinct"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=",
              "value": "Savannah Crossing"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=",
              "value": "local-udp"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Time Range",
      "transformations": [],
      "type": "stat"
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#5794F2",
        "colorScale": "sqrt",
        "colorScheme": "interpolatePlasma",
        "exponent": 0.3,
        "mode": "spectrum"
      },
      "dataFormat": "timeseries",
      "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
      "gridPos": {
        "h": 9,
        "w": 20,
        "x": 4,
        "y": 10
      },
      "heatmap": {},
      "hideZeroBuckets": true,
      "highlightCards": true,
      "id": 74,
      "interval": "$interval",
      "legend": {
        "show": true
      },
      "pluginVersion": "7.5.4",
      "reverseYBuckets": false,
      "targets": [
        {
          "alias": "Lightning Strike",
          "groupBy": [
            {
              "params": [
                "1s"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": true,
          "measurement": "weatherflow_evt_strike",
          "orderByTime": "ASC",
          "policy": "default",
          "queryType": "randomWalk",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "time_epoch"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "distinct"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ]
        },
        {
          "alias": "Average Distance",
          "groupBy": [
            {
              "params": [
                "1s"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_evt_strike",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT distinct(\"distance\") * 0.62137 FROM \"weatherflow_evt_strike\" WHERE (\"station_name\" =~ /^$station_name$/ AND \"collector_type\" =~ /^$collector_type$/ AND \"evt_source\" =~ /^$evt_source$/) AND distance <= 42 AND distance >= 1 AND $timeFilter GROUP BY time(1s) fill(null)",
          "queryType": "randomWalk",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "distance"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "distinct"
              },
              {
                "params": [
                  "* 0.62137"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ]
        },
        {
          "alias": "Energy",
          "groupBy": [
            {
              "params": [
                "1s"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": true,
          "measurement": "weatherflow_evt_strike",
          "orderByTime": "ASC",
          "policy": "default",
          "queryType": "randomWalk",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "energy"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "distinct"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ]
        },
        {
          "alias": "Average Distance",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weatherflow_obs",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT distinct(\"lightning_strike_avg_distance\") * 0.62137 FROM \"weatherflow_obs\" WHERE (\"station_name\" =~ /^$station_name$/ AND \"collector_type\" =~ /^$collector_type$/ AND \"evt_source\" =~ /^$evt_source$/) AND lightning_strike_avg_distance <= 42 AND lightning_strike_avg_distance >= 1 AND $timeFilter GROUP BY time(1s) fill(null)",
          "queryType": "randomWalk",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "lightning_strike_avg_distance"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  "* 0.62137"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "station_name",
              "operator": "=~",
              "value": "/^$station_name$/"
            },
            {
              "condition": "AND",
              "key": "collector_type",
              "operator": "=~",
              "value": "/^$collector_type$/"
            }
          ]
        }
      ],
      "title": "Strikes / Distance",
      "tooltip": {
        "show": true,
        "showHistogram": true
      },
      "transformations": [],
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": 50,
      "xBucketSize": "",
      "yAxis": {
        "decimals": 0,
        "format": "miles",
        "logBase": 1,
        "max": "28",
        "min": "0",
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": 10,
      "yBucketSize": null
    }
  ],
  "refresh": false,
  "schemaVersion": 30,
  "style": "dark",
  "tags": [
    "weatherflow-collector",
    "influxdb"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
        "definition": "SHOW TAG VALUES WITH KEY = \"station_name\"",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Station Name",
        "multi": true,
        "name": "station_name",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"station_name\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
        "definition": "SHOW TAG VALUES WITH KEY = \"timezone\"",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Time Zone",
        "multi": false,
        "name": "tz",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"timezone\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "remote-socket",
          "value": "remote-socket"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Collector Type",
        "multi": false,
        "name": "collector_type",
        "options": [
          {
            "selected": false,
            "text": "local-udp",
            "value": "local-udp"
          },
          {
            "selected": true,
            "text": "remote-socket",
            "value": "remote-socket"
          }
        ],
        "query": "local-udp,remote-socket",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB_- WEATHERFLOW}",
        "definition": "SHOW TAG VALUES WITH KEY = \"evt_source\"",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Lightning Event Source",
        "multi": false,
        "name": "evt_source",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"evt_source\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "15m",
          "value": "15m"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Interval",
        "multi": false,
        "name": "interval",
        "options": [
          {
            "selected": false,
            "text": "7d",
            "value": "7d"
          },
          {
            "selected": false,
            "text": "2d",
            "value": "2d"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "4h",
            "value": "4h"
          },
          {
            "selected": false,
            "text": "2h",
            "value": "2h"
          },
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": true,
            "text": "15m",
            "value": "15m"
          },
          {
            "selected": false,
            "text": "10m",
            "value": "10m"
          },
          {
            "selected": false,
            "text": "5m",
            "value": "5m"
          },
          {
            "selected": false,
            "text": "2m",
            "value": "2m"
          },
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "selected": false,
            "text": "30s",
            "value": "30s"
          }
        ],
        "query": "7d,2d,1d,12h,6h,4h,2h,1h,30m,15m,10m,5m,2m,1m,30s",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-7d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "browser",
  "title": "WeatherFlow Collector - Rain and Lightning",
  "uid": "lux4rd0labs_weatherflow_20",
  "version": 1
}