Added initial zigbee network map
This commit is contained in:
parent
9fe699b40d
commit
7935dd5c93
8 changed files with 12315 additions and 1 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue