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
- Go to https://openweathermap.org/api
- Sign up and verify your account.
- Navigate to API Keys in your account dashboard.
- Copy your API key (used later in the HTTP Request node).
๐ค Telegram Bot
-
Open @BotFather in Telegram.
-
Run /newbot
and follow the prompts:
- Choose a name and username for your bot.
- You'll get a bot token (copy this).
-
Start a chat with your new bot to activate it.
-
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
-
Trigger Activated (Scheduled or Form)
-
City & Country fetched (default or from form)
-
HTTP Request sent to OpenWeatherMap with API key
-
Weather Data Parsed & Formatted :
- ๐
Current Date
- ๐ City & Country
- ๐ค๏ธ Weather Description
- ๐ก๏ธ Temperatures (ยฐC)
- ๐ง Humidity (%)
- ๐ฌ๏ธ Wind Speed โโ(m/s)
- ๐ผ Atmospheric Pressure
- ๐
Sunrise Time (IST)
- ๐ Sunset Time (IST)
-
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 (eg, 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 .