Some health dashboard.. or just something so I can play around..
- Docker and docker-compose
- Node.js
First you need to install dependencies:
$ npm ci
$ docker-compose up
Copy the MQTT config example and adjust it to your use case. If you don't want MQTT functionality, do not copy the config.
$ cp server/config/mqtt/mqtt-config-example.js server/config/mqtt/mqtt-config.js
Then you can start the server:
$ npm run start:server
$ cd server
$ npm run seed
$ npm run start:web
Topic Key is the mqtt topic name.
Topic Properties:
- action: action to call on message (see below for values)
- useValue: (optional) boolean value to indicate whether to use the message's value for the action
Possible values for action
:
- ADD_CIGARETTE
- ADD_STAIRS