# arieldiga/iot-portal-projek-skripsi architecture

> Architecture diagram of the GitHub repository arieldiga/iot-portal-projek-skripsi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arieldiga/iot-portal-projek-skripsi
- Repository: https://github.com/arieldiga/iot-portal-projek-skripsi

## Overview

This Laravel application appears to provide role-aware access to customer sensor measurements, dashboard charts and tables, configurable parameter labels/visibility, and Excel exports, with user administration and vendor-data synchronization as supporting capabilities. The principal path is a web request routed to a controller, which reads sensor/account data and returns dashboard or export results. The README is the generic Laravel template, so product capabilities are inferred from the source tree and excerpts; unsampled sync and view wiring is shown only where supported or left unverified.

Main entry points: [`app/Http/Controllers/UserController.php`](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/UserController.php) (User administration), [`routes/web.php`](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/SensorDataController.php`](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/SensorDataController.php) (Sensor data and export), [`app/Models/SensorData.php`](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/SensorData.php) (Sensor measurements)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web and access"]
  node_routes["Web routes<br/>[web.php]"]
  node_auth_routes["Auth routes<br/>[auth.php]"]
  node_login["Username login"]
  node_session_auth["Session auth"]
  node_registration["Registration"]
end

subgraph group_sensors["Sensor experience"]
  node_dashboard["Dashboard queries"]
  node_sensor_controller["Sensor data and export"]
  node_sensor_ui["Dashboard views"]
  node_export["Excel report builder"]
  node_sensor_data[("Sensor measurements<br/>[SensorData.php]")]
end

subgraph group_accounts["Accounts and configuration"]
  node_user_admin["User administration<br/>[UserController.php]"]
  node_profile["Profile management"]
  node_user_model[("Application users<br/>[User.php]")]
  node_custom_user[("Custom users<br/>[CustomUser.php]")]
  node_sensor_user[("Sensor accounts<br/>[SensorUser.php]")]
  node_column_config[("Column preferences")]
end

subgraph group_ingest["Sensor ingestion"]
  node_sync_command["Vendor sync command"]
  node_vendor_client["Vendor API client"]
  node_backfill["Sensor backfill"]
end

node_visitor(("Dashboard user"))
node_vendor_service{{"Vendor API"}}

node_visitor -->|"requests pages"| node_routes
node_visitor -->|"requests access"| node_auth_routes
node_routes -->|"dispatches"| node_login
node_routes -->|"dispatches"| node_sensor_controller
node_routes -->|"dispatches"| node_user_admin
node_routes -->|"dispatches"| node_profile
node_auth_routes -->|"dispatches"| node_session_auth
node_auth_routes -->|"dispatches"| node_registration
node_login -->|"checks account"| node_custom_user
node_registration -->|"creates account"| node_user_model
node_dashboard -->|"queries users"| node_user_model
node_dashboard -->|"queries measurements"| node_sensor_data
node_sensor_controller -->|"queries measurements"| node_sensor_data
node_sensor_controller -->|"resolves sensor account"| node_sensor_user
node_sensor_controller -->|"builds workbook"| node_export
node_sensor_controller -.->|"returns dashboard view"| node_sensor_ui
node_user_admin -->|"manages accounts"| node_custom_user
node_user_admin -->|"queries sensor accounts"| node_sensor_user
node_user_admin -->|"queries measurements"| node_sensor_data
node_user_admin -->|"reads settings"| node_column_config
node_user_admin -->|"builds workbook"| node_export
node_profile -.->|"updates profile"| node_user_model
node_export -->|"loads labels"| node_column_config
node_sensor_data -->|"belongs to"| node_sensor_user
node_backfill -->|"writes measurements"| node_sensor_data
node_sync_command -.->|"uses client"| node_vendor_client
node_vendor_client -.->|"fetches readings"| node_vendor_service

click node_routes "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/routes/web.php"
click node_auth_routes "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/routes/auth.php"
click node_login "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/Auth/LoginController.php"
click node_session_auth "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_registration "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_dashboard "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/DashboardController.php"
click node_sensor_controller "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/SensorDataController.php"
click node_sensor_ui "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/resources/views/dashboard.blade.php"
click node_export "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Exports/SensorDataExport.php"
click node_user_admin "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/UserController.php"
click node_profile "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/ProfileController.php"
click node_user_model "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/User.php"
click node_custom_user "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/CustomUser.php"
click node_sensor_user "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/SensorUser.php"
click node_column_config "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/SensorColumnConfig.php"
click node_sensor_data "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/SensorData.php"
click node_sync_command "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Console/Commands/SyncVendorSensorData.php"
click node_vendor_client "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Services/VendorApiClient.php"
click node_backfill "https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Console/Commands/BackfillSensorData.php"

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_routes,node_auth_routes,node_login,node_session_auth,node_registration,node_visitor toneBlue
class node_dashboard,node_sensor_controller,node_sensor_ui,node_export,node_sensor_data toneAmber
class node_user_admin,node_profile,node_user_model,node_custom_user,node_sensor_user,node_column_config,node_vendor_service toneMint
class node_sync_command,node_vendor_client,node_backfill toneRose
```

## Components

### Web and access

- [Web routes](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/routes/web.php): `routes/web.php`
- [Auth routes](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/routes/auth.php): `routes/auth.php`
- [Username login](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/Auth/LoginController.php): `app/Http/Controllers/Auth/LoginController.php`
- [Session auth](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Registration](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`

### Sensor experience

- [Dashboard queries](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Sensor data and export](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/SensorDataController.php): `app/Http/Controllers/SensorDataController.php`
- [Dashboard views](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/resources/views/dashboard.blade.php): `resources/views/dashboard.blade.php`
- [Excel report builder](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Exports/SensorDataExport.php): `app/Exports/SensorDataExport.php`
- [Sensor measurements](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/SensorData.php): `app/Models/SensorData.php`

### Accounts and configuration

- [User administration](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/UserController.php): `app/Http/Controllers/UserController.php`
- [Profile management](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`
- [Application users](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/User.php): `app/Models/User.php`
- [Custom users](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/CustomUser.php): `app/Models/CustomUser.php`
- [Sensor accounts](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/SensorUser.php): `app/Models/SensorUser.php`
- [Column preferences](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Models/SensorColumnConfig.php): `app/Models/SensorColumnConfig.php`

### Sensor ingestion

- [Vendor sync command](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Console/Commands/SyncVendorSensorData.php): `app/Console/Commands/SyncVendorSensorData.php`
- [Vendor API client](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Services/VendorApiClient.php): `app/Services/VendorApiClient.php`
- [Sensor backfill](https://github.com/arieldiga/iot-portal-projek-skripsi/blob/main/app/Console/Commands/BackfillSensorData.php): `app/Console/Commands/BackfillSensorData.php`

### Other components

- **Dashboard user**
- **Vendor API**

## Connections

- Dashboard user → Web routes: requests pages (evidence: `routes/web.php`)
- Dashboard user → Auth routes: requests access (evidence: `routes/auth.php`)
- Web routes → Username login: dispatches (evidence: `routes/web.php`)
- Web routes → Sensor data and export: dispatches (evidence: `routes/web.php`)
- Web routes → User administration: dispatches (evidence: `routes/web.php`)
- Web routes → Profile management: dispatches (evidence: `routes/web.php`)
- Auth routes → Session auth: dispatches (evidence: `routes/auth.php`)
- Auth routes → Registration: dispatches (evidence: `routes/auth.php`)
- Username login → Custom users: checks account (evidence: `app/Http/Controllers/Auth/LoginController.php`)
- Registration → Application users: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Dashboard queries → Application users: queries users (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard queries → Sensor measurements: queries measurements (evidence: `app/Http/Controllers/DashboardController.php`)
- Sensor data and export → Sensor measurements: queries measurements (evidence: `app/Http/Controllers/SensorDataController.php`)
- Sensor data and export → Sensor accounts: resolves sensor account (evidence: `app/Http/Controllers/SensorDataController.php`)
- Sensor data and export → Excel report builder: builds workbook (evidence: `app/Http/Controllers/SensorDataController.php`)
- Sensor data and export → Dashboard views: returns dashboard view
- User administration → Custom users: manages accounts (evidence: `app/Http/Controllers/UserController.php`)
- User administration → Sensor accounts: queries sensor accounts (evidence: `app/Http/Controllers/UserController.php`)
- User administration → Sensor measurements: queries measurements (evidence: `app/Http/Controllers/UserController.php`)
- User administration → Column preferences: reads settings (evidence: `app/Http/Controllers/UserController.php`)
- User administration → Excel report builder: builds workbook (evidence: `app/Http/Controllers/UserController.php`)
- Profile management → Application users: updates profile
- Excel report builder → Column preferences: loads labels (evidence: `app/Exports/SensorDataExport.php`)
- Sensor measurements → Sensor accounts: belongs to (evidence: `app/Models/SensorData.php`)
- Sensor backfill → Sensor measurements: writes measurements (evidence: `app/Console/Commands/BackfillSensorData.php`)
- Vendor sync command → Vendor API client: uses client
- Vendor API client → Vendor API: fetches readings
