added control page
This commit is contained in:
@@ -687,7 +687,7 @@
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": { "h": 8, "w": 6, "x": 12, "y": 38 },
|
||||
"gridPos": { "h": 8, "w": 4, "x": 12, "y": 38 },
|
||||
"id": 32,
|
||||
"options": {
|
||||
"colorMode": "background",
|
||||
@@ -732,7 +732,7 @@
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": { "h": 8, "w": 6, "x": 18, "y": 38 },
|
||||
"gridPos": { "h": 8, "w": 4, "x": 16, "y": 38 },
|
||||
"id": 33,
|
||||
"options": {
|
||||
"colorMode": "background",
|
||||
@@ -758,6 +758,66 @@
|
||||
"title": "Failed Speedtests",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": { "type": "frser-sqlite-datasource", "uid": "speed-tests-sqlite" },
|
||||
"description": "Whether scheduled speedtests are currently enabled. Toggle this on the control page served by the control container.",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": { "mode": "thresholds" },
|
||||
"mappings": [
|
||||
{
|
||||
"type": "value",
|
||||
"options": {
|
||||
"0": { "color": "orange", "index": 1, "text": "OFF" },
|
||||
"1": { "color": "green", "index": 0, "text": "ON" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "special",
|
||||
"options": {
|
||||
"match": "null",
|
||||
"result": { "color": "text", "index": 2, "text": "N/A" }
|
||||
}
|
||||
}
|
||||
],
|
||||
"noValue": "N/A",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{ "color": "orange", "value": 0 },
|
||||
{ "color": "green", "value": 1 }
|
||||
]
|
||||
},
|
||||
"unit": "none"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": { "h": 8, "w": 4, "x": 20, "y": 38 },
|
||||
"id": 34,
|
||||
"options": {
|
||||
"colorMode": "background",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"percentChangeColorMode": "standard",
|
||||
"reduceOptions": { "calcs": ["last"], "fields": "", "values": false },
|
||||
"showPercentChange": false,
|
||||
"textMode": "value",
|
||||
"wideLayout": true
|
||||
},
|
||||
"pluginVersion": "12.3.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": { "type": "frser-sqlite-datasource", "uid": "speed-tests-sqlite" },
|
||||
"queryText": "SELECT CASE value WHEN '1' THEN 1 ELSE 0 END AS value FROM settings WHERE key = 'speedtest_enabled'",
|
||||
"queryType": "table",
|
||||
"rawQueryText": "SELECT CASE value WHEN '1' THEN 1 ELSE 0 END AS value FROM settings WHERE key = 'speedtest_enabled'",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Speedtests",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 46 },
|
||||
|
||||
Reference in New Issue
Block a user