OpenWeatherMap Automate

OpenWeatherMap Automate provides real-time weather updates by integrating with OpenWeatherMap. Users can retrieve current temperature and feel-like conditions for any city via a simple webhook trigger, ensuring timely and accurate weather information for decision-making.

7/8/2025
4 nodes
Simple
webhooksimpleopenweathermapintegrationapi
Categories:
Simple WorkflowWebhook TriggeredWeb Scraping & Data Extraction
Integrations:
OpenWeatherMap

Target Audience

  • Developers looking to integrate weather data into applications.
    - Businesses needing real-time weather information for decision-making.
    - Data Analysts who require weather data for analysis and reporting.
    - Educators teaching automation and API integrations using n8n.
  • Problem Solved

    This workflow automates the process of retrieving weather information from OpenWeatherMap based on a city query. It allows users to access real-time weather data without manual intervention, saving time and effort in data collection.

    Workflow Steps

  • Webhook Trigger: The workflow starts when a GET request is received at the specified webhook path (/weather).
    - Set City: The city parameter is extracted from the query string of the webhook request. If no parameter is provided, it defaults to Berlin, Germany.
    - OpenWeatherMap Node: The workflow then calls the OpenWeatherMap API using the city name to fetch the current weather data.
    - Create Response: Finally, a response is generated that includes the temperature and feels-like temperature in Celsius, formatted as: "It has {temperature}°C and feels like {feels_like}°C in {city_name}".
  • Customization Guide

  • Change Default City: Modify the default city value in the Set City node to any desired location.
    - Adjust Webhook Path: Change the path parameter in the Webhook GET node to customize the endpoint.
    - Modify Response Format: Edit the response message in the Create Response node to include additional weather information or change the wording as needed.
    - Add More Nodes: Integrate additional nodes for further processing, such as sending the weather data to a database or triggering alerts based on specific weather conditions.