⚡ Daily & on-demand weather reports with OpenWeatherMap to Telegram

137 views · ⚡ Personal Productivity

Description

This powerful n8n automation sends you daily weather updates directly to your Telegram chat using live data from OpenWeatherMap. It supports automatic daily updates and manual lookups via form input.


✅ Prerequisites

Before you begin, make sure you have:


🔐 API & Bot Setup

🧩 OpenWeatherMap API

  1. Go to https://openweathermap.org/api
  2. Sign up and verify your account.
  3. Navigate to API Keys in your account dashboard.
  4. Copy your API key (used later in the HTTP Request node).

🤖 Telegram Bot

  1. Open @BotFather in Telegram.

  2. Run /newbot and follow the prompts:

    • Choose a name and username for your bot.
    • You’ll get a bot token (copy this).
  3. Start a chat with your new bot to activate it.

  4. To get your Telegram User ID, use @userinfobot or an n8n Telegram Trigger node.


🔄 Trigger Options

⏰ Schedule Trigger (Automatic)

📝 Form Trigger (Manual)


🧠 How the Flow Works

  1. Trigger Activated (Scheduled or Form)

  2. City & Country fetched (default or from form)

  3. HTTP Request sent to OpenWeatherMap with API key

  4. Weather Data Parsed & Formatted:

    • 📅 Current Date
    • 📍 City & Country
    • 🌤️ Weather Description
    • 🌡️ Temperature (°C)
    • 💧 Humidity (%)
    • 🌬️ Wind Speed (m/s)
    • 🔼 Atmospheric Pressure
    • 🌅 Sunrise Time (IST)
    • 🌇 Sunset Time (IST)
  5. Message Sent to Telegram


🧰 Nodes Used


📦 Example Telegram Output

📅 Wednesday, 10 July 2025  
🌤 Weather in Mumbai, IN:  
Condition: Clear sky  
Temperature: 30°C  
💧 Humidity: 70%  
🌬 Wind Speed: 3 m/s  
🔼 Pressure: 1013 hPa  
🌅 Sunrise: 5:57:12 AM  
🌇 Sunset: 6:53:45 PM

🛠️ Customization Tips

🏙️ Change Default City/Country

🕗 Change Schedule Time

🧪 Add Extra Data


🔗 Nodes Used

HTTP Request, Telegram, Schedule Trigger, n8n Form Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup