Skip to content

Generate a graph showing node-to-node reachability from zwavejs2mqtt nodes dump

License

Notifications You must be signed in to change notification settings

kdknigga/zwavejs_neighbor_graph

Repository files navigation

zwavejs neighbor graph

Setup

$ git clone https://github.com/kdknigga/zwavejs_neighbor_graph.git
$ cd zwavejs_neighbor_graph
$ python3 -m virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Usage

$ python ./zwavejs_neighbor_graph.py --help
usage: zwavejs_neighbor_graph.py [-h] -f INPUT_FILE [-o OUTPUT_FILE] [-c COLOR_MAP]

optional arguments:
  -h, --help            show this help message and exit
  -f INPUT_FILE, --input-file INPUT_FILE
                        zwavejs2mqtt nodes dump json file for input
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        the name of the png file to output (default: neighbor_graph.png)
  -c COLOR_MAP, --color-map COLOR_MAP
                        The matplotlib colormap to use (default: RdBu)

$ python ./zwavejs_neighbor_graph.py --input-file nodes_dump.json

$ ls -l neighbor_graph.png 
-rw-rw-r-- 1 kris kris 41730 Oct 28 10:42 neighbor_graph.png

Result

example neighbor graph

About

Generate a graph showing node-to-node reachability from zwavejs2mqtt nodes dump

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages