Commit Graph

8 Commits

Author SHA1 Message Date
Wizznu e1628ef4db Upload Tugas Akhir TKK 2026-07-09 09:49:35 +07:00
Wizznu 6c3b2f3112 feat: Complete ApsGo hydroponics system with multiple features
Features implemented:
- Dashboard with real-time sensor monitoring (temp, humidity, light, soil moisture)
- Water flow status indicator with color coding
- Time-based scheduling (Kontrol Waktu/Jadwal)
- Sensor-based threshold control (Kontrol Sensor/Threshold)
- Smart mode with auto-stop when target reached
- Three pump controls: Air, Larutan Nutrisi, Pengaduk
- Manual control for all actuators
- History/logging system
- Firebase Realtime Database integration
- Railway worker backend service

UI/UX improvements:
- Material Design 3 components
- Badge indicators for active pumps
- Conditional rendering (show only when active)
- Responsive layouts with Wrap widgets
- Color-coded status indicators

Backend fixes:
- Fixed water_flow reading from Firebase
- Fixed threshold model copyWith method
- Added pompa_pengaduk support across all models
- Smart mode with per-pot independent monitoring
- Cooldown per-threshold (not per-pot)
- Valves stop together when targets reached

Renamed: All 'Pupuk' references to 'Larutan Nutrisi Cair'
2026-02-18 08:10:43 +07:00
Wizznu 0f7def971e fix: Add missing dart:async import for StreamSubscription 2026-02-10 07:50:50 +07:00
Wizznu de5ce25f57 feat: Add Railway Worker, bug fixes, and mosvet_8 pengaduk
 New Features:
- Railway Worker for 24/7 automation (Node.js + BullMQ + Redis)
- Connection monitoring service
- Automation constants for centralized config
- History logging service with auto cleanup
- Mosvet_8 pengaduk support in kontrol page and Firebase

🐛 Bug Fixes:
- Fixed StreamSubscription memory leak in dashboard_page
- Added AppLifecycle observer for proper service management
- Fixed race conditions with Redis queue
- Improved error handling and user feedback
- Better connection status monitoring

📚 Documentation:
- DEPLOYMENT_GUIDE.md - Complete Railway deployment guide
- BUGS_AND_FIXES.md - Bug report and fixes summary
- RAILWAY_QUICK_START.md - Quick reference guide
- IMPLEMENTATION_COMPLETE.md - Complete implementation summary
- FULL_HISTORY_SYSTEM.md - History system documentation

🔧 Code Changes:
- lib/main.dart - Added AppLifecycleObserver
- lib/screens/dashboard_page.dart - Fixed memory leak
- lib/screens/histori_page.dart - Full Firebase integration
- lib/screens/kontrol_page.dart - Added pengaduk (mosvet_8)
- lib/services/firebase_database_service.dart - Added mosvet_8, history methods
- lib/services/kontrol_automation_service.dart - Use constants, connection check
- lib/services/automation_constants.dart - NEW centralized constants
- lib/services/connection_monitor_service.dart - NEW connection monitoring
- lib/services/history_logging_service.dart - NEW auto logging service
- railway-worker/ - NEW complete worker implementation

Status:  Production Ready
2026-02-10 07:22:43 +07:00
Wizznu a213576bce feat: Implement dual mode system (Smart & Fixed) and fix logout bugs
- Add Smart Mode: auto-stop when target reached or timeout
- Add Fixed Duration Mode: water for exact duration
- Fix auth state management to prevent unexpected logout
- Add error handling across all pages
- Update automation service with dual mode logic
- Add mode selection UI in sensor config page
- Update Firebase structure: mode_sensor, durasi_sensor
- Enhance logging for debugging
- Add flutter_launcher_icons for app icon management
- Add comprehensive documentation (3 MD files)
PERUBHAAN BESAR
2026-01-26 11:47:23 +07:00
Wizznu c3b68edba1 tersingkrong per tanggal 12 januari 2026 2026-01-12 18:31:42 +07:00
Wizznu 2586f744a9 dashboard terhubung firebase 2026-01-12 17:53:26 +07:00
Wizznu 95949930ad Initial commit: ApsGo project with Firebase integration 2026-01-12 15:24:52 +07:00