Weather Pulse

Automated commuter weather updates delivered four times daily via Telegram. Combines real-time weather data, heat index calculations, and beautiful infographic delivery — all orchestrated with n8n.

n8n OpenWeather API Telegram HTML-to-Image
WeatherPulse infographic preview
4
Daily Updates
°C
Heat Index
1
Infographic
📲
Telegram Delivery

Key Features

Every component of the workflow is designed for reliability, clarity, and zero manual intervention

Schedule Trigger

Runs at 8AM, 12PM, 4PM, and 8PM daily — aligned with commute windows so you always get a heads-up before heading out.

🌐

Weather Data

Fetches real-time data from OpenWeather API including temperature, humidity, conditions, wind speed, and sunrise/sunset times.

🌡️

Heat Index

Calculates feels-like temperature by combining actual temperature and humidity — critical for tropical and high-humidity climates.

🖼️

Infographic Builder

Creates a visually rich weather summary using HTML and CSS, styled with weather icons, color-coded temperature bands, and city info.

✈️

Telegram Delivery

Converts the infographic to a high-quality image using HTML-to-Image and sends it directly to your Telegram chat via bot API.

Tech Stack

Lightweight, serverless, and fully orchestrated inside n8n

n8n
Workflow automation — scheduling, HTTP requests, data transformation, and delivery
OpenWeather API
Real-time weather data including temperature, humidity, wind, and conditions
JavaScript
Inline code nodes for heat index calculation and data formatting
HTML-to-Image
Converts the HTML/CSS infographic into a shareable PNG image
Telegram Bot API
Sends the weather infographic image directly to a Telegram chat or channel
// n8n Code Node — Heat Index Calculation const temp = $input.first().json.main.temp; const humidity = $input.first().json.main.humidity; // Rothfusz regression formula let hi = -8.785 + 1.611*temp + 2.339*humidity - 0.146*temp*humidity; return [{ json: { feelsLike: Math.round(hi) } }];

How It Works

Four automated steps from trigger to your Telegram notification

1

Scheduled Trigger

n8n Schedule Trigger fires at 8AM, 12PM, 4PM, and 8PM — covering morning, midday, afternoon, and evening commute windows.

2

Fetch Weather

HTTP Request node calls the OpenWeather API with your city and API key, returning current temperature, humidity, wind, and conditions.

3

Calculate Heat Index

Code node applies the Rothfusz regression formula to compute feels-like temperature from actual temp and humidity data.

4

Build & Send Infographic

HTML template is rendered with live data, converted to an image via HTML-to-Image, and sent to your Telegram chat using the Bot API.

Never Get Caught in the Rain

Explore the n8n workflow JSON or adapt it for your own city and commute schedule