Aquaculture IoT Automation Weather Integration Telegram BMKG API

Smart Fish Feeder: Weather-Based Feeding System with BMKG & Telegram Alerts

Automate fish farming with intelligent weather-based feeding. Reduce feed waste by 20% and optimize aquaculture operations with real-time weather data integration.

Download Template JSON · n8n compatible · Free
Smart fish feeder automation workflow diagram showing weather integration and feeding control

What This Workflow Does

This intelligent automation system transforms traditional fish farming by connecting weather forecasts directly to feeding decisions. It solves the common problem of overfeeding during rainy periods, which wastes expensive feed and degrades water quality. By fetching official BMKG weather data for Indonesia, the workflow analyzes 6-hour and 12-hour rain probabilities, then automatically adjusts feeding schedules and quantities.

The system reduces feed by 20% when rain probability exceeds 60%, matching natural fish behavior during adverse weather. It sends commands to ESP8266-based fish feeder hardware via HTTP webhooks and provides comprehensive Telegram notifications with weather analysis, feeding decisions, and hardware status. This creates a complete feedback loop where environmental data drives operational decisions without manual intervention.

How It Works

1. Weather Data Collection

The workflow triggers twice daily (05:30 and 16:30 WIB) using n8n's schedule node. It fetches official BMKG weather forecasts for your specific ADM4 region via HTTP request, extracting precise rain probability percentages for the coming 6 and 12-hour periods.

2. Intelligent Decision Making

A JavaScript code node processes the weather data, applying configurable thresholds. If rain probability exceeds your set limit (default: 60%), it calculates appropriate feed reduction (default: -20%) and generates specific command payloads for the hardware.

3. Hardware Control

The system sends structured JSON commands via HTTP POST to your ESP8266/ESP32 device's IP address. These commands trigger servo motors or other feeding mechanisms, executing the precise feeding amount determined by the weather analysis.

4. Notification & Logging

Comprehensive Telegram messages detail the weather analysis, feeding decision rationale, hardware response status, and next scheduled feeding. All activities are logged with timestamps for operational monitoring and pattern analysis.

Pro tip: Start with a conservative 15% feed reduction during initial testing. Monitor fish behavior and water parameters for 1-2 weeks before adjusting thresholds. Different fish species have varying sensitivity to weather changes.

Who This Is For

This automation is ideal for commercial aquaculture operations in Indonesia seeking to optimize feed costs and labor. Hobbyist fish farmers with medium to large ponds will benefit from reduced daily maintenance. Agricultural technology companies can use this as a foundation for more complex farm management systems. Educational institutions teaching IoT and smart agriculture concepts will find this a practical, real-world application. Environmental researchers studying the impact of weather on aquaculture can adapt the data collection and analysis components.

What You'll Need

  1. n8n instance (self-hosted or cloud) with internet access
  2. Telegram bot created via @BotFather for notifications
  3. ESP8266 or ESP32 microcontroller with servo motor for automated feeding mechanism
  4. Basic Arduino programming knowledge to set up the hardware webhook endpoint
  5. Indonesian location with known BMKG ADM4 regional code
  6. Stable internet connection at both n8n and hardware locations

Quick Setup Guide

  1. Import the template: Download the JSON file and import into your n8n instance via the workflow import function.
  2. Configure credentials: Set up your Telegram bot token and chat ID in n8n's credential management system.
  3. Update location settings: Modify the configuration node with your latitude, longitude, and BMKG ADM4 code.
  4. Set hardware IP: Enter your ESP8266 device's local IP address in the HTTP request node targeting your feeder.
  5. Adjust thresholds: Customize the rain probability threshold (default: 60%) and feed reduction percentage (default: -20%) in the code node.
  6. Test the workflow: Execute manually once to verify all connections work before enabling the schedule trigger.

Key Benefits

20-30% feed cost reduction through precise weather-based portion control. Fish naturally eat less during rainy periods, and this system matches feeding to actual appetite rather than fixed schedules.

Improved water quality by preventing overfeeding that leads to ammonia spikes and oxygen depletion. Better water parameters directly correlate with reduced disease incidence and faster growth rates.

Labor savings of 10-20 hours weekly per farm location by automating twice-daily feeding routines. Staff can focus on monitoring, maintenance, and value-added tasks rather than repetitive feeding.

Data-driven decision making with comprehensive logs of weather conditions, feeding decisions, and hardware performance. This historical data helps optimize thresholds and identify patterns for further efficiency gains.

