29 lines
980 B
Markdown
29 lines
980 B
Markdown
# mqtt-custom-dashboard-node-js
|
|
A custom MQTT dashboard built using Node.js that can be used to display sensor readings from a BME280 sensor
|
|

|
|
|
|
## Write up
|
|
[How to build your own custom MQTT dashboard?](https://www.donskytech.com/how-to-build-your-own-custom-mqtt-dashboard/)
|
|
|
|
|
|
## How to run
|
|
You should have Node.js installed in your workstation
|
|
|
|
Clone the repository
|
|
``` git clone https://github.com/donskytech/mqtt-custom-dashboard-node-js.git ```
|
|
``` cd mqtt-custom-dashboard-node-js ```
|
|
|
|
Rename the .env.local to .env
|
|
``` mv .env.local .env ```
|
|
|
|
Edit the .env and set the MQTT broker URL that you are using
|
|
```
|
|
NAME=DONSKYTECH
|
|
DASHBOARD_TITLE=MQTT DASHBOARD
|
|
MQTT_BROKER=ws://127.0.01:9001/mqtt
|
|
MQTT_TOPIC=sensorReadings
|
|
```
|
|
|
|
Install the dependencies and run the project
|
|
``` npm install && npm run dev ```
|