What This Workflow Does
This automated system continuously monitors weather conditions across Indonesia by fetching data from BMKG (Indonesia's Meteorological, Climatological, and Geophysical Agency). When specified weather thresholds are met (like heavy rainfall or extreme temperatures), it instantly sends customized alerts to your Telegram account or group.
For businesses operating in Indonesia's tropical climate, sudden weather changes can significantly impact operations. This automation eliminates the need for manual weather checks, providing timely warnings that help you make proactive decisions about logistics, staffing, and safety protocols.
How It Works
1. Data Fetching from BMKG
The workflow regularly queries BMKG's public API to retrieve the latest weather data for your specified locations. It checks for updates every 30 minutes by default (configurable), ensuring you receive timely information without overloading the API.
2. Condition Analysis
Each weather update is analyzed against your predefined alert thresholds. The system can monitor multiple parameters simultaneously - rainfall intensity, temperature extremes, wind speed, and humidity levels - triggering alerts only when conditions meet your specific criteria.
3. Telegram Notification
When alert conditions are met, the workflow formats a detailed message with relevant weather data and sends it through Telegram's bot API. Notifications include the location, weather condition, severity level, and recommended actions if configured.
Who This Is For
This automation is particularly valuable for:
- Agriculture businesses monitoring field conditions
- Logistics companies routing deliveries around weather disruptions
- Tourism operators managing outdoor activities
- Event planners needing weather contingency plans
- Local government agencies tracking regional conditions
- Individuals who want personalized weather alerts
What You'll Need
- An n8n instance (cloud or self-hosted)
- A Telegram account and bot token (free to create)
- The chat ID of your Telegram recipient(s)
- List of Indonesian locations to monitor (city/regency names or coordinates)
- Defined weather thresholds for alerts
Quick Setup Guide
- Download the JSON template file
- Import it into your n8n dashboard
- Configure the BMKG node with your target locations
- Set up your Telegram bot credentials
- Define your alert thresholds in the Function node
- Test the workflow with current weather data
- Activate the workflow scheduler
Key Benefits
Proactive Decision Making: Receive weather warnings before conditions worsen, giving you time to adjust plans and mitigate risks.
Location-Specific Alerts: Monitor multiple areas simultaneously with customized thresholds for each location based on your operational needs.
24/7 Monitoring: The automated system works around the clock, ensuring you never miss critical weather developments even outside business hours.
Reduced Manual Work: Eliminates the need for staff to constantly check weather forecasts, saving several hours per week.
Integration Ready: The workflow can be extended to trigger other automations like rescheduling systems, equipment shutdown protocols, or emergency notifications.
Pro tip: Combine this with Google Sheets to maintain a weather log for historical analysis and pattern recognition.