azuwis / zigbee2mqtt-networkmap

Home Assistant Custom Card to show Zigbee2mqtt network map
261 stars 18 forks source link

Feature request: coordinator in the middle #23

Closed SaturnusDJ closed 2 years ago

SaturnusDJ commented 4 years ago

Similar to https://github.com/azuwis/zigbee2mqtt-networkmap/issues/13, possibly.

First of all, nice work. Great integration with HA, a lot easier than external methods.

When the map is displayed, the coordinator probably is not in the middle. It is a bit challenging to see quickly how the network is build.

When placing the coordinator in the middle, surrounded by routers, this becomes a lot easier.

Example: x Removed some text due to privacy.

Here you see the coordinator instantly, then you see the 'trees' expanding away from it.

azuwis commented 4 years ago

The high level library used is https://github.com/emiliorizzo/vue-d3-network, which does not export API to do force a node in the middle.

The low level library used is https://d3js.org/, which is possible to do this https://stackoverflow.com/questions/21843206/d3-force-layout-fix-root-node-at-the-center. But I don't see an easy way to integrate it into vue-d3-network.

SaturnusDJ commented 4 years ago

Thank you for the explanation. What would be a follow up step to try to get this sorted out?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.