Files
mosquitto/dashboard/README.md
Serhii Orlivskyi b0884fbc23 Add web-based dashboard for system metrics
Adds a web-based user interface with a live dashboard for displaying system metrics. The metrics are coming from Mosquitto's HTTP API.
UI is written using basic web stack (HTML, CSS, and JS) without the use of the frameworks. All the dependencies (chartjs, chartjs-plugin-zoom, hammerjs) are stored in the `src/lib` directory. CSS classes generated with tailwind are in src/styles.css. The idea is to be able to serve the UI by starting a simple http server from dashbard/src/.
This UI can be further extended by adding additional web pages.

Signed-off-by: Serhii Orlivskyi <serhii.orlivskyi@cedalo.com> (Cedalo GmbH)
2025-07-08 09:49:58 +01:00

724 B

Simple web-based graphical user interface for Mosquitto

To develop UI locally.

  1. Install tailwind:
npm -g install tailwindcss@3
  1. Go into src and run tailwind to generate a CSS file based on tailwind classes used in index.html:
tailwindcss -i ./tailwind/styles.css -o ./styles.css
  1. Run mosquitto http api mock

  2. Change mosquitto api endponits in src/consts.js

  3. Go into src and run a simple http server, e.g. python3 -m http.server 3000

Dependencies (in src/lib directory):