# sk-singh123/weather-forecasting-system architecture

> Architecture diagram of the GitHub repository sk-singh123/weather-forecasting-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sk-singh123/weather-forecasting-system
- Repository: https://github.com/sk-singh123/weather-forecasting-system

## Overview

This is a Streamlit dashboard for campus IoT weather monitoring and forecasting. Users provide a CSV or use the bundled dataset; the dashboard sends the selected path to the model pipeline, which cleans and engineers sensor data, trains four prediction tasks, and returns data, models, and metrics for dashboard visualizations. The README also describes warnings and feature-importance views. The graph reflects the shown dashboard/model calls; data-source and model-stage links are supported by the excerpts, while unsampled dashboard details are not expanded.

Main entry points: [`weather_model.py`](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py) (Training Orchestrator), [`weather_dashboard.py`](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_dashboard.py) (Streamlit Dashboard), [`1_01-12-2025_12-02-2026.csv`](https://github.com/sk-singh123/weather-forecasting-system/blob/main/1_01-12-2025_12-02-2026.csv) (Bundled Sensor CSV), [`uploaded_data.csv`](https://github.com/sk-singh123/weather-forecasting-system/blob/main/uploaded_data.csv) (Uploaded CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_app["Streamlit Dashboard"]
  node_views["Weather Views"]
end

subgraph group_data["Sensor Data"]
  node_dataset["Bundled Sensor CSV"]
  node_upload["Uploaded CSV<br/>[uploaded_data.csv]"]
end

subgraph group_model["Model Pipeline"]
  node_pipeline["Training Orchestrator<br/>[weather_model.py]"]
  node_preprocess["Cleaning and Features<br/>[weather_model.py]"]
end

subgraph group_forecast["Forecast Tasks"]
  node_temperature["Temperature Forecast<br/>[weather_model.py]"]
  node_humidity["Humidity Forecast<br/>[weather_model.py]"]
  node_rain["Rain Classification<br/>[weather_model.py]"]
  node_wind["Wind Forecast<br/>[weather_model.py]"]
end

node_user(("Dashboard User"))

node_user -->|"uses"| node_app
node_app -->|"selects default"| node_dataset
node_app -->|"writes upload"| node_upload
node_app -->|"calls train_all"| node_pipeline
node_pipeline -->|"calls load_and_clean"| node_preprocess
node_pipeline -->|"trains"| node_temperature
node_pipeline -->|"trains"| node_humidity
node_pipeline -->|"trains"| node_rain
node_pipeline -->|"trains"| node_wind
node_app -->|"renders"| node_views
node_pipeline -->|"returns results"| node_app

click node_app "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_dashboard.py"
click node_views "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_dashboard.py"
click node_dataset "https://github.com/sk-singh123/weather-forecasting-system/blob/main/1_01-12-2025_12-02-2026.csv"
click node_upload "https://github.com/sk-singh123/weather-forecasting-system/blob/main/uploaded_data.csv"
click node_pipeline "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py"
click node_preprocess "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py"
click node_temperature "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py"
click node_humidity "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py"
click node_rain "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py"
click node_wind "https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_views,node_user toneBlue
class node_dataset,node_upload toneAmber
class node_pipeline,node_preprocess toneMint
class node_temperature,node_humidity,node_rain,node_wind toneRose
```

## Components

### Dashboard

- [Streamlit Dashboard](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_dashboard.py): `weather_dashboard.py`
- [Weather Views](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_dashboard.py): `weather_dashboard.py`

### Sensor Data

- [Bundled Sensor CSV](https://github.com/sk-singh123/weather-forecasting-system/blob/main/1_01-12-2025_12-02-2026.csv): `1_01-12-2025_12-02-2026.csv`
- [Uploaded CSV](https://github.com/sk-singh123/weather-forecasting-system/blob/main/uploaded_data.csv): `uploaded_data.csv`

### Model Pipeline

- [Training Orchestrator](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py): `weather_model.py`
- [Cleaning and Features](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py): `weather_model.py`

### Forecast Tasks

- [Temperature Forecast](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py): `weather_model.py`
- [Humidity Forecast](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py): `weather_model.py`
- [Rain Classification](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py): `weather_model.py`
- [Wind Forecast](https://github.com/sk-singh123/weather-forecasting-system/blob/main/weather_model.py): `weather_model.py`

### Other components

- **Dashboard User**

## Connections

- Dashboard User → Streamlit Dashboard: uses (evidence: `README.md`)
- Streamlit Dashboard → Bundled Sensor CSV: selects default (evidence: `weather_dashboard.py`)
- Streamlit Dashboard → Uploaded CSV: writes upload (evidence: `weather_dashboard.py`)
- Streamlit Dashboard → Training Orchestrator: calls train_all (evidence: `weather_dashboard.py`)
- Training Orchestrator → Cleaning and Features: calls load_and_clean (evidence: `weather_model.py`)
- Training Orchestrator → Temperature Forecast: trains (evidence: `weather_model.py`)
- Training Orchestrator → Humidity Forecast: trains (evidence: `weather_model.py`)
- Training Orchestrator → Rain Classification: trains (evidence: `weather_model.py`)
- Training Orchestrator → Wind Forecast: trains (evidence: `weather_model.py`)
- Streamlit Dashboard → Weather Views: renders (evidence: `weather_dashboard.py`)
- Training Orchestrator → Streamlit Dashboard: returns results (evidence: `weather_dashboard.py`)
