CompletedSelesai3 stations sending to the new Smartbun platform; final report and manual delivered Dec 20233 stasiun mengirim data ke platform Smartbun baru; laporan akhir dan manual diserahkan Des 2023
AWS – Subang
OverviewRingkasan
Stage 3 upgrade of three solar-powered weather stations in Subang sugarcane fields. Added a 7-parameter NPK soil sensor and fed a new Smartbun platform that gives irrigation and fertilisation recommendations.Peningkatan tahap 3 untuk tiga stasiun cuaca bertenaga surya di kebun tebu Subang. Menambahkan sensor tanah NPK 7 parameter dan mengirim data ke platform Smartbun baru yang memberikan rekomendasi irigasi dan pemupukan.
My RolePeran Saya
Raspberry Pi Python scripts for the three stations: Modbus RTU polling of the sensors, hourly MQTT publish and HTTP POST to the platform, daily rain-counter reset, and a data mirror script. Sensor installation and maintenance at the sitesSkrip Python Raspberry Pi untuk ketiga stasiun: pembacaan sensor lewat Modbus RTU, publish MQTT dan HTTP POST per jam ke platform, reset penghitung hujan harian, dan skrip data mirror. Pemasangan sensor dan maintenance di lokasi
How It WorksCara Kerja
- RS485 Modbus sensors (rain, T/RH, radiation, NPK soil) on one busSensor RS485 Modbus (hujan, suhu/RH, radiasi, NPK tanah) dalam satu bus
- Raspberry Pi reads all slaves and resets the rain counter daily at 23:59Raspberry Pi membaca semua slave dan me-reset penghitung hujan tiap hari pukul 23.59
- 4G modem uplink; hourly MQTT publish to ThingsBoard and HTTP POST to the Smartbun /iot APIUplink modem 4G; publish MQTT tiap jam ke ThingsBoard dan HTTP POST ke API /iot Smartbun
- Smartbun web platform stores data, shows dashboards and computes recommendationsPlatform web Smartbun menyimpan data, menampilkan dashboard, dan menghitung rekomendasi
- Admin (Ditjenbun) and member (sugar mill) roles view data and recordsPeran admin (Ditjenbun) dan member (pabrik gula) melihat data dan catatan
Key FeaturesFitur Utama
- •Rainfall, air temperature/humidity, solar radiation and soil N, P, K, pH, EC, temperature and moisture per siteCurah hujan, suhu/kelembapan udara, radiasi matahari, serta N, P, K, pH, EC, suhu, dan kelembapan tanah di setiap lokasi
- •Irrigation and fertilisation recommendations based on Permentan No. 53/2015 thresholds, adjustable by the adminRekomendasi irigasi dan pemupukan berdasarkan ambang Permentan No. 53/2015, dapat disesuaikan oleh admin
- •Standalone IoT dashboard in Smartbun, replacing the embedded ThingsBoard viewDashboard IoT mandiri di Smartbun, menggantikan tampilan ThingsBoard yang di-embed
- •Land, production and treatment records with import/export and sensor data exportPencatatan lahan, produksi, dan perlakuan dengan impor/ekspor serta ekspor data sensor
- •Platform mirrored to a backup serverPlatform di-mirror ke server cadangan
Field Issues & FixesKendala & Solusi
After the NPK sensors were added (Oct 2023), some sensors were no longer detected; temperature and humidity were swapped in the payload and EC was unscaled.Setelah sensor NPK ditambahkan (Okt 2023), beberapa sensor tidak lagi terdeteksi; suhu dan kelembapan tertukar di payload dan EC belum diskalakan.
Maintenance visit in mid-October and a full upgrade/maintenance round at all 3 sites on 1–2 Nov 2023.Kunjungan maintenance pertengahan Oktober dan putaran upgrade/maintenance penuh di ketiga lokasi pada 1–2 Nov 2023.
In 2022 the field modems died repeatedly, likely from heat, leaving stations offline for weeks.Pada 2022 modem lapangan berulang kali mati, kemungkinan karena panas, sehingga stasiun offline berminggu-minggu.
Relay-based automatic modem reset installed at all three sites (Nov 2022).Reset modem otomatis berbasis relay dipasang di ketiga lokasi (Nov 2022).
MQTT and image API ports on the ministry server were closed or restricted in early 2023.Port MQTT dan API gambar di server kementerian ditutup atau dibatasi pada awal 2023.
Data temporarily routed to an ITB server, then the platform was mirrored to a backup VPS (Oct 2023).Data sementara dialihkan ke server ITB, lalu platform di-mirror ke VPS cadangan (Okt 2023).
Key NumbersAngka Kunci
- Stations upgradedStasiun di-upgrade
- 3
- Modbus slaves polled per stationSlave Modbus dibaca per stasiun
- 5
- Soil parameters (NPK sensor)Parameter tanah (sensor NPK)
- 7
- Upload intervalInterval unggah
- 1 hour1 jam
- Implementation windowWaktu implementasi
- 60 working days (22 Aug – 20 Oct 2023)60 hari kerja (22 Agu – 20 Okt 2023)