Skip to main content

Weather alerts via SMS (OpenWeather + Twilio)

Workflow preview

Workflow preview
100%
Weather alerts via SMS (OpenWeather + Twilio) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

️ Weather Alerts via SMS (OpenWeather + Twilio) This workflow checks the current weather and forecast every 6 hours using the OpenWeather API , and automatically sends an SMS alert via Twilio if ...

Best for

  • Personal Productivity automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.cron, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.twilio

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by David Olusola.

Original n8n.io source

1.1 Workflow description

Title
Weather alerts via SMS (OpenWeather + Twilio)
Workflow name
Weather alerts via SMS (OpenWeather + Twilio)

🌤️ Weather Alerts via SMS (OpenWeather + Twilio)

This workflow checks the current weather and forecast every 6 hours using the OpenWeather API, and automatically sends an SMS alert via Twilio if severe conditions are detected. It’s great for keeping teams, family, or field workers updated about extreme heat, storms, or snow.


⚙️ How It Works

  1. Check Every 6 Hours

    • A Cron node triggers the workflow every 6 hours.
    • Frequency can be adjusted based on your needs.
  2. Fetch Current Weather & Forecast

    • Calls OpenWeather API for both current conditions and the 24-hour forecast.
    • Retrieves temperature, precipitation, wind speed, and weather descriptions.
  3. Analyze Weather Data

    • A Code node normalizes the weather data.
    • Detects alert conditions such as:
      • Extreme heat (≥95°F)
      • Extreme cold (≤20°F)
      • Severe storms (thunderstorm, tornado)
      • Rain or snow
      • High winds (≥25 mph)
    • Also checks upcoming forecast for severe weather in the next 24 hours.
  4. Alert Needed?

    • If no severe conditions → workflow stops.
    • If alerts exist → proceed to SMS formatting.
  5. Format SMS Alert

    • Prepares a compact, clear SMS message with:
      • Current conditions
      • Detected alerts
      • Next 3 hours forecast preview
    • Example:
      🌤️ WEATHER ALERT - New York, US
      NOW: 98°F, clear sky
      🚨 ALERTS (1): 🔥 EXTREME HEAT: 98°F (feels like 103°F)
      
      📅 NEXT 3 HOURS:
      1 PM: 99°F, sunny
      2 PM: 100°F, sunny
      3 PM: 100°F, partly cloudy
      
  6. Send Weather SMS

    • Twilio sends the SMS to configured phone numbers.
    • Supports multiple recipients.
  7. Log Alert Sent

    • Logs the alert type, urgency, and timestamp.
    • Useful for auditing and troubleshooting.

🛠️ Setup Steps

1. OpenWeather API

  • Sign up at openweathermap.org.
  • Get a free API key (1000 calls/day).
  • Update the API key and location (city or lat/long) in the HTTP Request nodes.

2. Twilio Setup

  • Sign up at twilio.com.
  • Get your Account SID & Auth Token.
  • Buy a Twilio phone number (≈ $1/month).
  • Add Twilio credentials in n8n.

3. Recipients

  • In the Send Weather SMS node, update phone numbers (format: +1234567890).
  • You can add multiple recipients.

4. Customize Alert Conditions

  • Default alerts: rain, snow, storms, extreme temps, high winds.
  • Modify the Analyze Weather Data node to fine-tune conditions.

📲 Example SMS Output

🌤️ WEATHER ALERT - New York, US NOW: 35°F, light snow 🚨 ALERTS (2): ❄️ SNOW ALERT: light snow 💨 HIGH WINDS: 28 mph

📅 NEXT 3 HOURS: 10 AM: 34°F, snow 11 AM: 33°F, snow 12 PM: 32°F, overcast

⏰ Alert sent: 08/29/2025, 09:00 AM


⚡ With this workflow, you’ll always know when bad weather is on the way — keeping you, your team, or your customers safe and informed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Setup Instructions

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Check Every 6 Hours

Type / Role
n8n-nodes-base.cron - cron
Config choices
Version 1

Block 3 - Get Current Weather

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 4 - Get Weather Forecast

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 5 - Analyze Weather Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Alert Needed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 7 - Format SMS Alert

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Send Weather SMS

Type / Role
n8n-nodes-base.twilio - twilio
Config choices
Version 1

Block 9 - Log Alert Sent

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Weather alerts via SMS (OpenWeather + Twilio)
Complexity intermediate
Nodes 9
Categories Personal Productivity, Multimodal AI
Author David Olusola
Published 29 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8040/8040.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Weather alerts via SMS (OpenWeather + Twilio) do?

️ Weather Alerts via SMS (OpenWeather + Twilio) This workflow checks the current weather and forecast every 6 hours using the OpenWeather API , and automatically sends an SMS alert via Twilio if ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, Multimodal AI use case.