Abhishek Patoliya

Abhishek Patoliya

Daily & On-demand Weather Reports with OpenWeatherMap to Telegram

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:

  • A working n8n instance (v1.0 or later recommended).
  • An account with OpenWeatherMap (free plan is sufficient).
  • A Telegram Bot created via @BotFather.
  • Your Telegram user ID or chat ID.

๐Ÿ” 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)

  • Runs daily at 8:00 AM IST.
  • Ideal for consistent, passive updates.

๐Ÿ“ Form Trigger (Manual)

  • Input ๐ŸŒ† City and ๐ŸŒ Country manually.
  • Instantly receive weather info in Telegram.

๐Ÿง  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

  • Schedule Trigger โ€“ Runs every day at 8:00 AM IST
  • Form Trigger โ€“ Accepts user input
  • Set Node โ€“ Default city/country values and date formatting
  • HTTP Request โ€“ Calls OpenWeatherMap API
  • Function Node โ€“ Converts timestamps to IST
  • Telegram Node โ€“ Sends formatted weather message

๐Ÿ“ฆ 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

  • Locate the Set Node (used before the API call).
  • Replace "Mumbai" and "IN" with your preferred location.
  • Or connect the Form Trigger input to allow dynamic values.

๐Ÿ•— Change Schedule Time

  • Open the Schedule Trigger node.
  • Adjust to your preferred time zone and daily timing (e.g., 7 AM IST).

๐Ÿงช Add Extra Data

  • OpenWeatherMap returns more fields like visibility, UV index, etc.
  • You can include these in your Telegram message via the Function Node and Set Node.

Do you want to automate your business?

Let's talk about your project