Added initial zigbee network map

This commit is contained in:
Ziver Koc 2024-03-15 00:03:39 +01:00
parent 9fe699b40d
commit 7935dd5c93
8 changed files with 12315 additions and 1 deletions

View file

@ -1,5 +1,5 @@
dependencies {
def ZIGBEE_LIB_VERSION = "1.4.11"
def ZIGBEE_LIB_VERSION = "1.4.13"
implementation project(':hal-core')

View file

@ -28,6 +28,31 @@
</div>
</div>
<h2>Network Graph</h2>
<div id="network_graph"></div>
<script>
var nodes = [
{{#nodes}}{"id": "{{.getIeeeAddress()}}", "name": "{{.getIeeeAddress()}}"},
{{/nodes}}
]
var links = [
{{#nodes}}{{#.getNeighbors()}}{"source": "", "target": "{{.getNetworkAddress()}}"},
{{/.getNeighbors()}}{{/nodes}}
]
const Graph = ForceGraph()
(document.getElementById('network_graph'))
.linkDirectionalParticles(2)
.graphData({
nodes: nodes,
links: links
}
);
</script>
<h2>Connected Nodes</h2>
{{#nodes}}