A tool to generate a good looking browserable overview for your own openhab configuration. In the first step only for the data in config files. Planned for future, to get all information of the database of openhab too. (e.g. thing configuration)
- basic html/ css/ js - template integrated for customization
- grab the given folder recursivly for known openhab config file formats
- show the folder/ file structure in the navigation tree with expand/ collpase
- show the content of each file on site with code highlighting
highlighting for ESH Code- searching the files for keywords
- cluster the hierarchy of rules, groups, items
- ...
base screen after generating the documentation
the registry shows all groups and items as single objects, tooltip for further attributes
in the browser section the file contents can be reviewed
to execute the generator start with the following command:
node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>
This tool require node.js. To use it, install NPM JS
-
clone/ fetch the master branch
-
navigate to downloded folder
-
in commandline
npm install ..\<yourdownloadfolder>\
or
npm install openhab_config_doc_gen
DEBUG=* node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>
set DEBUG=* & node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>
$env:DEBUG='*';node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>
t.b.d.