Git Product home page Git Product logo

ohand / openhabconfigdocgen Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 461 KB

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)

License: GNU General Public License v3.0

JavaScript 49.79% HTML 39.48% Nearley 10.73%

openhabconfigdocgen's Introduction

openhabConfigDocGen

Description

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)

Actual features

  • 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

ToDo's

  • highlighting for ESH Code
  • searching the files for keywords
  • cluster the hierarchy of rules, groups, items
  • ...

Screenshots

home screen

base screen after generating the documentation

home screen

example for items in registry

the registry shows all groups and items as single objects, tooltip for further attributes

example for items

example for items as file view

in the browser section the file contents can be reviewed

example for items

Usage

to execute the generator start with the following command:

node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>

Installation

Prerequisites

This tool require node.js. To use it, install NPM JS

Download & Install

  1. clone/ fetch the master branch

  2. navigate to downloded folder

  3. in commandline

     npm install ..\<yourdownloadfolder>\
    

    or

     npm install openhab_config_doc_gen
    

Debugging

execute with debugging on

Linux - OSX

DEBUG=* node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>

Windows CMD

set DEBUG=* & node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>

Windows PowerShell

$env:DEBUG='*';node ohConfigDocGen.cli.js <srcfolder_of_openhab_config> <targetfolder_for_output>

Testing

t.b.d.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.