Robot météo quotidien

Intermédiaire

Ceci est unPersonal Productivityworkflow d'automatisation du domainecontenant 9 nœuds.Utilise principalement des nœuds comme Set, Telegram, FormTrigger, HttpRequest, ScheduleTrigger. Envoyer des rapports météo quotidiens et à la demande sur Telegram via OpenWeatherMap

Prérequis
  • Token Bot Telegram
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "EtMbMlSmiCmshLlm",
  "meta": {
    "instanceId": "00137a678c70b895ffbf480dac6a13dc8f053e854d987464a615f9ea30d97eee",
    "templateCredsSetupCompleted": true
  },
  "name": "Daily Weather Bot",
  "tags": [],
  "nodes": [
    {
      "id": "d5d3309c-a736-4244-8973-ee8bb4df9e5e",
      "name": "Note adhésive3",
      "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": "Obtenir les données météo",
      "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": "Formater le message météo",
      "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": "Envoyer le message Telegram",
      "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": "À la soumission du formulaire",
      "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": "Note adhésive2",
      "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": "Note adhésive1",
      "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": "Note adhésive",
      "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": "Déclencheur planifié",
      "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
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Productivité personnelle

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds9
Catégorie1
Types de nœuds6
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
Abhishek Patoliya

Abhishek Patoliya

@abhishekpatoliya

Experienced 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.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34