Workflow: Openweathermap Webhook Create

Workflow Details

Download Workflow
{
    "nodes": [
        {
            "name": "OpenWeatherMap",
            "type": "n8n-nodes-base.openWeatherMap",
            "position": [
                900,
                300
            ],
            "parameters": {
                "cityName": "={{ $json[\"city\"] }}",
                "language": "en"
            },
            "credentials": {
                "openWeatherMapApi": ""
            },
            "typeVersion": 1
        },
        {
            "name": "Webhook GET",
            "type": "n8n-nodes-base.webhook",
            "position": [
                500,
                300
            ],
            "webhookId": "a31f0bbd-a583-470e-9a1e-29a9ce778122",
            "parameters": {
                "path": "weather",
                "options": {
                    "responsePropertyName": "data"
                },
                "responseMode": "lastNode"
            },
            "typeVersion": 1
        },
        {
            "name": "Set City",
            "type": "n8n-nodes-base.set",
            "position": [
                700,
                300
            ],
            "parameters": {
                "values": {
                    "string": [
                        {
                            "name": "city",
                            "value": "={{ $json[\"query\"][\"parameter\"] || 'berlin,de' }}"
                        }
                    ]
                },
                "options": []
            },
            "typeVersion": 1
        },
        {
            "name": "Create Response",
            "type": "n8n-nodes-base.set",
            "position": [
                1100,
                300
            ],
            "parameters": {
                "values": {
                    "string": [
                        {
                            "name": "data",
                            "value": "=It has {{$json[\"main\"][\"temp\"]}}\\xE2\\x84\\x83  and feels like {{$json[\"main\"][\"feels_like\"]}}\\xE2\\x84\\x83  in {{$json[\"name\"]}}"
                        }
                    ]
                },
                "options": []
            },
            "typeVersion": 1
        }
    ],
    "connections": {
        "Set City": {
            "main": [
                [
                    {
                        "node": "OpenWeatherMap",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Webhook GET": {
            "main": [
                [
                    {
                        "node": "Set City",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "OpenWeatherMap": {
            "main": [
                [
                    {
                        "node": "Create Response",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

Stickynote Gmail Create Triggered
View
Telegram Wait Send Webhook
View
Create AI-Ready Vector Datasets for LLMs with Bright Data, Gemini & Pinecone
View
HTTP Schedule Update Webhook
View
Remove Advanced Background from Google Drive Images
View
Streamline data from an n8n form into Google Sheet and Airtable
View
Functionitem Manual Import Scheduled
View
HTTP Htmlextract Create Webhook
View
Splitout Code Create Triggered
View
#️⃣Nostr #damus AI Powered Reporting + Gmail + Telegram
View