Add 'home/temperatures.json'

Initial commit

Signed-off-by: laur <laur.ivan@gmail.com>
This commit is contained in:
laur 2022-05-21 21:05:46 +00:00
parent 1e26cfa2b9
commit ee2e34a50d

389
home/temperatures.json Normal file
View File

@ -0,0 +1,389 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 29,
"iteration": 1653167039481,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"format": "time_series",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n m.timestamp/1000 as \"time_sec\",\n d.parent AS metric,\n m.value\nFROM _project_61f3bf162ab8f25ca473_collection_61f46c7fc8869fa2c6a1 as m\ninner join _project_61f3bf162ab8f25ca473_collection_61f3bf57e1eaefdae320 as d\non m.address_id = d._uid\nwhere m.timestamp >= ${__from} AND m.timestamp <= ${__to} and d.parent in ($room)\nORDER BY m.timestamp\n",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": [
{
"colorMode": "custom",
"fill": false,
"fillColor": "rgba(51, 162, 229, 0.2)",
"line": true,
"lineColor": "#C4162A",
"op": "gt",
"value": 22,
"yaxis": "left"
},
{
"colorMode": "custom",
"fill": true,
"fillColor": "rgba(196, 22, 42, 0.5)",
"line": true,
"lineColor": "#C4162A",
"op": "lt",
"value": 18,
"yaxis": "left"
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Temperature",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "celsius",
"label": "Temp",
"logBase": 1,
"max": "30",
"min": "15",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 24,
"x": 0,
"y": 7
},
"hiddenSeries": false,
"id": 3,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"format": "time_series",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n m.timestamp/1000 as \"time_sec\",\n d.parent AS metric,\n m.value*100/255\nFROM _project_61f3bf162ab8f25ca473_collection_61f46d535343e1aa557f as m\ninner join _project_61f3bf162ab8f25ca473_collection_61f3bf57e1eaefdae320 as d\non m.address_id = d._uid\nwhere m.timestamp >= ${__from} AND m.timestamp <= ${__to} and d.parent in ($room)\nORDER BY m.timestamp\n",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Valves opened",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "percent",
"label": "Opened",
"logBase": 1,
"max": "100",
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"schemaVersion": 25,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"selected": true,
"tags": [],
"text": "Wellness",
"value": [
"Wellness"
]
},
"datasource": "MySQL",
"definition": "SELECT\n d.parent\nFROM _project_61f3bf162ab8f25ca473_collection_61f46c7fc8869fa2c6a1 as m\ninner join _project_61f3bf162ab8f25ca473_collection_61f3bf57e1eaefdae320 as d \non m.address_id = d._uid\nwhere m.timestamp >= 1643000000000",
"hide": 0,
"includeAll": true,
"label": "Rooms",
"multi": true,
"name": "room",
"options": [
{
"selected": false,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "Wellness",
"value": "Wellness"
},
{
"selected": false,
"text": "Media",
"value": "Media"
},
{
"selected": false,
"text": "Bathroom",
"value": "Bathroom"
},
{
"selected": false,
"text": "Dining",
"value": "Dining"
},
{
"selected": false,
"text": "Guest",
"value": "Guest"
},
{
"selected": true,
"text": "Master bed",
"value": "Master bed"
},
{
"selected": false,
"text": "Study",
"value": "Study"
},
{
"selected": false,
"text": "Living",
"value": "Living"
},
{
"selected": false,
"text": "Child",
"value": "Child"
},
{
"selected": false,
"text": "Shower",
"value": "Shower"
}
],
"query": "SELECT\n d.parent\nFROM _project_61f3bf162ab8f25ca473_collection_61f46c7fc8869fa2c6a1 as m\ninner join _project_61f3bf162ab8f25ca473_collection_61f3bf57e1eaefdae320 as d \non m.address_id = d._uid\nwhere m.timestamp >= 1643000000000",
"refresh": 0,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Temperature",
"uid": "b3YeOEu7z",
"version": 7
}