deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

Implements Networkmap endpoint to expose networkmap datas as JSON

Open bemardev opened this issue 3 years ago • 10 comments

Add endpoint to expose networkmap datas.

Main js network graph library seems to work based on nodes and links(or edges), so I did a endpoint exposing those datas.

Here is a screenshot of what the map could look like when being integrated NetworkMap (N.B.: lqi are shown on links when zooming)

You can find a demo JSON generated by the api here and a jsfiddle using those datas here

bemardev avatar Mar 18 '21 20:03 bemardev

this looks actually great !

I have to see how to implement this

superjaegermaster avatar Apr 04 '21 07:04 superjaegermaster

hello,

It may sound noob, but can someone provide a link or explain how to implement this ?

thank you in advance

superjaegermaster avatar Jun 24 '21 14:06 superjaegermaster

You have the procedure here https://github.com/dresden-elektronik/deconz-rest-plugin#install-deconz-development-package-optional-linux-only

sudo apt install deconz-dev
git clone --branch networkmap https://github.com/bemardev/deconz-rest-plugin.git
cd deconz-rest-plugin
qmake && make -j2
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins

But this code is old, not sure it still working, and IDK why there is no decision yet about it.

Smanar avatar Jun 24 '21 14:06 Smanar

thanks

yes it would be nice of team to decide to evaluate and ideally implement this , hopefully.

It is avialable on windows app but not on others, a shame :(

superjaegermaster avatar Jun 25 '21 13:06 superjaegermaster

It is avialable on windows app but not on others

The mesh is visible on all OS, just need a desktop, or if you realy like headache and use headless https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Access-deCONZ-GUI-in-headless-setups

Why windows need to be desktop and debian headless, we are in 2021, hardwares are strong enought.

Smanar avatar Jun 25 '21 17:06 Smanar

A good format to generate would be NetJSON, is open and extensible enough for this project. Anyone could use or recycle tools to consume its data.

It could generate not only the neighbours and the information to them (LQI, etc), but also routing information (static routes in particular). Supporting such and API would not only be good for visualization like the one proposed here or in #4136 but also for logging or debugging.

eSoares avatar Mar 09 '22 10:03 eSoares

This PR needs some attention...I need the LQI-Information for my nodes from the REST-API and this is exactly what I was looking for... Please review and merge, if possible.

Jan1503 avatar Mar 20 '22 16:03 Jan1503

Are there any plans to integrate such a feature?

BasGo avatar Jan 30 '23 18:01 BasGo

Can this be merged anytime soon?

cskowronnek avatar Feb 15 '24 12:02 cskowronnek

@manup

Mimiix avatar Feb 15 '24 16:02 Mimiix