How patrickhaetti/measurementdatastreamer works
Main Components
a. Hardware Layer:
• RaspberryPi (Primary controller)
• Arduino (Secondary controller)
• Sensors:
• DHT22 (Temperature/Humidity sensor)
• CCS811 (CO2 sensor)
b. Data Collection Layer:
• Python Scripts:
• DHT22 reader (dht22_to_grafana.py)
• Combined sensor reader (dht22_ccs811_to_grafana.py)
• Arduino communication scripts (arduino_to_influxdb.py)
c. Data Storage & Processing Stack:
• InfluxDB (Time-series database)
• Telegraf (Data collection agent)
• Grafana (Visualization platform)
[Hardware Layer]
• ↓
[Data Collection Layer]
• ↓
[Data Processing Layer]
• ↓
[Visualization Layer]
Data Flow Representation
• Sensor data flow from DHT22 and CCS811 to their respective Python scripts
• Data flow from Arduino to RaspberryPi (via Serial communication)
• Data ingestion into InfluxDB (both direct and through Telegraf)
• Data query flow from Grafana to InfluxDB
Port and Protocol Information
• Port numbers (e.g., Grafana:3000, InfluxDB:8086)
• Communication protocols (HTTP, Serial, etc.)
Additional Details
a. Configuration Notes:
• InfluxDB database name: "newmeasurementdatabase"
• Telegraf configuration pointing to InfluxDB
• Grafana data source configuration
b. Data Structure:
measurement: "environment"
fields:
• temperature_c
• temperature_f
• humidity
Notes Section
A notes section mentioning:
• Authentication details (admin credentials)
• Port requirements
• Network connectivity requirements
Remember to include version information for major components and any specific configuration requirements that are critical to the system's operation.