How luqman234/floracore works
FloraCore is an ESP32 plant-care device paired with the FloraOS Flask control plane and dashboard. The main workflow runs from local sensing and safety-controlled actuation, through device enrollment and authenticated messaging, to backend telemetry, automation/commands, and user-facing monitoring. The README documents additional product capabilities that are present in the tree but whose implementation was not sampled; those links are shown as documented rather than inferred source calls.
Main entry points: main.c Device runtime · app.py Web application · floraos_commands.py Command queue · floraos_device_api.py Device API
Components 29
Device runtime
- Device runtime
firmware/main/main.c - Wi-Fi manager
firmware/main/wifi_manager.c - Setup portal
firmware/main/setup_portal.c - BLE terminal
firmware/main/ble_terminal.c - Local controls
firmware/main/floraos_phase20.c - Firmware OTA
firmware/main/ota_manager.c
Secure device channel
- Device cryptography
firmware/main/floraos_crypto.c - Device messaging
firmware/main/floraos_client.c - Claim protocol
firmware/main/floraos_claim.c
FloraOS backend
- Web application
web/app.py - Device enrollment
web/device_enrollment.py - Device API
web/floraos_device_api.py - Command queue
web/floraos_commands.py - Platform database
Plant care services
- Automation Studio
web/floraos_automations.py - Automation v2
web/floraos_automation_v2.py - Plant profiles
web/floraos_plants.py - Care insights
web/floraos_insights.py - Notifications
web/floraos_notifications.py - OTA service
web/floraos_ota.py - Developer API
web/floraos_public_api.py
User interfaces
- Account security
web/floraos_account_security.py - MFA
web/floraos_mfa.py - FloraOS dashboard
web/static/js/dashboard.js - Automation interface
web/static/js/automations.js - Plant interface
web/static/js/plants.js
Other components
- Device owner
- Plant hardware
- SMTP service
Connections 36
- Device owner → Setup portal: configures device
- Plant hardware → Device runtime: senses and actuates
- Device runtime → Wi-Fi manager: manages connectivity
firmware/main/main.c - Device runtime → Setup portal: starts setup
firmware/main/main.c - Device runtime → Local controls: runs controls
firmware/main/main.c - Device runtime → Device messaging: initializes channel
firmware/main/main.c - Device runtime → Firmware OTA: checks OTA state
firmware/main/main.c - BLE terminal → Device owner: supports setup
- Device messaging → Device cryptography: uses encryption
firmware/main/floraos_client.c - Device messaging → Web application: sends authenticated messages
- Claim protocol → Device messaging: uses device channel
- Web application → Device enrollment: registers enrollment
web/app.py - Web application → Device API: registers device API
web/app.py - Device API → Device enrollment: checks ownership
web/floraos_device_api.py - Device API → Command queue: dispatches messages
web/floraos_device_api.py - Device API → OTA service: uses OTA service
web/floraos_device_api.py - Device enrollment → Platform database: stores ownership
web/device_enrollment.py - Command queue → Platform database: stores commands
web/floraos_commands.py - Automation Studio → Platform database: reads telemetry
web/floraos_automations.py - Automation Studio → Command queue: queues actions
web/floraos_automations.py - Automation v2 → Command queue: supports automation actions
- Plant profiles → Platform database: stores plant profiles
- Care insights → Platform database: uses care data
- Notifications → Platform database: stores notifications
- OTA service → Platform database: tracks OTA state
- OTA service → Firmware OTA: provides firmware updates
- Developer API → Command queue: exposes bounded commands
web/floraos_public_api.py - Developer API → OTA service: exposes OTA services
web/floraos_public_api.py - Web application → Account security: registers security
web/app.py - Web application → MFA: registers MFA
web/app.py - Account security → SMTP service: sends security email
web/floraos_account_security.py - MFA → Account security: uses account security
web/floraos_mfa.py - Device owner → FloraOS dashboard: monitors devices
- FloraOS dashboard → Web application: uses dashboard services
- Automation interface → Automation Studio: manages automations
- Plant interface → Plant profiles: manages plant profiles