Back to Projects
Environmental Monitor
LiveReal-time environmental monitoring system collecting and visualizing sensor data via MQTT, deployed on a Linux server.
Solo Developer · 2023
Real-time
Data collection
MQTT
Protocol
MongoDB
Storage
The Problem
Needed a way to collect, store, and visualize environmental sensor data in real time from multiple distributed sensors without missing readings or losing data under intermittent connectivity.
The Solution
Built a Node.js service that subscribes to an MQTT broker to receive sensor telemetry, stores time-series data in MongoDB, and exposes a dashboard for real-time visualization. Deployed and managed on a Linux server via SSH.
Architecture
Node.js subscriber listening to MQTT topics, writing to MongoDB collections. A web-based dashboard reads from the DB and shows real-time charts. Deployed on a Linux VPS managed remotely via SSH.
Key Challenges
- Handling MQTT reconnection logic to avoid data loss during network drops
- Designing a MongoDB schema efficient for time-series sensor queries
- Deploying and managing the service via SSH on a headless Linux server
Tech Stack
Node.jsMQTTMongoDBLinuxSSH
Details
CategoryBackend
Year2023
RoleSolo Developer