Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"meta": {
"version": "1",
"type": "dashboard",
"name": "Temperature & Humidity via DHT22 Sensor-Template",
"description": "template created from dashboard: Temperature & Humidity via DHT22 Sensor"
},
"content": {
"data": {
"type": "dashboard",
"attributes": {
"name": "Temperature & Humidity via DHT22 Sensor",
"description": ""
},
"relationships": {
"label": {
"data": []
},
"cell": {
"data": [
{
"type": "cell",
"id": "08fc4b18c8fe1000"
},
{
"type": "cell",
"id": "08fc4b9c79fe1000"
},
{
"type": "cell",
"id": "08fc4dc3b5fe1000"
},
{
"type": "cell",
"id": "08fc4e064fbe1000"
}
]
},
"variable": {
"data": []
}
}
},
"included": [
{
"id": "08fc4b18c8fe1000",
"type": "cell",
"attributes": {
"x": 0,
"y": 0,
"w": 6,
"h": 3
},
"relationships": {
"view": {
"data": {
"type": "view",
"id": "08fc4b18c8fe1000"
}
}
}
},
{
"id": "08fc4b9c79fe1000",
"type": "cell",
"attributes": {
"x": 6,
"y": 0,
"w": 6,
"h": 3
},
"relationships": {
"view": {
"data": {
"type": "view",
"id": "08fc4b9c79fe1000"
}
}
}
},
{
"id": "08fc4dc3b5fe1000",
"type": "cell",
"attributes": {
"x": 6,
"y": 3,
"w": 6,
"h": 3
},
"relationships": {
"view": {
"data": {
"type": "view",
"id": "08fc4dc3b5fe1000"
}
}
}
},
{
"id": "08fc4e064fbe1000",
"type": "cell",
"attributes": {
"x": 0,
"y": 3,
"w": 6,
"h": 3
},
"relationships": {
"view": {
"data": {
"type": "view",
"id": "08fc4e064fbe1000"
}
}
}
},
{
"type": "view",
"id": "08fc4b18c8fe1000",
"attributes": {
"name": "Humidity",
"properties": {
"shape": "chronograf-v2",
"type": "gauge",
"queries": [
{
"text": "from(bucket: \"dht\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"humidity\")\n |> filter(fn: (r) => r[\"_field\"] == \"humidity\")\n |> filter(fn: (r) => r[\"host\"] == \"pi\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")",
"editMode": "advanced",
"name": "",
"builderConfig": {
"buckets": [],
"tags": [
{
"key": "_measurement",
"values": [],
"aggregateFunctionType": "filter"
}
],
"functions": [
{
"name": "mean"
}
],
"aggregateWindow": {
"period": "auto",
"fillValues": false
}
}
}
],
"prefix": "",
"tickPrefix": "",
"suffix": "%",
"tickSuffix": "%",
"colors": [
{
"id": "0",
"type": "min",
"hex": "#00C9FF",
"name": "laser",
"value": 0
},
{
"id": "1",
"type": "max",
"hex": "#9394FF",
"name": "comet",
"value": 100
}
],
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"showNoteWhenEmpty": false
}
}
},
{
"type": "view",
"id": "08fc4b9c79fe1000",
"attributes": {
"name": "Temperature",
"properties": {
"shape": "chronograf-v2",
"type": "gauge",
"queries": [
{
"text": "from(bucket: \"dht\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"temperature\")\n |> filter(fn: (r) => r[\"_field\"] == \"temperature\")\n |> filter(fn: (r) => r[\"host\"] == \"pi\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")",
"editMode": "advanced",
"name": "",
"builderConfig": {
"buckets": [],
"tags": [
{
"key": "_measurement",
"values": [],
"aggregateFunctionType": "filter"
}
],
"functions": [
{
"name": "mean"
}
],
"aggregateWindow": {
"period": "auto",
"fillValues": false
}
}
}
],
"prefix": "",
"tickPrefix": "",
"suffix": "°C",
"tickSuffix": "°C",
"colors": [
{
"id": "0",
"type": "min",
"hex": "#FFD255",
"name": "thunder",
"value": 0
},
{
"id": "1",
"type": "max",
"hex": "#F95F53",
"name": "curacao",
"value": 100
}
],
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"showNoteWhenEmpty": false
}
}
},
{
"type": "view",
"id": "08fc4dc3b5fe1000",
"attributes": {
"name": "Temperature Graph",
"properties": {
"shape": "chronograf-v2",
"queries": [
{
"text": "from(bucket: \"dht\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"temperature\")\n |> filter(fn: (r) => r[\"_field\"] == \"temperature\")\n |> filter(fn: (r) => r[\"host\"] == \"pi\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")",
"editMode": "advanced",
"name": "",
"builderConfig": {
"buckets": [],
"tags": [
{
"key": "_measurement",
"values": [],
"aggregateFunctionType": "filter"
}
],
"functions": [
{
"name": "mean"
}
],
"aggregateWindow": {
"period": "auto",
"fillValues": false
}
}
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "Temperature",
"prefix": "",
"suffix": "°C",
"base": "10",
"scale": "linear"
}
},
"type": "xy",
"staticLegend": {
"colorizeRows": true,
"opacity": 1,
"orientationThreshold": 100000000,
"widthRatio": 1
},
"geom": "line",
"colors": [
{
"id": "ec36837f-84bd-43b6-be10-970343f0bbca",
"type": "scale",
"hex": "#8F8AF4",
"name": "Do Androids Dream of Electric Sheep?",
"value": 0
},
{
"id": "ad64f52f-fadd-48ca-9365-98e8a5e3ce39",
"type": "scale",
"hex": "#A51414",
"name": "Do Androids Dream of Electric Sheep?",
"value": 0
},
{
"id": "6a1fc916-9b65-481f-b0df-7662b75468d8",
"type": "scale",
"hex": "#F4CF31",
"name": "Do Androids Dream of Electric Sheep?",
"value": 0
}
],
"note": "",
"showNoteWhenEmpty": false,
"xColumn": "_time",
"generateXAxisTicks": [],
"xTotalTicks": 0,
"xTickStart": 0,
"xTickStep": 0,
"yColumn": "_value",
"generateYAxisTicks": [],
"yTotalTicks": 0,
"yTickStart": 0,
"yTickStep": 0,
"shadeBelow": false,
"position": "overlaid",
"timeFormat": "",
"hoverDimension": "auto",
"legendColorizeRows": true,
"legendHide": false,
"legendOpacity": 1,
"legendOrientationThreshold": 100000000
}
}
},
{
"type": "view",
"id": "08fc4e064fbe1000",
"attributes": {
"name": "Humidity Graph",
"properties": {
"shape": "chronograf-v2",
"queries": [
{
"text": "from(bucket: \"dht\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"humidity\")\n |> filter(fn: (r) => r[\"_field\"] == \"humidity\")\n |> filter(fn: (r) => r[\"host\"] == \"pi\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")",
"editMode": "advanced",
"name": "",
"builderConfig": {
"buckets": [],
"tags": [
{
"key": "_measurement",
"values": [],
"aggregateFunctionType": "filter"
}
],
"functions": [
{
"name": "mean"
}
],
"aggregateWindow": {
"period": "auto",
"fillValues": false
}
}
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "Humidity",
"prefix": "",
"suffix": "%",
"base": "10",
"scale": "linear"
}
},
"type": "xy",
"staticLegend": {
"colorizeRows": true,
"opacity": 1,
"orientationThreshold": 100000000,
"widthRatio": 1
},
"geom": "line",
"colors": [
{
"id": "c98cc8b9-7e68-4355-8087-2e26c682386d",
"type": "scale",
"hex": "#DA6FF1",
"name": "Ectoplasm",
"value": 0
},
{
"id": "c817625b-9b18-4202-806f-bcec388a7333",
"type": "scale",
"hex": "#00717A",
"name": "Ectoplasm",
"value": 0
},
{
"id": "0806b63a-2228-49d8-8a31-dfd8cbcf9912",
"type": "scale",
"hex": "#ACFF76",
"name": "Ectoplasm",
"value": 0
}
],
"note": "",
"showNoteWhenEmpty": false,
"xColumn": "_time",
"generateXAxisTicks": [],
"xTotalTicks": 0,
"xTickStart": 0,
"xTickStep": 0,
"yColumn": "_value",
"generateYAxisTicks": [],
"yTotalTicks": 0,
"yTickStart": 0,
"yTickStep": 0,
"shadeBelow": false,
"position": "overlaid",
"timeFormat": "",
"hoverDimension": "auto",
"legendColorizeRows": true,
"legendHide": false,
"legendOpacity": 1,
"legendOrientationThreshold": 100000000
}
}
}
]
},
"labels": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment