Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyother/nodejs-mqtt
Node.js and MQTT broker communication project.
https://github.com/pyother/nodejs-mqtt
bootstrap5 expressjs mqtt nodejs
Last synced: 8 days ago
JSON representation
Node.js and MQTT broker communication project.
- Host: GitHub
- URL: https://github.com/pyother/nodejs-mqtt
- Owner: Pyother
- Created: 2023-06-28T21:39:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-31T20:53:01.000Z (over 1 year ago)
- Last Synced: 2025-01-21T12:15:03.387Z (8 days ago)
- Topics: bootstrap5, expressjs, mqtt, nodejs
- Language: EJS
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeJS and MQTT broker communication
This is a Node.js project that creates a web-based dashboard for the Area Explorer system. The dashboard displays measurements received from an MQTT broker and allows users to visualize and analyze the data.
## Getting started
To run application clone this repository, install neccessary dependecies in the package.json directory and run application:
```node
npm install
node app
```
Application will available at: `localhost:3000`.Then run the MQTT broker (mosquitto) on your host by typing basic publish command.
For UNIX platforms:
```sh
mosquitto_pub -t 'measurement' -m '0 0 0 0 0 0 0 0 0 0 0'
```For Windows platforms:
```powershell
.\mosquitto_pub -t 'measurement' -m '0 0 0 0 0 0 0 0 0 0 0'
```The string of characters in the message above represents each measurement:
```
0° 30° 60° 90° 120° 150° 180° Position_X Position_Y Density Time
↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
0 0 0 0 0 0 0 0 0 0 0
```After publishing correct message table on the site should be filled with typed values.