Skip to content

cjcbusatto/berlin-weather-telegram

Repository files navigation

Berlin Weather on Telegram

Introduction

This bot sends a message everyday to me through Telegram informing the temperature of Berlin. The message is triggered by Github Actions everyday around 7am (CEST).

Usage

If you want to use it on a different location, simply follow the steps:

  1. Fork the repository
  2. Create a token on Open Weather API
  3. Create a Telegram Token
  4. Discover your Chat ID on Telegram, in order to let the bot send you private messages
  5. Discover your ZIP Code and Country Code
  6. Create the following Secrets on your repository
Variable name Type Comment
OPEN_WEATHER_API_TOKEN string Register on OpenWeatherAPI to receive your token
TELEGRAM_TOKEN string Documentation available here
TELEGRAM_CHAT_ID number Your own chat ID, in order let your bot send you a PM. Talk to @get_id_bot on Telegram to discover it
LOCATION string A string in the format ZIPCODE,COUNTRYCODE e.g. 10247,de
  1. Edit the action.yml to the desired time to receive the message. Github Actions works using UTC, therefore, you need to adapt the value to your timezone.
  2. Enjoy!

Acknowledgement

This project is based on the Github Actions video from BYTESIZED channel.

About

A bot to send the weather forecast of Berlin. Github Actions triggers the script daily based on a cronjob

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published