Public | Automated Build

Last pushed: a year ago
Short Description
MQTT connector for converting sensor data to a binary payload and forwarding it to ConCaVa.
Full Description

MQTT Connector

MQTT connector for converting sensor data into a binary payload and forwarding it to ConCaVa.

Installation

The MQTT connector can be run as a NodeJS program or in a Docker container.

Make sure ConCaVa is setup as well.
See .env.example for the default configuration.

NodeJS

git clone https://github.com/kukua/concava-connector-mqtt.git
cd concava-connector-mqtt
cp .env.example .env
chmod 600 .env
# > Edit .env

npm install
npm run compile
source .env
npm start

Tested with NodeJS v5.1

Docker

First, install Docker. Then run:

curl https://raw.githubusercontent.com/kukua/concava-connector-mqtt/master/.env.example > .env
chmod 600 .env
# > Edit .env

docker run -d -p 3333:3333 -p 5555:5555 \
    -v ./mqtt.log:/tmp/output.log
    --env-file .env --name mqtt_connector \
    kukuadev/concava-connector-mqtt

Tested with Docker v1.9.

Test

npm run client '<container IP or localhost>:3000' '<auth token>' '<device ID>' '<payload hex>'

Contribute

Your help and feedback are highly appreciated!

License

This software is licensed under the MIT license.

© 2016 Kukua BV

Docker Pull Command
Owner
kukuadev
Source Repository

Comments (0)