Skip to main content
AltFTool original, tested in n8nPersonal Productivity

Rain forecast alert to Telegram - n8n workflow template

Only hear about the weather when it matters. Every morning at 06:00 the workflow gets today's hourly forecast from the free Open-Meteo API (no key required) for the place you choose. A Code node looks at the rain probability for each hour and picks out the hours at or above…

Written and tested by AltFTool

Starts on
On a schedule
Nodes
8 nodes
Level
Beginner
Setup
About 8 min

Workflow preview

How this workflow runs

  1. 1

    Run manually

    Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.

  2. 2

    Every morning at 6

    Starts the workflow automatically on a schedule (cron / fixed interval).

  3. 3

    Alert settings

    Sets or transforms workflow data — prepares, renames, or injects fields before the next step.

  4. 4

    Get hourly forecast

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  5. 5

    Find rainy hours

    Runs custom JavaScript to transform or manipulate the data flowing through the workflow.

  6. 6

    Rain expected?

    Branches the workflow based on a true/false condition.

  7. 7

    Send rain alert

    Sends or receives messages through a Telegram bot.

  8. 8

    Dry day

    A pass-through step that does nothing — used to organize the flow.

Overview and setup

How it works

Only hear about the weather when it matters. Every morning at 06:00 the workflow gets today's hourly forecast from the free Open-Meteo API (no key required) for the place you choose.

A Code node looks at the rain probability for each hour and picks out the hours at or above your threshold, along with the expected rainfall in millimetres. It also records the day's peak probability. If any hour qualifies, an IF node sends a Telegram message such as "Rain likely in Manchester today (peak 70%)" followed by the rainy hours. On dry days the workflow ends quietly on a No Op node, so you are not sent a message you do not need.

Set up steps

  1. Import the workflow and open Alert settings.
  2. Set place, latitude, longitude and threshold (a percentage, 50 by default).
  3. In Telegram, create a bot with BotFather and copy its token. Add it as a Telegram credential in Send rain alert.
  4. Send your bot a message, find your chat ID (for example with a Telegram Trigger test or a user-info bot) and paste it into Chat ID.
  5. Click Execute workflow to test, then activate it.

Customise it

  • Lower or raise the threshold for more or fewer alerts.
  • Add snowfall or wind_gusts_10m to the hourly variables for other alerts.
  • Send to a group chat so the whole household or team gets the warning.
  • Swap Telegram for SMS, email or a push notification service.

n8n nodes used (8 types)

What every node does (8)
  • Run manually (Manual Trigger)Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.
  • Every morning at 6 (Schedule Trigger)Starts the workflow automatically on a schedule (cron / fixed interval).
  • Alert settings (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Get hourly forecast (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Find rainy hours (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Rain expected? (If)Branches the workflow based on a true/false condition.
  • Send rain alert (Telegram)Sends or receives messages through a Telegram bot.
  • Dry day (No Op)A pass-through step that does nothing — used to organize the flow.

FAQ

Rain forecast alert to Telegram: questions

How do I import the "Rain forecast alert to Telegram" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Rain forecast alert to Telegram" use?

It uses Manual Trigger, Schedule Trigger, Set, HTTP Request, Code and If, plus 2 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Rain forecast alert to Telegram"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Personal Productivity. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.