🍈

Greenhouse Melon Monitor

Dashboard monitoring sensor real-time

Live

Pengaturan Sesi Tanam

Kelola sesi tanam greenhouse Anda

➕ Buat Sesi Tanam Baru

12 fase × 7 hari = 84 hari total siklus tanam melon

📋 Daftar Sesi Tanam

🌱

Belum ada sesi tanam. Buat sesi baru di atas.

🔌 Menghubungkan Perangkat IoT

1

Konfigurasi API Sensor

Edit file .env dan isi:
GREENHOUSE_API_URL=http://<IP_PERANGKAT>/api
GREENHOUSE_API_KEY=<API_KEY>

2

Konfigurasi API Kontrol

Untuk penyiraman otomatis:
GREENHOUSE_CONTROL_URL=http://<IP_PERANGKAT>/api/control
GREENHOUSE_CONTROL_KEY=<CONTROL_KEY>

3

Format Data Sensor (JSON)

Perangkat IoT harus menyediakan endpoint GET /sensors yang mengembalikan:

{
  "data": [
    { "type": "temperature", "id": "TEMP-1", "value": 28.5 },
    { "type": "humidity", "id": "HUM-1", "value": 65.0 },
    { "type": "nitrogen", "id": "N-1", "value": 180.0 },
    { "type": "phosphorus", "id": "P-1", "value": 75.0 },
    { "type": "potassium", "id": "K-1", "value": 190.0 }
  ]
}
4

Format Kontrol Penyiraman (POST)

Endpoint POST /control menerima:

{
  "action": "water" | "nutrient",
  "api_key": "<GREENHOUSE_CONTROL_KEY>"
}