Weather Bot - The Weather In Your City
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
TG-Weather Bot requires Python v3+ to run.
Install the dependencies and devDependencies and start the server.
$ sudo apt install python3-pip
$ pip3 install virtualenv
$ cd ~ && git clone https://github.com/Hakob/TG-WeatherBot.git
$ cd TG-WeatherBot
$ virtualenv --python=python3 venv
$ source bin/activate
(venv)$ pip3 install -r requirements.txt
(venv)$ python3 main.py # Before this command, make sure that you provide
# weather_api_key and tg_token in main.py
For deployment this bot requires two token-variables, which we'll apply in the main.py file. Add additional notes about how to bring these token respectively for: weather_api_key and tg_token variables. (See 10, 11 lines in main.py)
- Requests - HTTP for Humans
- OpenWeatherMap - Open Weather Map API
- TG Bots - Telegram Bot API
This project is licensed under the MIT License - see the LICENSE.md file for details