Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snowdd1/comet-knx-backend
Simple KNX backend to facilitate communication between [CometVisu](https://github.com/CometVisu/CometVisu) and [KNXD](https://github.com/knxd/knxd)
https://github.com/snowdd1/comet-knx-backend
knx knxd nodejs nodejs-v10
Last synced: about 2 months ago
JSON representation
Simple KNX backend to facilitate communication between [CometVisu](https://github.com/CometVisu/CometVisu) and [KNXD](https://github.com/knxd/knxd)
- Host: GitHub
- URL: https://github.com/snowdd1/comet-knx-backend
- Owner: snowdd1
- License: gpl-3.0
- Created: 2018-11-16T11:06:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-25T20:53:27.000Z (about 6 years ago)
- Last Synced: 2024-11-29T19:55:05.454Z (about 2 months ago)
- Topics: knx, knxd, nodejs, nodejs-v10
- Language: JavaScript
- Homepage:
- Size: 167 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# comet-knx-backend
Beta of an interface between [knxd](https://github.com/knxd/knxd) (the knx daemon) and [CometVisu](https://github.com/CometVisu/CometVisu) using Server Sent Events (SSE aka EventStream).
# Requires
ES6 e.g. NodeJS 10 LTS, get it here: [nodejs.org](https://nodejs.org)## Install
* clone the repository
* rename file `config-sample.json` to `config.json`## Configuration
* config.json
* the *IP address or name* of the knxd server: Locate `knxd` object, `host: 'my-knxd-server.local'` change to your setup
* the default port of 32150: See `http` object, locate `port:32150`
* if required adjust the `keepaliveSecs` setting - if there was no telegram to be sent upstream to the CV this triggers an empty message to force the reverse proxy to keep the session alive
* the debug output in stdout: set the level in `loglevel`: 4- Debug, 3-Info, 2-Warning, 1-Error only; defaults to Warning=2* configure your webserver to proxy the following paths:
* /rest/cv/read --> localhost:32150/read
* /rest/cv/write --> localhost:32150/write
* /rest/cv/login --> localhost:32150/login
* configure your webserver to point `/rest/cv/login` in the apache settings.
See the sample in [010-apache2sample.conf](https://github.com/snowdd1/comet-knx-backend/blob/master/010-apache2sample.conf)## Run
* start the server with `node knxcometbackend.js`
* optional parameters: `--config | -c `: use other config-file than local config.json# not supported yet:
* rrdfetch