NodeJS Module: node-domoticz-mqtt
Posted: Monday 25 January 2016 0:27
I created a NodeJS Module for interfacing with Domoticz directly via MQTT.. It has some sanity checks to keep Domoticz happy and all the basic functions you need to start interfacing your own hardware with Domoticz quickly and easily.
Here is the npm project: https://www.npmjs.com/package/node-domoticz-mqtt
Here is the code: https://github.com/nayrnet/node-domoticz-mqtt
What is the MQTT Interface? Its identical to the JSON HTTP GET interface with these important differences:
Requires:
Support, Feedback, Contributions, etc should all be done in this thread or my github repo.. thanks and enjoy!
Ive got several NodeJS Applications that will be using this module, and more planned.. I should be able to finally add BeagleBone Black support to Domoticz soon!
Here is the npm project: https://www.npmjs.com/package/node-domoticz-mqtt
Here is the code: https://github.com/nayrnet/node-domoticz-mqtt
What is the MQTT Interface? Its identical to the JSON HTTP GET interface with these important differences:
- Persistent Connection - Quick Response without setting up full blown HTTP connections for every update. Great if your changing lots of devices.
- Bi-Directional - Get instant status updates without polling for changes, no need to call your app via HTTP/Script
- MQTT Broker provides simple security for devices, with crypto support. great if your locking down the Web interface for security reasons.
- Your NodeJS app will have nearly all the benefits of native hardware
- Rasbery Pi GPIO - https://www.npmjs.com/package/raspi-io
- BeagleBone Black GPIO - https://www.npmjs.com/package/beaglebone-io
- PowerMate USB Knob - https://www.npmjs.com/package/node-powermate
Requires:
- MQTT Broker (apt-get install mosquitto)
- NodeJS and NPM (apt-get install nodejs npm)
- Domoticz w/MQTT Hardware Interface
Code: Select all
npm install node-domoticz-mqtt
Ive got several NodeJS Applications that will be using this module, and more planned.. I should be able to finally add BeagleBone Black support to Domoticz soon!