Täglicher Wetter-Bot
Dies ist ein Personal Productivity-Bereich Automatisierungsworkflow mit 9 Nodes. Hauptsächlich werden Set, Telegram, FormTrigger, HttpRequest, ScheduleTrigger und andere Nodes verwendet. Tägliche und on-demand Wetterberichte über OpenWeatherMap an Telegram senden
- •Telegram Bot Token
- •Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Verwendete Nodes (9)
Kategorie
{
"id": "EtMbMlSmiCmshLlm",
"meta": {
"instanceId": "00137a678c70b895ffbf480dac6a13dc8f053e854d987464a615f9ea30d97eee",
"templateCredsSetupCompleted": true
},
"name": "Daily Weather Bot",
"tags": [],
"nodes": [
{
"id": "d5d3309c-a736-4244-8973-ee8bb4df9e5e",
"name": "Notiz3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-20,
-100
],
"parameters": {
"width": 460,
"height": 140,
"content": "## Schedule Trigger (08:00 AM daily)\n ⮕ HTTP Request (OpenWeatherMap)\n ⮕ Set (Format message with weather + atmosphere + IST)\n ⮕ Telegram "
},
"typeVersion": 1
},
{
"id": "75c18662-b969-4f48-8a05-1429c2f81567",
"name": "Wetterdaten abrufen",
"type": "n8n-nodes-base.httpRequest",
"position": [
20,
340
],
"parameters": {
"url": "=https://api.openweathermap.org/data/2.5/weather?q={{ $json['City Name'] }},{{ $json['Country Name'] }}&APPID=key&units=metric",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "3b84cd51-bf28-4a3d-af86-f2acbe1bf097",
"name": "Wetternachricht formatieren",
"type": "n8n-nodes-base.set",
"position": [
240,
340
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "bb388fef-4f43-468e-bdb2-1a65c40f5194",
"name": "message",
"type": "string",
"value": "={{ \n (() => {\n const desc = $json.weather[0].description;\n const temp = $json.main.temp;\n const hum = $json.main.humidity;\n const pres = $json.main.pressure;\n const wind = $json.wind.speed;\n const city = $json.name;\n const country = $json.sys.country;\n\n // Convert UNIX timestamps to IST (Asia/Kolkata)\n const sunrise = new Date($json.sys.sunrise * 1000).toLocaleTimeString('en-IN', { timeZone: 'Asia/Kolkata' });\n const sunset = new Date($json.sys.sunset * 1000).toLocaleTimeString('en-IN', { timeZone: 'Asia/Kolkata' });\n\n // Format current date in IST\n const now = new Date();\n const dateStr = now.toLocaleDateString('en-IN', {\n weekday: 'long', year: 'numeric', month: 'long', day: 'numeric',\n timeZone: 'Asia/Kolkata'\n });\n\n return `📅 ${dateStr}\n🌤 Weather in ${city}, ${country}:\nCondition: ${desc}\nTemperature: ${temp}°C\n💧 Humidity: ${hum}%\n🌬 Wind Speed: ${wind} m/s\n🔼 Pressure: ${pres} hPa\n🌅 Sunrise: ${sunrise}\n🌇 Sunset: ${sunset}`;\n })()\n}}\n"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c601e86a-28d1-4cc1-b643-ca95e14573b2",
"name": "Send Telegram Message",
"type": "n8n-nodes-base.telegram",
"position": [
460,
340
],
"webhookId": "7285e616-e38d-4b2a-bb06-3cbbe1a65fb6",
"parameters": {
"text": "={{ $json.message }}",
"chatId": "telegramChatId",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "NuFto4S6tg5Lkuvu",
"name": "abhi today"
}
},
"typeVersion": 1.2
},
{
"id": "ebf95ad7-5156-4032-87a4-11e85eb0c582",
"name": "Bei Formularübermittlung",
"type": "n8n-nodes-base.formTrigger",
"position": [
-220,
220
],
"webhookId": "9f30d988-032d-41cc-993c-600414c5f5b3",
"parameters": {
"options": {},
"formTitle": "Daily Weather Bot",
"formFields": {
"values": [
{
"fieldLabel": "City Name"
},
{
"fieldLabel": "Country Name"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "2d425b50-6bfc-433d-8baf-172384bd3181",
"name": "Notiz2",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
720
],
"parameters": {
"height": 120,
"content": "## Telegram Output\n-Bot Setting"
},
"typeVersion": 1
},
{
"id": "3108b92c-6f97-4fee-b4bb-7140b2419f5d",
"name": "Notiz1",
"type": "n8n-nodes-base.stickyNote",
"position": [
20,
720
],
"parameters": {
"width": 150,
"height": 260,
"content": "## api calling \nopenweathermap"
},
"typeVersion": 1
},
{
"id": "a7031c56-09ac-4d05-95fa-9ff7d82a6314",
"name": "Notiz",
"type": "n8n-nodes-base.stickyNote",
"position": [
-380,
720
],
"parameters": {
"width": 200,
"height": 260,
"content": "## Daily Schudule \nTrigger Mode: Every Day\n\nTime:\nHour: 08\nMinute: 00\n\nThis means the workflow will run once per day at 08:00 AM."
},
"typeVersion": 1
},
{
"id": "a757108c-961a-4cd2-8fa4-e583c26120ea",
"name": "Zeitplan-Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-220,
460
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 8
}
]
}
},
"typeVersion": 1.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "bb82186d-3706-43b7-b69c-1a526777461d",
"connections": {
"75c18662-b969-4f48-8a05-1429c2f81567": {
"main": [
[
{
"node": "3b84cd51-bf28-4a3d-af86-f2acbe1bf097",
"type": "main",
"index": 0
}
]
]
},
"a757108c-961a-4cd2-8fa4-e583c26120ea": {
"main": [
[
{
"node": "75c18662-b969-4f48-8a05-1429c2f81567",
"type": "main",
"index": 0
}
]
]
},
"ebf95ad7-5156-4032-87a4-11e85eb0c582": {
"main": [
[
{
"node": "75c18662-b969-4f48-8a05-1429c2f81567",
"type": "main",
"index": 0
}
]
]
},
"3b84cd51-bf28-4a3d-af86-f2acbe1bf097": {
"main": [
[
{
"node": "c601e86a-28d1-4cc1-b643-ca95e14573b2",
"type": "main",
"index": 0
}
]
]
}
}
}Wie verwende ich diesen Workflow?
Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.
Für welche Szenarien ist dieser Workflow geeignet?
Fortgeschritten - Persönliche Produktivität
Ist es kostenpflichtig?
Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.
Verwandte Workflows
Abhishek Patoliya
@abhishekpatoliyaExperienced n8n developer specializing in business process automation and system integrations. I've helped dozens of companies automate their workflows, from CRM synchronization to marketing automation pipelines. Whether you need a simple trigger-based workflow or a complex multi-branch automation, I can bring your ideas to life.
Diesen Workflow teilen