donskytech / 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
Apache License 2.0
40 stars 30 forks source link

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
Featured Image - Custom MQTT Dashboard

Write up

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