Skip to content

denczo/minimetrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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)

About

Mini Metrix is a small scale IoT monitoring platform which can be used for a home setup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published