Code Monkey home page Code Monkey logo

knx-to-amqp's Introduction

knx-to-amqp

With this app you can transfer knx telegrams to RabbitMQ

The app receives a telegram from a KNX gateway, converts it to JSON and delivers it to an exchange. The routing key is the destination address of the telegram.

KNX Telegram structure

The converted KNX telegram has the following fields:

field description
source The telegram source device address
destination The destination 3-digit group address
date The date, when the message was received in the format DateTimeFormatter.ISO_OFFSET_DATE_TIME
data The telegrams data, formatted in base64

An example looks like this:

{
   "source":"1.2.3",
   "destination":"4/5/6",
   "date":"2022-08-07T21:40:00.253458649+02:00",
   "data":"Da0="
}

RabbitMQ configuration

Make sure you create the exchange before you start the app. And don't forget to configure your queues and bindings.

Build

Docker image

docker buildx build --tag mhert/knx-to-amqp:latest .

Usage

Docker

docker run mhert/knx-to-amqp:latest

Configuration

You can control the app via environment variables or arguments.

Required config

env var argument used for
KNX_GATEWAY_ADDRESS --knxGatewayAddress Connection to KNX
AMQP_ADDRESS --amqpAddress Connection to RabbitMQ
TARGET_EXCHANGE_NAME --targetExchangeName Target exchange for converted knx telegrams

Optional config

env var argument used for
KNX_GATEWAY_PORT --knxGatewayPort Connection to KNX
AMQP_PORT --amqpPort Connection to RabbitMQ

knx-to-amqp's People

Contributors

mhert avatar

Stargazers

 avatar

Watchers

 avatar

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.