# jhunrinf-320/project-sinag-ani-iot-monitoring-system architecture

> Architecture diagram of the GitHub repository jhunrinf-320/project-sinag-ani-iot-monitoring-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system
- Repository: https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system

## Overview

This is a React dashboard for the SINAG-ANI IoT dryer. The visible workflow is a user issuing dryer commands in the app, which writes device control values to Firebase; the dashboard also presents operation status, timers, sensor readings, and temperature history. The app’s Firebase setup and command write are shown, but its omitted code leaves the sensor-read wiring and several component integrations unverified. The README is still the default Vite template and documents no product capabilities.

Main entry points: [`src/App.jsx`](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/App.jsx) (Dashboard Logic), [`src/main.jsx`](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/main.jsx) (React Entry), [`src/components/ControlPanel.jsx`](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/ControlPanel.jsx) (Standalone Controls), [`src/firebase/firebaseConfig.js`](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/firebase/firebaseConfig.js) (Firebase Setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Dashboard UI"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_dashboard["Dashboard Logic<br/>[App.jsx]"]
  node_dryer_control["Dryer Controls<br/>[App.jsx]"]
  node_sidebar["Page Navigation<br/>[Sidebar.jsx]"]
  node_control_panel["Standalone Controls<br/>[ControlPanel.jsx]"]
end

subgraph group_telemetry["Monitoring Views"]
  node_sensor_card["Sensor Display<br/>[SensorCard.jsx]"]
  node_status_card["Operation Status<br/>[StatusCard.jsx]"]
  node_temp_chart["Temperature History"]
  node_peak_chart["Peak Temperature"]
end

subgraph group_infra["Device and Firebase"]
  node_firebase_config["Firebase Setup<br/>[firebaseConfig.js]"]
  node_firebase[("Firebase Realtime DB")]
  node_dryer_device["Dryer Firmware"]
end

node_operator(("Operator"))

node_entry -->|"renders"| node_dashboard
node_dashboard -->|"imports"| node_peak_chart
node_operator -.->|"issues commands"| node_dryer_control
node_dryer_control -->|"writes control values"| node_firebase
node_control_panel -->|"writes mode"| node_firebase
node_dashboard -.->|"reads telemetry"| node_firebase
node_firebase_config -.->|"configures access"| node_firebase

click node_entry "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/main.jsx"
click node_dashboard "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/App.jsx"
click node_dryer_control "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/App.jsx"
click node_sidebar "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/Sidebar.jsx"
click node_control_panel "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/ControlPanel.jsx"
click node_sensor_card "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/SensorCard.jsx"
click node_status_card "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/StatusCard.jsx"
click node_temp_chart "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/TemperatureChart.jsx"
click node_peak_chart "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/HighestTemperatureChart.jsx"
click node_firebase_config "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/firebase/firebaseConfig.js"
click node_dryer_device "https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/sinagani_firebase.ino"

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_entry,node_dashboard,node_dryer_control,node_sidebar,node_control_panel toneBlue
class node_sensor_card,node_status_card,node_temp_chart,node_peak_chart toneAmber
class node_firebase_config,node_firebase,node_dryer_device toneMint
class node_operator toneIndigo
```

## Components

### Dashboard UI

- [React Entry](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/main.jsx): `src/main.jsx`
- [Dashboard Logic](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/App.jsx): `src/App.jsx`
- [Dryer Controls](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/App.jsx): `src/App.jsx`
- [Page Navigation](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/Sidebar.jsx): `src/components/Sidebar.jsx`
- [Standalone Controls](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/ControlPanel.jsx): `src/components/ControlPanel.jsx`

### Monitoring Views

- [Sensor Display](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/SensorCard.jsx): `src/components/SensorCard.jsx`
- [Operation Status](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/StatusCard.jsx): `src/components/StatusCard.jsx`
- [Temperature History](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/TemperatureChart.jsx): `src/components/TemperatureChart.jsx`
- [Peak Temperature](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/components/HighestTemperatureChart.jsx): `src/components/HighestTemperatureChart.jsx`

### Device and Firebase

- [Firebase Setup](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/src/firebase/firebaseConfig.js): `src/firebase/firebaseConfig.js`
- **Firebase Realtime DB**
- [Dryer Firmware](https://github.com/jhunrinf-320/project-sinag-ani-iot-monitoring-system/blob/main/sinagani_firebase.ino): `sinagani_firebase.ino`

### Other components

- **Operator**

## Connections

- React Entry → Dashboard Logic: renders (evidence: `src/main.jsx`)
- Dashboard Logic → Peak Temperature: imports (evidence: `src/App.jsx`)
- Operator → Dryer Controls: issues commands
- Dryer Controls → Firebase Realtime DB: writes control values (evidence: `src/App.jsx`)
- Standalone Controls → Firebase Realtime DB: writes mode (evidence: `src/components/ControlPanel.jsx`)
- Dashboard Logic → Firebase Realtime DB: reads telemetry
- Firebase Setup → Firebase Realtime DB: configures access
