Skip to content

Latest commit

Β 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌧️ Telegram Rain Forecast Bot

A Python script that fetches tomorrow’s rain forecast using WeatherAPI and sends an alert to a Telegram chat via a bot.

πŸ’– Support This Project If you found this project useful or want to support its development, consider contributing:

πŸ‘‰ Support via Linktree

Every little bit helps! πŸ™Œ

πŸ“¦ Features

  • ☁️ Gets tomorrow’s rain forecast based on your city (latitude & longitude).
  • πŸ€– Sends formatted alerts to a Telegram bot chat.
  • 🌦️ Custom message formatting based on chance of rain.
  • πŸ•’ Designed for daily scheduled use (e.g., via GitHub Actions or cron).

πŸš€ How It Works

  1. Fetches weather forecast using WeatherAPI.
  2. Extracts the chance of rain for tomorrow.
  3. Crafts a friendly, emoji-based message.
  4. Sends it to your Telegram chat using the Telegram Bot API.

πŸ”§ Environment Variables

Before running the script, set the following environment variables:

Variable Name Description
OWM_API_KEY Your weatherapi.com API key
LAT_LONG Location in "latitude,longitude" format (e.g. xxxxx,xxxxx)
XLSXRAIN_BOT_TOKEN Your Telegram bot token (from @BotFather)
XLSXRAIN_CHAT_ID Chat ID where messages will be sent

πŸ“¬ Example Output

🌦️ Hmmm... Sky’s feeling moody 🌫️ β€” 35% chance of rain in IN YOUR AREA tomorrow!
Keep a hoodie handy just in case πŸŽ’β˜οΈ


πŸ“Œ Author

Sanjay XLSX
πŸ”— Linktree

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages