How nahidislam106/brac-weather-station works
AeroSense Control is a React/Firebase precision-agriculture dashboard. Operators authenticate, then view current and historical station telemetry, explore a weather-driven digital twin and crop disease-risk guidance, and manage their profile and operating settings. The sampled code shows App coordinating authentication state and the latest Firestore reading; views fetch history or evaluate crop rules as their own responsibilities. README-documented incident diagnostics and trained crop/yield prediction remain placeholders; model artifacts exist, but no backend runtime implementation is evidenced. Connections for unsampled subsystems are documented only where the README supports them.
Main entry points: App.tsx Dashboard shell · DigitalTwinView.tsx Digital twin view · auth.ts Authentication · firestore.ts Telemetry access
Components 20
Operator access
- Dashboard shell
frontend/src/App.tsx - Sign-in view
frontend/src/components/LoginView.tsx - Authentication
frontend/src/auth.ts
Weather telemetry
- Weather dashboard
frontend/src/components/DashboardView.tsx - Sensor readings
frontend/src/components/SensorReadingsView.tsx - Telemetry access
frontend/src/firestore.ts - Digital twin view
frontend/src/components/DigitalTwinView.tsx - Twin scene canvas
frontend/src/components/StationCanvas.tsx - Station model
frontend/src/components/WeatherStation.tsx - Live data panel
frontend/src/components/LiveDataPanel.tsx - History charts
frontend/src/components/HistoryCharts.tsx
Farm decision support
- Disease risk view
frontend/src/components/DiseaseRiskView.tsx - Crop disease rules
frontend/src/diseaseRules.ts - Incident diagnostics
frontend/src/components/DashboardView.tsx - Crop yield prediction
backend/crop_model_artifacts.
Operations management
- Operations settings
frontend/src/components/SettingsView.tsx - Operator profile
frontend/src/components/ProfileView.tsx
Firebase services
- Firestore
- Firebase client
frontend/src/firebase.ts
Other components
- Field operator
Connections 26
- Field operator → Dashboard shell: uses
README.md - Dashboard shell → Sign-in view: shows
frontend/src/App.tsx - Sign-in view → Authentication: authenticates
frontend/src/components/LoginView.tsx - Dashboard shell → Authentication: loads profile
frontend/src/App.tsx - Dashboard shell → Telemetry access: loads latest
frontend/src/App.tsx - Authentication → Firebase client: uses
frontend/src/auth.ts - Telemetry access → Firebase client: uses
frontend/src/firestore.ts - Firebase client → Firestore: connects
frontend/src/firebase.ts - Authentication → Firestore: reads/writes profiles
frontend/src/auth.ts - Dashboard shell → Weather dashboard: routes to
frontend/src/App.tsx - Dashboard shell → Sensor readings: routes to
frontend/src/App.tsx - Dashboard shell → Digital twin view: routes to
frontend/src/App.tsx - Dashboard shell → Disease risk view: routes to
frontend/src/App.tsx - Dashboard shell → Operations settings: routes to
frontend/src/App.tsx - Dashboard shell → Operator profile: routes to
frontend/src/App.tsx - Weather dashboard → Telemetry access: fetches history
frontend/src/components/DashboardView.tsx - Sensor readings → Live data panel: renders
frontend/src/components/SensorReadingsView.tsx - Digital twin view → Twin scene canvas: renders
frontend/src/components/DigitalTwinView.tsx - Digital twin view → Live data panel: renders
frontend/src/components/DigitalTwinView.tsx - Digital twin view → History charts: renders
frontend/src/components/DigitalTwinView.tsx - Twin scene canvas → Station model: renders
frontend/src/components/StationCanvas.tsx - Disease risk view → Crop disease rules: evaluates
frontend/src/components/DiseaseRiskView.tsx - Field operator → Incident diagnostics: reviews
README.md - Field operator → Crop yield prediction: requests guidance
README.md - Field operator → Operations settings: configures
README.md - Field operator → Operator profile: edits
README.md