# xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric architecture

> Architecture diagram of the GitHub repository xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric
- Repository: https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric

## Overview

This repository presents a thunderstorm-and-lightning nowcasting command center. The intended user workflow is to view telemetry, submit an observation for risk assessment, inspect the resulting event and audit record, and request operational dispatch. The sampled backend implements generic telemetry inference with randomized scoring, in-memory audit logs, statistics, and a dispatch response; it does not show ingestion of radar, satellite, lightning, or model feeds. The dashboard capabilities and its connection to the API are described in the README, but its source was not sampled, so that link is shown as unverified.

Main entry points: [`project/app.py`](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py) (FastAPI service), [`project/index.html`](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/index.html) (Control dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Mission interface"]
  node_dashboard["Control dashboard<br/>[index.html]"]
end

subgraph group_api["API services"]
  node_backend["FastAPI service<br/>[app.py]"]
  node_health["Health metadata<br/>[app.py]"]
  node_telemetry_stats["Telemetry statistics<br/>[app.py]"]
  node_audit_read["Audit retrieval<br/>[app.py]"]
  node_dispatch["Action dispatch<br/>[app.py]"]
end

subgraph group_decision["Decision and audit"]
  node_ingest["Telemetry ingest<br/>[app.py]"]
  node_risk["Risk inference<br/>[app.py]"]
  node_audit_store[("In-memory audit log<br/>[app.py]")]
end

node_operator(("Operator"))

node_operator -->|"uses"| node_dashboard
node_dashboard -.->|"requests API"| node_backend
node_backend -->|"routes"| node_health
node_backend -->|"routes"| node_telemetry_stats
node_backend -->|"routes"| node_ingest
node_backend -->|"routes"| node_audit_read
node_backend -->|"routes"| node_dispatch
node_ingest -->|"scores"| node_risk
node_ingest -->|"appends record"| node_audit_store
node_audit_read -->|"reads records"| node_audit_store

click node_dashboard "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/index.html"
click node_backend "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py"
click node_health "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py"
click node_telemetry_stats "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py"
click node_ingest "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py"
click node_risk "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py"
click node_audit_store "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py"
click node_audit_read "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py"
click node_dispatch "https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.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_dashboard toneBlue
class node_backend,node_health,node_telemetry_stats,node_audit_read,node_dispatch toneAmber
class node_ingest,node_risk,node_audit_store toneMint
class node_operator toneIndigo
```

## Components

### Mission interface

- [Control dashboard](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/index.html): `project/index.html`

### API services

- [FastAPI service](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`
- [Health metadata](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`
- [Telemetry statistics](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`
- [Audit retrieval](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`
- [Action dispatch](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`

### Decision and audit

- [Telemetry ingest](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`
- [Risk inference](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`
- [In-memory audit log](https://github.com/xarjunpatil/sih26072-aiml-based-nowcasting-of-thunderstorm-and-lightning-using-atmospheric/blob/main/project/app.py): `project/app.py`

### Other components

- **Operator**

## Connections

- Operator → Control dashboard: uses (evidence: `README.md`)
- Control dashboard → FastAPI service: requests API
- FastAPI service → Health metadata: routes (evidence: `project/app.py`)
- FastAPI service → Telemetry statistics: routes (evidence: `project/app.py`)
- FastAPI service → Telemetry ingest: routes (evidence: `project/app.py`)
- FastAPI service → Audit retrieval: routes (evidence: `project/app.py`)
- FastAPI service → Action dispatch: routes (evidence: `project/app.py`)
- Telemetry ingest → Risk inference: scores (evidence: `project/app.py`)
- Telemetry ingest → In-memory audit log: appends record (evidence: `project/app.py`)
- Audit retrieval → In-memory audit log: reads records (evidence: `project/app.py`)
