Skip to content
Nur Amin
← All projects
P-07Pestzone Spray2026

Pestzone — Pest Trap & Watering Control

A Flutter app for UV pest traps and automatic watering, built so a command issued with no signal still lands once the connection returns.

My role
Sole developer.
Field
Mobile Apps, IoT & Embedded
Stack
  • Flutter
  • Dart
  • MQTT
  • Provider
  • fl_chart
  • SharedPreferences

Overview

Greenhouses and open plots are exactly the places where mobile signal is worst, which is inconvenient for an app whose entire job is sending commands. Rather than failing the tap, the app queues it: the instruction is saved on the phone — on disk, so it survives the app being closed — and flushed in order the moment the broker is reachable again. The operator presses the button once, not five times.

Devices are never registered by hand. The app listens on a wildcard telemetry topic, so any unit that reports in appears with its battery, day/night state and switch positions. When a unit needs a new network, the app sends it a reset; it restarts as its own setup access point, and the Wi-Fi is chosen from a browser at 192.168.4.1.

In pictures

Pestzone Spray title with three phones: the home screen in light and dark mode, and the control screen.
FIG. 01Device list with battery and switches, in light and dark themes. Mockups redrawn with sample devices; the app UI is in Indonesian.
The home screen with the broker disconnected and a “will be processed when the device is active” message, next to the four steps of the offline command queue.
FIG. 02A tap with no signal is saved to disk and sent in order on reconnect.
The control and scheduling screen next to the five JSON commands it sends: UV and pump switches, one-off watering, a UV schedule and a watering schedule.
FIG. 03Every control is one small JSON command on the device’s own topic.
The log screen with a battery trend chart and activity history, next to notes on wildcard telemetry, local storage, battery colours and online status.
FIG. 04Telemetry and events in one log, stored on the phone.
The Wi-Fi reset screen with its confirmation dialog, next to four steps from automatic discovery to reconfiguring the device at 192.168.4.1.
FIG. 05Devices appear on their own; a Wi-Fi reset sends them back to setup mode.

Function

Control
UV pest lights and water pump toggled remotely
Telemetry
Battery, network and operational health per device
Resilience
Commands queued offline and flushed on reconnect

What it does

  1. 01Real-time battery level, network status and device health.
  2. 02Manual toggles for UV attraction lights and the water pump.
  3. 03One-off watering by duration, plus daily schedules for the UV light and the pump.
  4. 04Battery trend chart (fl_chart) and an activity log per device, kept on the phone.
  5. 05Wi-Fi reset that sends a unit back to its setup access point.
  6. 06Offline command queue that flushes on reconnect.
  7. 07Light and dark themes.

Technical notes

Telemetry topic
tanisolution/+/telemetry
Command topic
tanisolution/{device_id}/command
Payload
JSON — e.g. {"bat":85,"is_night":true,"uv":1,"pump":0}