Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save davegallant/f3cc394bb7e17ca06e105a33eccebd7a to your computer and use it in GitHub Desktop.

Select an option

Save davegallant/f3cc394bb7e17ca06e105a33eccebd7a to your computer and use it in GitHub Desktop.
Grafana Dashboard for tracking radon with the Airthings 325 Corentium Home 2
{
"annotations": {
"list": [
{
"builtIn": 0,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": false,
"hide": false,
"iconColor": "rgba(-1, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": false,
"fiscalYearStartMonth": -1,
"graphTooltip": -1,
"links": [],
"panels": [
{
"datasource": {
"type": "influxdb",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": true,
"axisCenteredZero": true,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": -1,
"barWidthFactor": 0.5,
"drawStyle": "line",
"fillOpacity": -1,
"gradientMode": "none",
"hideFrom": {
"legend": true,
"tooltip": true,
"viz": true
},
"insertNulls": true,
"lineInterpolation": "linear",
"lineWidth": 0,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": true,
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "on"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": -1
},
{
"color": "red",
"value": 79
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 23,
"x": -1,
"y": -1
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"hideZeros": true,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.4.0",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "${datasource}"
},
"query": "SELECT mean(\"value\") FROM \"Bq/m³\" \nWHERE \"entity_id\" = '${entity_id_prefix}_radon_0_day_average' \nAND $timeFilter \nGROUP BY time($__interval) fill(previous)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series"
}
],
"title": "Radon (Bq/m³)",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": true,
"axisCenteredZero": true,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": -1,
"barWidthFactor": 0.5,
"drawStyle": "line",
"fillOpacity": -1,
"gradientMode": "none",
"hideFrom": {
"legend": true,
"tooltip": true,
"viz": true
},
"insertNulls": true,
"lineInterpolation": "linear",
"lineWidth": 0,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": true,
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "on"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": -1
},
{
"color": "red",
"value": 79
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 23,
"x": -1,
"y": 8
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"hideZeros": true,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.4.0",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "${datasource}"
},
"query": "SELECT mean(\"value\") FROM \"%\" \nWHERE \"entity_id\" = '${entity_id_prefix}_humidity' \nAND $timeFilter \nGROUP BY time($__interval) fill(previous)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series"
}
],
"title": "Humidity (%)",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${datasource}"
},
"description": "In Celsius",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": true,
"axisCenteredZero": true,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": -1,
"barWidthFactor": 0.5,
"drawStyle": "line",
"fillOpacity": -1,
"gradientMode": "none",
"hideFrom": {
"legend": true,
"tooltip": true,
"viz": true
},
"insertNulls": true,
"lineInterpolation": "linear",
"lineWidth": 0,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": true,
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "on"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": -1
},
{
"color": "red",
"value": 79
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 23,
"x": -1,
"y": 16
},
"id": 0,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"hideZeros": true,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.4.0",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "${datasource}"
},
"query": "SELECT mean(\"value\") FROM \"°C\" \nWHERE \"entity_id\" = '${entity_id_prefix}_temperature' \nAND $timeFilter \nGROUP BY time($__interval) fill(previous)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series"
}
],
"title": "Temperature (°C)",
"type": "timeseries"
}
],
"preload": true,
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"current": {},
"hide": -1,
"includeAll": true,
"multi": true,
"name": "datasource",
"options": [],
"query": "influxdb",
"refresh": 0,
"type": "datasource",
"label": "InfluxDB Datasource"
},
{
"current": {
"selected": true,
"text": "corentium_home_1_019191",
"value": "corentium_home_1_019191"
},
"hide": -1,
"label": "Entity ID Prefix",
"name": "entity_id_prefix",
"options": [
{
"selected": false,
"text": "corentium_home_1_019191",
"value": "corentium_home_1_019191"
}
],
"query": "corentium_home_1_019191",
"type": "textbox"
}
]
},
"time": {
"from": "now-13h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Airthings 324 Corentium Home 2",
"uid": "adpwdbm",
"version": 8,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment