How mihaelbaranasic/weatheris works
WeatherIS collects public and simulated weather data, stores sensor observations and forecasts, and serves a React dashboard with live updates, alerts, and prediction evaluation. The principal workflow runs from sensor/weather acquisition through synchronization and persistence, then API queries or ML forecasting to dashboard views. Alert subscriptions and scheduled alert checks form a separate capability. The source excerpts show synchronization, prediction, and routing details; links for unsampled UI pages and live SignalR wiring rely on README statements or are omitted where evidence is insufficient.
Main entry points: DataSyncService.cs Scheduled sync · SensorRepository.cs Sensor repository · WeatherController.cs Weather endpoints · PredictionsController.cs Prediction endpoints
Components 23
Dashboard
- Page routing
WeatherISAPI/weatheris-client/src/App.jsx - Dashboard views
WeatherISAPI/weatheris-client/src/pages - API client
WeatherISAPI/weatheris-client/src/services/api.js - Model evaluation
WeatherISAPI/weatheris-client/src/pages/Evaluation.jsx
API and ingestion
- Weather endpoints
WeatherISAPI/WeatherISAPI/Controllers/WeatherController.cs - Sensor endpoints
WeatherISAPI/WeatherISAPI/Controllers/SensorsController.cs - Prediction endpoints
WeatherISAPI/WeatherISAPI/Controllers/PredictionsController.cs - Alert endpoints
WeatherISAPI/WeatherISAPI/Controllers/AlertsController.cs - Subscription endpoints
WeatherISAPI/WeatherISAPI/Controllers/SubscriptionController.cs - Scheduled sync
WeatherISAPI/WeatherISAPI/Services/DataSyncService.cs - IoT simulator
WeatherISAPI/WeatherISAPI/Services/IoTSimulatorService.cs - Weather provider
WeatherISAPI/WeatherISAPI/Services/OpenMeteoService.cs - Weather stream
WeatherISAPI/WeatherISAPI/Hubs/WeatherHub.cs - Sensor stream
WeatherISAPI/WeatherISAPI/Hubs/SensorHub.cs - Email delivery
WeatherISAPI/WeatherISAPI/Services/EmailService.cs
Forecasting and alerts
- Forecast models
WeatherISAPI/WeatherISML/Services/WeatherPredictionService.cs
Persistence
- Sensor repository
WeatherISAPI/WheatherISDB/Repositories/SensorRepository.cs - Prediction repository
WeatherISAPI/WheatherISDB/Repositories/PredictionRepository.cs - Alert repository
WeatherISAPI/WheatherISDB/Repositories/AlertRepository.cs - Subscription repository
WeatherISAPI/WheatherISDB/Repositories/EmailSubscriptionRepository.cs - Weather database
WeatherISAPI/WheatherISDB/AppDbContext.cs
Other components
- Weather user
- Open-Meteo
Connections 32
- Weather user → Page routing: uses
- Page routing → Dashboard views: routes to
WeatherISAPI/weatheris-client/src/App.jsx - Weather user → API client: requests data
- API client → Weather endpoints: calls API
- API client → Prediction endpoints: calls API
- API client → Model evaluation: supplies data
WeatherISAPI/weatheris-client/src/pages/Evaluation.jsx - Weather endpoints → Weather provider: fetches weather
WeatherISAPI/WeatherISAPI/Controllers/WeatherController.cs - Weather endpoints → Sensor repository: reads sensors
WeatherISAPI/WeatherISAPI/Controllers/WeatherController.cs - Weather endpoints → Email delivery: sends alerts
WeatherISAPI/WeatherISAPI/Controllers/WeatherController.cs - Weather endpoints → Alert repository: records alerts
WeatherISAPI/WeatherISAPI/Controllers/WeatherController.cs - Sensor endpoints → Sensor repository: queries sensors
WeatherISAPI/WeatherISAPI/Controllers/SensorsController.cs - Prediction endpoints → Sensor repository: loads sensors
WeatherISAPI/WeatherISAPI/Controllers/PredictionsController.cs - Prediction endpoints → Prediction repository: reads forecasts
WeatherISAPI/WeatherISAPI/Controllers/PredictionsController.cs - Prediction endpoints → Forecast models: generates forecasts
WeatherISAPI/WeatherISAPI/Controllers/PredictionsController.cs - Prediction endpoints → Weather provider: fetches weather
WeatherISAPI/WeatherISAPI/Controllers/PredictionsController.cs - Subscription endpoints → Subscription repository: manages subscriptions
WeatherISAPI/WeatherISAPI/Controllers/SubscriptionController.cs - Scheduled sync → Sensor repository: loads active sensors
WeatherISAPI/WeatherISAPI/Services/DataSyncService.cs - Scheduled sync → Weather provider: fetches forecasts
WeatherISAPI/WeatherISAPI/Services/DataSyncService.cs - Scheduled sync → Prediction repository: stores forecasts
WeatherISAPI/WeatherISAPI/Services/DataSyncService.cs - Scheduled sync → Alert repository: checks alerts
WeatherISAPI/WeatherISAPI/Services/DataSyncService.cs - Scheduled sync → Subscription repository: loads subscribers
WeatherISAPI/WeatherISAPI/Services/DataSyncService.cs - Scheduled sync → Email delivery: sends notifications
WeatherISAPI/WeatherISAPI/Services/DataSyncService.cs - IoT simulator → Sensor repository: writes readings
WeatherISAPI/WeatherISAPI/Services/IoTSimulatorService.cs - IoT simulator → Sensor stream: broadcasts readings
WeatherISAPI/WeatherISAPI/Services/IoTSimulatorService.cs - Weather provider → Open-Meteo: requests data
WeatherISAPI/WeatherISAPI/Services/OpenMeteoService.cs - Sensor repository → Weather database: reads and writes
WeatherISAPI/WheatherISDB/Repositories/SensorRepository.cs - Prediction repository → Weather database: reads and writes
WeatherISAPI/WheatherISDB/Repositories/PredictionRepository.cs - Alert repository → Weather database: reads and writes
WeatherISAPI/WheatherISDB/Repositories/AlertRepository.cs - Subscription repository → Weather database: reads and writes
WeatherISAPI/WheatherISDB/Repositories/EmailSubscriptionRepository.cs - Weather stream → Dashboard views: streams live updates
README.md - Sensor stream → Dashboard views: streams live updates
README.md - Weather user → Dashboard views: views forecasts and alerts
README.md