About AgriWatch
Overview
AgriWatch is an IoT agricultural monitoring platform designed to help farmers and agronomists make data-driven decisions. By collecting and analyzing sensor data from across your fields, AgriWatch provides real-time insights into crop health, growth progress, and yield predictions.
Features
- Real-time Sensor Monitoring — Track temperature, humidity, soil moisture, pH, and light intensity with IoT sensors deployed across your fields.
- Diurnal Pattern Simulation — Realistic sensor data simulation that follows natural day/night cycles and environmental patterns.
- Crop Yield Prediction — Estimate expected yields using regression models based on sensor history and growth conditions.
- Growth Stage Tracking — Monitor crop development using Growing Degree Days (GDD) to determine current growth stage.
- Field Zone Mapping — Grid-based field visualization with color-coded health scores for each zone.
- Alert System — Automatic alerts when sensor readings fall outside optimal ranges.
- REST API — Full API access for all operations, enabling integration with other farm management tools.
Technology Stack
Backend
Python / Flask
Database
SQLite / SQLAlchemy
Frontend
HTML5, CSS3, Vanilla JS
Charts
Canvas API
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/fields | List all fields |
| POST | /api/fields | Create a new field |
| PUT | /api/fields/:id | Update a field |
| DELETE | /api/fields/:id | Delete a field |
| GET | /api/sensors | List all sensors |
| POST | /api/sensors | Create a sensor |
| GET | /api/readings | List recent readings |
| POST | /api/readings/ingest | Ingest a reading |
| POST | /api/readings/simulate/:field_id | Simulate readings |
| GET | /api/readings/history/:sensor_id | Sensor history |
| GET | /api/alerts | List active alerts |
| GET | /api/predictions/:field_id | Get prediction |
| POST | /api/predictions/:field_id/generate | Generate prediction |
| GET | /api/predictions/:field_id/zones | Zone health grid |
| GET | /api/dashboard/summary | Dashboard data |
License
AgriWatch is released under the MIT License. See the LICENSE file for details.