How maypencs/growsight works
GrowSight is a local-first plant monitoring and growth-prediction application. The main workflow is entering conditions or ingesting sensor readings, evaluating them against plant profiles, and returning growth forecasts and diagnostic tips; garden views combine stored plant history into attention summaries. Camera snapshots form a separate monitoring path: configured cameras are polled or receive uploads, vision estimates canopy cover per plant zone, and those measurements are stored alongside readings. The API is the central runtime orchestrator. Relationships involving unsampled routes are included only where documented; the sampled excerpts do not expose every API handler.
Main entry points: app.py Camera API · app.js Web interface · model.py Growth model · db.py SQLite store
Components 14
User interface
- Web interface
growsight/static/app.js - Web page
growsight/static/index.html - FastAPI service
growsight/app.py
Prediction
- Plant profiles
growsight/profiles.py - Growth model
growsight/model.py
Garden data
- Plant and garden API
growsight/app.py - Reading ingest
growsight/app.py - SQLite store
growsight/db.py
Camera monitoring
- Camera API
growsight/app.py - Camera poller
growsight/app.py - Canopy vision
growsight/vision.py
Other components
- Grower
- Sensor sender
- Camera source
Connections 17
- Grower → Web page: opens
README.md - Web page → Web interface: loads
README.md - Web interface → FastAPI service: requests
growsight/static/app.js - Sensor sender → Reading ingest: posts readings
README.md - Reading ingest → SQLite store: stores readings
growsight/app.py - Grower → FastAPI service: requests forecasts
README.md - FastAPI service → Growth model: predicts
growsight/app.py - Growth model → Plant profiles: uses ranges
growsight/model.py - FastAPI service → Plant and garden API: routes plant data
growsight/app.py - Plant and garden API → SQLite store: reads and writes
growsight/app.py - Plant and garden API → Growth model: forecasts plant
growsight/app.py - Camera source → Camera API: sends snapshots
README.md - Web interface → Camera API: uploads photos
growsight/static/app.js - Camera API → Camera poller: polls camera
growsight/app.py - Camera poller → Canopy vision: fetches and analyzes
growsight/app.py - Camera API → Canopy vision: processes snapshots
growsight/app.py - Camera API → SQLite store: stores canopy readings
growsight/app.py