Merge pull request #43 from SilverFire/drop-natel-discrete-panel

This commit is contained in:
Cody Lee 2025-09-05 05:58:11 -05:00 committed by GitHub
commit cb5d900cb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 94 additions and 222 deletions

View File

@ -34,12 +34,6 @@
"name": "InfluxDB", "name": "InfluxDB",
"version": "1.0.0" "version": "1.0.0"
}, },
{
"type": "panel",
"id": "natel-discrete-panel",
"name": "Discrete",
"version": "0.0.9"
},
{ {
"type": "panel", "type": "panel",
"id": "table-old", "id": "table-old",
@ -1619,64 +1613,40 @@
} }
}, },
{ {
"backgroundColor": "rgba(128,128,128,0.1)", "id": 17,
"colorMaps": [ "type": "state-timeline",
{ "title": "Wifi Client / AP",
"color": "#70dbed",
"text": "Upper N"
},
{
"color": "#806eb7",
"text": "Lower G"
},
{
"color": "#806eb7",
"text": "Lower N"
},
{
"color": "#64b0c8",
"text": "Upper G"
}
],
"crosshairColor": "#8F070C",
"datasource": "${DS_UNIFI_POLLER}",
"description": "Shows which wireless radio a client is connected to. Setting AP does not change this.", "description": "Shows which wireless radio a client is connected to. Setting AP does not change this.",
"display": "timeline", "gridPos": {
"expandFromQueryS": 0, "x": 0,
"extendLastValue": true, "y": 63,
"h": 16,
"w": 12
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": {} "custom": {
"lineWidth": 0,
"fillOpacity": 70,
"showPoints": "never"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"color": {
"mode": "palette-classic"
}
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "pluginVersion": "11.6.0",
"h": 16,
"w": 12,
"x": 0,
"y": 63
},
"highlightOnMouseover": true,
"id": 17,
"legendSortBy": "-ms",
"lineColor": "rgba(0,0,0,0.1)",
"links": [],
"metricNameColor": "#000000",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"rowHeight": 28,
"showDistinctCount": false,
"showLegend": true,
"showLegendNames": false,
"showLegendPercent": true,
"showLegendValues": true,
"showTimeAxis": true,
"showTransitionCount": true,
"targets": [ "targets": [
{ {
"alias": "[[Identifier]]", "alias": "[[Identifier]]",
@ -1727,108 +1697,65 @@
"operator": "=~", "operator": "=~",
"value": "/^${AP:regex}$/" "value": "/^${AP:regex}$/"
} }
] ],
"datasource": "${DS_UNIFI_POLLER}"
} }
], ],
"textSize": 16, "datasource": "${DS_UNIFI_POLLER}",
"textSizeTime": 14, "options": {
"timeOptions": [ "mergeValues": true,
{ "showValue": "auto",
"name": "Years", "alignValue": "center",
"value": "years" "rowHeight": 0.9,
"legend": {
"showLegend": true,
"displayMode": "list"
}, },
{ "tooltip": {
"name": "Months", "mode": "single",
"value": "months" "sort": "none"
}, },
{ "timeline": {
"name": "Weeks", "showValue": "auto"
"value": "weeks"
},
{
"name": "Days",
"value": "days"
},
{
"name": "Hours",
"value": "hours"
},
{
"name": "Minutes",
"value": "minutes"
},
{
"name": "Seconds",
"value": "seconds"
},
{
"name": "Milliseconds",
"value": "milliseconds"
} }
], }
"timePrecision": {
"name": "Minutes",
"value": "minutes"
},
"timeTextColor": "#d8d9da",
"title": "Wifi Client / AP",
"type": "natel-discrete-panel",
"units": "short",
"useTimePrecision": false,
"valueMaps": [
{
"op": "=",
"text": "Upper G",
"value": "80:2a:a8:12:ae:0c"
},
{
"op": "=",
"text": "Lower G",
"value": "80:2a:a8:11:ae:87"
},
{
"op": "=",
"text": "Lower N",
"value": "80:2a:a8:12:ae:87"
},
{
"op": "=",
"text": "Upper N",
"value": "80:2a:a8:11:ae:0c"
},
{
"op": "=",
"text": "NAME",
"value": "MAC"
},
{
"op": "=",
"text": "YOUR OWN!",
"value": "ADD"
}
],
"valueTextColor": "#000000",
"writeAllValues": false,
"writeLastValue": false,
"writeMetricNames": true
}, },
{ {
"backgroundColor": "rgba(128,128,128,0.1)", "backgroundColor": "rgba(128,128,128,0.1)",
"colorMaps": [
{
"color": "#CCC",
"text": "N/A"
}
],
"crosshairColor": "#8F070C",
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"description": "Shows IPs assigned to non-static clients. Clients with many changes may indicate misconfiguration or two clients sharing the same name.", "description": "Shows IPs assigned to non-static clients. Clients with many changes may indicate misconfiguration or two clients sharing the same name.",
"display": "timeline",
"expandFromQueryS": 0,
"extendLastValue": true,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": {} "custom": {
"lineWidth": 0,
"fillOpacity": 70,
"showPoints": "never",
"fontSize": 16
},
"mappings": [
{
"type": "value",
"options": {
"null": {
"text": "N/A",
"color": "#CCC"
}
}
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"color": {
"mode": "palette-classic"
},
"displayName": "${__field.labels.name} (${__field.labels.mac})"
}, },
"overrides": [] "overrides": []
}, },
@ -1838,27 +1765,8 @@
"x": 12, "x": 12,
"y": 63 "y": 63
}, },
"highlightOnMouseover": true,
"id": 18, "id": 18,
"legendSortBy": "-ms",
"lineColor": "rgba(0,0,0,0.1)",
"links": [], "links": [],
"metricNameColor": "#000000",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"rowHeight": 28,
"showDistinctCount": false,
"showLegend": false,
"showLegendNames": false,
"showLegendPercent": true,
"showLegendValues": true,
"showTimeAxis": true,
"showTransitionCount": false,
"targets": [ "targets": [
{ {
"alias": "[[Identifier]]", "alias": "[[Identifier]]",
@ -1969,62 +1877,26 @@
] ]
} }
], ],
"textSize": 16,
"textSizeTime": 14,
"timeOptions": [
{
"name": "Years",
"value": "years"
},
{
"name": "Months",
"value": "months"
},
{
"name": "Weeks",
"value": "weeks"
},
{
"name": "Days",
"value": "days"
},
{
"name": "Hours",
"value": "hours"
},
{
"name": "Minutes",
"value": "minutes"
},
{
"name": "Seconds",
"value": "seconds"
},
{
"name": "Milliseconds",
"value": "milliseconds"
}
],
"timePrecision": {
"name": "Minutes",
"value": "minutes"
},
"timeTextColor": "#d8d9da",
"title": "Client / IP", "title": "Client / IP",
"type": "natel-discrete-panel", "type": "state-timeline",
"units": "short", "options": {
"useTimePrecision": false, "mergeValues": true,
"valueMaps": [ "showValue": "auto",
{ "alignValue": "center",
"op": "=", "rowHeight": 0.9,
"text": "N/A", "legend": {
"value": "null" "showLegend": false,
} "displayMode": "list"
], },
"valueTextColor": "#000000", "tooltip": {
"writeAllValues": false, "mode": "single",
"writeLastValue": false, "sort": "none"
"writeMetricNames": true },
"timeline": {
"showValue": "auto"
},
"extendLastValue": true
}
}, },
{ {
"aliasColors": {}, "aliasColors": {},