https://github.com/denczo/minimetrix
Mini Metrix is a small scale IoT monitoring platform which can be used for a home setup
https://github.com/denczo/minimetrix
grafana mosquitto mqtt nodejs timescaledb
Last synced: 7 months ago
JSON representation
Mini Metrix is a small scale IoT monitoring platform which can be used for a home setup
- Host: GitHub
- URL: https://github.com/denczo/minimetrix
- Owner: denczo
- License: apache-2.0
- Created: 2024-12-16T13:03:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-01-31T18:00:00.000Z (8 months ago)
- Last Synced: 2025-01-31T19:18:37.133Z (8 months ago)
- Topics: grafana, mosquitto, mqtt, nodejs, timescaledb
- Language: TypeScript
- Homepage: http://unimatrixzero.eu:3000/public-dashboards/eb8215328d5a42899ad8604be2bb449b
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MiniMetrix
MiniMetrix is a homesetup that collects data from IOT devices (e.g. Pi Zero or a smartsocket) and sends it via MQTT to a broker (Mosquitoo). A microservice saves this sensor data to a time-series database (TimescaleDB), which then is visualized through Grafana for real-time monitoring. The solution provides a seamless integration of IoT devices, data storage, and visualization in a user-friendly interface. [Live demo](http://www.unimatrixzero.eu:3000/public-dashboards/eb8215328d5a42899ad8604be2bb449b)
## Overview

## Setup
raspi_temp_humpidity.py reads temperatur and humidity from a DHT11 sensor which is connected to GPIO4 of a Raspberry Pi and publishes it via MQTT. The Nous A1T supports MQTT per default and can be configured via the webinterface.
- run raspi_temp_humpidity.py in the background: nohup python3 /path/to/raspi_temp_humpidity.py &
- login to your server/VPS/Cloud, download the docker-compose.yml
- create an .env file and set all the variables (see .env_template)
- create a mosquitto.conf under `minimetrix/mosquitto/conf/` with the following:
```
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
listener 1883 0.0.0.0
allow_anonymous true
```
- run docker compose up
- in Grafana:
- create a new datasource and connect the timeseriesDB
- create a new dashboard and customize it to your needs (in my case 1 gauge for temperatur, 1 gauge for humidity, 1 timeseries for both)## Roadmap
- integrate monitoring of SmartSocket
- REST API to add new IOT devices easily
- extend Pi Zero with additional sensors (goal: independent Weather station)