Automate Weather Data Retrieval and Enrichment
detail.loadingPreview
Seamlessly integrate real-time weather data into your applications. This workflow automatically fetches current weather conditions for any specified city and enriches it with key details like temperature, humidity, and wind speed for further processing.
About This Workflow
This n8n workflow automates the process of gathering and structuring current weather information from the OpenWeatherMap API. It begins by receiving a city name via a webhook. This city name is then used to query the OpenWeatherMap API, retrieving a comprehensive set of weather data. Finally, a 'Set' node intelligently extracts and organizes critical information such as temperature in Celsius, humidity percentage, wind speed, a textual description of the weather, and the city and country name. This processed data is then ready for use in subsequent workflow steps, such as logging, analysis, or triggering other actions.
Key Features
- Real-time weather data retrieval from OpenWeatherMap.
- Dynamic city selection via webhook input.
- Automatic extraction of temperature, humidity, wind speed, and weather description.
- Consolidated city and country information.
- Ready for seamless integration with other n8n nodes.
How To Use
- Set up the Webhook Node: Configure the 'Webhook' node to receive incoming requests. Define the
pathand ensureresponseDatais set to 'allEntries' andresponseModeto 'lastNode' for optimal data flow. - Configure the OpenWeatherMap Node: In the 'OpenWeatherMap' node, use an expression
={{$json["body"]["city"]}}to dynamically set thecityNameparameter, expecting the city name in the incoming webhook payload'sbody. - Map and Enrich Data with the Set Node: Within the 'Set' node, define new parameters to capture the desired weather details. Use expressions like
={{$json["main"]["temp"]}}for temperature,={{$json["wind"]["speed"]}}for wind speed, and={{$json["weather"][0]["description"]}}for the weather description. Ensure thecityparameter combines the city and country using={{$json["name"]}}, {{$json["sys"]["country"]}}.
Apps Used
Workflow JSON
{
"id": "65b5f27f-3f3a-415e-bb9d-c2c45f2c6186",
"name": "Automate Weather Data Retrieval and Enrichment",
"nodes": 28,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 65b5f27f-3f3a...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.