Scalable architecture that supports multiple ponds or locations from a single workflow. Each location can have customized thresholds while sharing the same core automation logic.

Frequently Asked Questions

Common questions about aquaculture automation and weather integration

Weather data directly impacts fish feeding behavior and water quality. During rainy periods, fish eat less naturally, and overfeeding leads to wasted feed and polluted water. By integrating BMKG forecasts, you can automatically reduce feeding by 20-30% when high rain probability is detected, matching feed to actual fish appetite and environmental conditions.

This precision feeding improves feed conversion ratios, reduces waste accumulation, and maintains optimal water parameters. The system also accounts for temperature variations that affect fish metabolism, allowing seasonal adjustment of feeding schedules without manual intervention.

Aquaculture automation reduces labor costs by 60-80% for feeding tasks, improves feed conversion ratios by 15-25%, prevents water quality issues from overfeeding, and enables 24/7 monitoring without physical presence. Automated systems also provide data logs for optimizing feeding schedules and predicting growth patterns.

Beyond efficiency gains, automation brings consistency to operations—feeding happens at exact times with precise amounts regardless of staff availability. This consistency reduces stress on fish populations and creates more predictable growth curves for commercial planning.

IoT devices like ESP8266 microcontrollers communicate via HTTP webhooks or MQTT protocols. n8n sends structured JSON commands to device IP addresses, triggering physical actions like servo motor activation for feeding. The platform handles authentication, scheduling, error handling, and notification workflows while the hardware executes the physical tasks.

This separation of concerns allows business logic to reside in n8n where it's easily modified, while the hardware focuses on reliable execution. The HTTP interface means any microcontroller with network connectivity can be integrated without custom drivers or complex programming.

Rain probability (6-12 hour forecasts) is most critical for feeding adjustments. Temperature affects fish metabolism and feeding rates. Wind speed influences water oxygenation. Solar radiation impacts algae growth. For Indonesian operations, BMKG provides localized ADM4 data with precise rainfall predictions essential for pond management decisions.

Barometric pressure changes often precede weather shifts and can signal feeding behavior changes. Humidity affects evaporation rates and water temperature stability. A comprehensive system might monitor multiple parameters, but rainfall probability delivers the highest immediate impact on feeding decisions.

Smart feeding typically reduces feed costs by 15-30% through precise portion control and weather-based adjustments. Labor savings of 10-20 hours weekly per farm location. Reduced mortality rates from better water quality add 5-15% to harvest yields. The ROI period for automation setups is typically 3-8 months for commercial operations.

Additional savings come from reduced chemical treatments for water quality management, lower energy consumption for aeration (when coordinated with feeding), and decreased waste disposal costs. The data collected also helps optimize stocking densities and harvest timing for maximum profitability.

Yes, the weather-based automation concept applies to poultry (adjusting ventilation based on temperature), dairy (modifying feed supplements during heat stress), and shrimp farming (managing aeration during low-pressure systems). The core workflow of fetching weather data, making decisions, and controlling hardware adapts to various agricultural contexts.

For poultry, temperature thresholds trigger cooling system activation. In dairy operations, heat index calculations adjust feed formulations. The modular design allows swapping weather parameters, decision logic, and hardware commands while reusing the scheduling, notification, and error handling components.

Basic understanding of IoT hardware setup (ESP8266/ESP32), ability to configure n8n credentials and webhooks, familiarity with weather API data formats, and fundamental aquaculture knowledge. No advanced programming is required—most logic uses n8n's visual workflow builder with simple JavaScript for data processing.

The hardware component typically involves loading pre-written Arduino sketches rather than coding from scratch. Most implementation time focuses on configuring location-specific parameters and testing threshold values rather than complex technical work. Basic network troubleshooting skills help resolve connectivity issues.

Yes, GrowwStacks specializes in tailored automation solutions for aquaculture businesses. We can design systems integrating multiple data sources (water quality sensors, weather APIs, inventory systems), create custom hardware interfaces, and build comprehensive dashboards for farm management. Our solutions scale from small ponds to large commercial operations with multi-location monitoring.

We'll assess your specific fish species, pond configurations, existing equipment, and business goals to design an automation strategy that delivers measurable ROI. Implementation includes hardware selection, workflow development, staff training, and ongoing support to ensure the system adapts as your operation grows.

  • Integration with existing farm management software
  • Custom sensor networks for water quality monitoring
  • Multi-language notification systems for staff
  • Predictive analytics for growth and harvest planning

Need a Custom Aquaculture Automation?

This free template is a starting point. Our team builds fully tailored automation systems for your specific business needs.