How fadilsnt/iot-7k works
IoT TKHS is a Laravel monitoring application for temperature, moisture, and machine/RPM telemetry. In the primary workflow, IoT devices submit sensor readings; the API stores readings and updates sensor condition, and the dashboard presents recent status and trends. The product also documents alert history, threshold and sensor administration, filtered logs and exports, and profile management. Machine/RPM reporting is represented separately based on sampled controllers and the source index. Some routes and UI wiring were not sampled, so their connections are omitted.
Main entry points: Sensor.php Sensors and thresholds · SensorReadingController.php Reading API · MachineController.php Machine reports · RpmController.php RPM reports
Components 21
IoT ingestion
- Reading API
app/Http/Controllers/Api/SensorReadingController.php - Devices
app/Models/Device.php - Sensors and thresholds
app/Models/Sensor.php - Sensor readings
app/Models/SensorReading.php
Monitoring and alerts
- Dashboard data API
app/Http/Controllers/Api/DashboardDataController.php - Dashboard queries
app/Http/Controllers/DashboardController.php - Live dashboard
resources/views/dashboard.blade.php - Notification history
app/Models/NotificationLog.php - Activity log
app/Http/Controllers/ActivityLogController.php - Condition updates
app/Console/Commands/UpdateSensorConditions.php
Machine reporting
- Machine reports
app/Http/Controllers/MachineController.php - Machine readings
app/Models/MachineReading.php - RPM reports
app/Http/Controllers/RpmController.php - RPM readings
app/Models/RpmReadings.php - History export
app/Exports/MachineHistoryExport.php - Machine report export
app/Exports/MachineReportExport.php
Administration and access
- Sensor management
app/Http/Controllers/SensorController.php - User accounts
app/Models/User.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Authentication routes
routes/auth.php
Other components
- IoT devices
Connections 22
- IoT devices → Reading API: submits readings
app/Http/Controllers/Api/SensorReadingController.php - Reading API → Devices: looks up device
app/Http/Controllers/Api/SensorReadingController.php - Reading API → Sensors and thresholds: resolves sensor
app/Http/Controllers/Api/SensorReadingController.php - Reading API → Sensor readings: stores readings
app/Http/Controllers/Api/SensorReadingController.php - Reading API → Sensors and thresholds: updates condition
app/Http/Controllers/Api/SensorReadingController.php - Sensors and thresholds → Sensor readings: relates readings
app/Models/Sensor.php - Sensors and thresholds → Notification history: creates alerts
- Dashboard queries → Sensors and thresholds: queries sensors
app/Http/Controllers/DashboardController.php - Dashboard queries → Sensor readings: queries readings
app/Http/Controllers/DashboardController.php - Live dashboard → Dashboard data API: refreshes data
- Live dashboard → Dashboard queries: renders dashboard
README.md - Activity log → Notification history: lists history
README.md - Condition updates → Sensors and thresholds: updates conditions
- Machine reports → Machine readings: queries readings
app/Http/Controllers/MachineController.php - Machine reports → History export: downloads history
app/Http/Controllers/MachineController.php - Machine reports → Machine report export: downloads report
app/Http/Controllers/MachineController.php - RPM reports → RPM readings: queries readings
app/Http/Controllers/RpmController.php - RPM reports → History export: downloads history
app/Http/Controllers/RpmController.php - RPM reports → Machine report export: downloads report
app/Http/Controllers/RpmController.php - Sensor management → Sensors and thresholds: manages sensors
README.md - Registration → User accounts: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - Authentication routes → Registration: routes registration
routes/auth.php