Service for read MQTT signals with websockets.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
nodeJS
- Install npm project dependecies
npm install
- Set environments variables
BROKER_URL // the url of the mqtt broker
TOPIC // the topic in which you listen
PORT // the websocket port
- Compile Typescript
npm run tsc
- Run micro-service
node build/server.js
This project is licensed under the GNU License - see the LICENSE.md file for details