Automate Real-Time Weather Updates with n8n and OpenWeatherMap

Discover how to automate fetching and formatting real-time weather data using n8n’s workflow with OpenWeatherMap. This tutorial helps eliminate manual weather checks by delivering instant, customized updates for any city.
webhook
openWeatherMap
set
Workflow Identifier: 1610
NODES in Use: Webhook, OpenWeatherMap, Set
Automate weather updates with n8n and OpenWeatherMap

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow gets weather data fast for any city named. It solves the problem of wasting time by searching many sites for weather info. When triggered, it fetches temperature, humidity, wind speed, and a short weather description. Users receive a neat JSON with city name and country code. This way, users get quick, clear weather data without opening any site.


Inputs, Processing Steps, and Output

Inputs

  • The workflow starts from a Webhook node. It gets a city name sent as JSON in a POST request.

Processing Steps

  • The OpenWeatherMap node uses the city name from the webhook input to call OpenWeatherMap API.
  • The Set node takes data from the API and extracts only these fields:
    • Current temperature in Celsius
    • Humidity percent
    • Wind speed
    • Weather description
    • City and country code
  • The workflow keeps only these fields for easy reading.

Output

The final output is clean JSON with weather data and location, ready for apps or reports.


Who Should Use This Workflow

This automation fits users who want fast and reliable weather info by city without checking many websites.

It is ideal for planners, event managers, or any people needing weather data quickly and clearly.


Tools and Services Used

  • n8n: For building and running the workflow.
  • OpenWeatherMap API: Provides weather data by city.
  • Webhook: Receives city names to start the workflow.
  • Set node: Formats and cleans up the weather data output.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor where you want to use the workflow.
  3. Click on the main menu, then select Import from File.
  4. Locate the downloaded workflow file and import it.

Step 2: Configure Required Settings

  1. Go to Webhook node, check the webhook URL path or copy the full webhook URL.
  2. Open n8n credentials and add your OpenWeatherMap API Key if not done already.
  3. Review the OpenWeatherMap node to ensure the city name input uses this expression:
{{ $json["body"]["city"] }}

This means the node reads the city name from webhook POST JSON body.

  1. Check Set node to confirm it extracts these fields only: tempC, humidity, windspeed, description, city.

Step 3: Test the Workflow

  1. Activate the workflow.
  2. Send a POST request to the webhook URL with this example JSON body:
{
  "city": "London"
}

Use tools like Postman or curl for the test.

You should get JSON weather data for London in the output.

Step 4: Activate for Production

  1. After testing, activate the workflow for your live use.
  2. Keep the webhook URL handy to send city names from other apps or scripts.
  3. Monitor execution logs in n8n for any errors.

If running on your own server, consider secure self-host n8n setup for better control.


Common Customizations

  • Change temperature to Fahrenheit by adding unit parameter to the API call.
  • Add more weather info fields like pressure or cloudiness in the Set node.
  • Use a Cron node to trigger weather checks automatically on schedule.

How to Handle Edge Cases and Failures

  • If webhook does not respond, check the Webhook node path and make sure workflow is active.
  • If OpenWeatherMap API fails, verify the API Key and check usage limits.
  • Test with different city names to be sure API returns valid data.

Summary of Benefits

✓ Saves time by automating weather lookups

✓ Provides accurate and clear weather data for any city

✓ Easy to integrate via webhook in other apps

✓ Reduces risk of errors from manual searching

✓ Can be extended with alerts or scheduling


Automate weather updates with n8n and OpenWeatherMap

Visit through Desktop to Interact with the Workflow.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.