How kyle891204/growmate-physicalcomputing works
growMate is a smart-plant system combining a web app, FastAPI service, Gemini-based plant persona, persistent care and sensor records, and Raspberry Pi display/hardware control. The user workflow is to view plant conditions and care suggestions, take an action or chat, then see the updated state or response. The README documents the frontend/backend/Gemini relationship; excerpts show frontend actions and backend persistence, sensor endpoints, and Pi polling. Some frontend feature pages and API wiring are unsampled, so those relationships are not asserted.
Main entry points: api API client modules · main.py FastAPI endpoints · database.py Database access · send_sensors.py Pi polling agent
Components 19
Plant web app
- Plant dashboard
frontend-next/app/page.js - Plant chat
frontend-next/app/chat/page.js - Care diary
frontend-next/app/diary/page.js - Plant profile
frontend-next/app/profile/page.js - Care settings
frontend-next/app/settings/page.js - Sensor settings
frontend-next/app/settings/sensors/page.js - API client modules
frontend-next/lib/api - Mock data
frontend-next/lib/data
Backend service
- FastAPI endpoints
backend/main.py - Gemini persona chat
backend/main.py - Sensor and mood service
backend/main.py - Care actions
backend/main.py
Plant data
- Database access
backend/database.py - Plant and care records
backend/models.py - SQLite or MySQL
Raspberry Pi
- Pi polling agent
raspberry/send_sensors.py - LCD face display
raspberry/face.py
Other components
- Plant caretaker
- Google Gemini
Connections 24
- Plant caretaker → Plant dashboard: views and acts
frontend-next/app/page.js - Plant caretaker → Plant chat: sends messages
frontend-next/app/chat/page.js - Plant caretaker → Care diary: reviews care
- Plant caretaker → Plant profile: edits profile
frontend-next/app/profile/page.js - Plant caretaker → Care settings: edits settings
frontend-next/app/settings/page.js - Plant caretaker → Sensor settings: configures sensors
- Plant dashboard → API client modules: requests care data
frontend-next/app/page.js - Plant chat → API client modules: streams chat
frontend-next/app/chat/page.js - Plant profile → API client modules: loads profile
- Care settings → API client modules: reads and updates
frontend-next/app/settings/page.js - Care diary → API client modules: loads diary
- Sensor settings → API client modules: updates thresholds
- API client modules → FastAPI endpoints: HTTP requests
- API client modules → Mock data: uses when offline
frontend-next/lib/api/client.js - FastAPI endpoints → Gemini persona chat: routes chat
README.md - Gemini persona chat → Google Gemini: generates replies
README.md - FastAPI endpoints → Sensor and mood service: serves readings
backend/main.py - FastAPI endpoints → Care actions: handles actions
backend/main.py - FastAPI endpoints → Database access: uses sessions
backend/main.py - FastAPI endpoints → Plant and care records: queries records
backend/main.py - Plant and care records → Database access: uses base
backend/models.py - Database access → SQLite or MySQL: persists records
backend/database.py - Pi polling agent → Sensor and mood service: polls readings and mood
raspberry/send_sensors.py - Pi polling agent → LCD face display: updates display
raspberry/send_sensors.py