Overview
Monitor environmental conditions in your greenhouse, grow room, or any space using a BME280 sensor connected to a Raspberry Pi. Get real-time readings via chat and set up automated alerts for out-of-range conditions. What it does:- Read temperature, humidity, and pressure
- Get climate updates via chat
- Automated alerts for threshold violations
- Historical data tracking
Architecture
Complete Implementation
Edge API on Raspberry Pi
Setup (one-time)
Verify I2C Connection
Edge API Code
Updateedge_api.py (or add to existing):
Run Edge API
Test Edge API
Lua Agent Implementation
src/tools/ReadClimateTool.ts
src/index.ts
Uses LuaAgent with scheduled jobs for hourly climate monitoring and automated alerts.
Environment Setup
Wiring BME280
I²C Connection:I²C Address: BME280 typically uses 0x76 or 0x77. The Adafruit library auto-detects the address.
Testing
Key Features
Real-Time Monitoring
Instant environmental readings via chat
Automated Alerts
Hourly checks with out-of-range notifications
Historical Data
Store readings in Lua Data for trend analysis
Smart Recommendations
AI suggests actions based on conditions
Customization Ideas
Add Alert Thresholds
Daily Summary Report
Next IoT Demo
Security Camera Snapshot
Capture photos on-demand with Raspberry Pi Camera

