Skip to content
/ knx Public

KNXnet/IP protocol implementation for Node(>=6.x)

License

Notifications You must be signed in to change notification settings

ekarak/knx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e7ff77 · Sep 10, 2024
Apr 2, 2024
Nov 19, 2017
Sep 8, 2024
Sep 8, 2024
Jul 7, 2019
Oct 2, 2016
Mar 28, 2024
Sep 3, 2017
Nov 17, 2016
Mar 6, 2022
Jul 8, 2019
Oct 15, 2016
Nov 19, 2017
Jun 24, 2017
Sep 8, 2024
Mar 28, 2024
Nov 6, 2020
Apr 2, 2024
Mar 30, 2024
Nov 19, 2017

Repository files navigation

KNXnet/IP for Node.JS

CI

New: Join the Gitter.im chatroom!

A feature-complete KNXnet/IP protocol stack in pure Javascript, capable of talking multicast (routing) and unicast (tunneling). Adding KNX to your Node.JS applications is now finally easy as pie.

  • Wide DPT (datapoint type) support (DPT1 - DPT20 supported)
  • Extensible Device support (binary lights, dimmers, ...)
  • You won't need to install a specialised eibd daemon with its arcane dependencies and most importantly,
  • If you got an IP router and a network that supports IP multicast, you can start talking to KNX within seconds!

Installation

Make sure your machine has Node.JS (version 4.x or greater) and do:

npm install knx

Usage

At last, here's a reliable KNX connection that simply works without any configs. To get a basic KNX monitor, you just need to run this in Node:

var knx = require('knx');
var connection = knx.Connection({
 handlers: {
  connected: function() {
    console.log('Connected!');
  },
  event: function (evt, src, dest, value) {
  console.log("%s **** KNX EVENT: %j, src: %j, dest: %j, value: %j",
    new Date().toISOString().replace(/T/, ' ').replace(/\..+/, ''),
    evt, src, dest, value);
  }
 }
});

Ahhh, KNX telegrams, what a joy:

> 2016-09-24 05:34:07 **** KNX EVENT: "GroupValue_Write", src: "1.1.100", dest: "5/0/8", value: 1
2016-09-24 05:34:09 **** KNX EVENT: "GroupValue_Write", src: "1.1.100", dest: "5/1/15", value: 0
2016-09-24 05:34:09 **** KNX EVENT: "GroupValue_Write", src: "1.1.100", dest: "5/0/8", value: 0
2016-09-24 05:34:17 **** KNX EVENT: "GroupValue_Write", src: "1.1.100", dest: "5/1/15", value: 0
2016-09-24 05:34:17 **** KNX EVENT: "GroupValue_Write", src: "1.1.100", dest: "5/0/8", value: 1

Development documentation

About

KNXnet/IP protocol implementation for Node(>=6.x)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages