Skip to content

mezgoodle/weather-bot

Repository files navigation

Weather bot

Hi! This is the bot in Telegram for showing weather information. Built with Node.js.

link to bot

Motivation

I used to work with OpenWeatherMap API. It was in a projects with React and Django. Later I decided to make a bot that would show actual weather anywhere. My eye immediately fell on Telegram as it is a beautiful eco system with a good one API. I have chosen Python because I wanted to practice more with it.

Screenshots

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 8

Screenshot 4

Screenshot 6

Screenshot 7

Tech framework used

Built with

Features

  • /now city - get weather information in city.

  • /week city - get weather information in city for 7 days.

  • /lang lang_code - set language information in database for getting main weather info in native language

  • /set city - sets in database selected city.

  • /w - get weather information in city by language that you set in database for 3 days.

  • /location - get actual information in the city by geographical point.

Installation

  1. Clone this repository
git clone https://github.com/mezgoodle/weather-bot.git
  1. Use the package manager pip to install dependencies.
pip install -r requirements.txt
  1. Fill the variables in config.py

  2. Type in terminal:

python bot.py

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Credits

Repositories and links which inspired me to build this project:

Contact

If you have questions write me here:

License

GitHub

MIT © mezgoodle