A telegram bot that can tell you the weather of any given location
Pre-requirements:
- Basic telegram bot API knowledge
- A bot token / API from botfather
- Weather API from https://www.weatherapi.com/WeatherAPI.com
How to use:
Local Dev:
- Clone the repo
- Create a Python dev environment using venv. Select it (/venv/scripts/python.exe) as the interpreter
- Create a file /.env for environment variables using the template
- Add your API keys for relevant features to the .env file
- Activate your venv python
- Navigate to the directory where you cloned the repository
- Install the requirements
pip install --no-cache-dir -r requirements.txt
- Run the command:
python app/main.py
Docker Container
-
Pull the image
docker pull dmjiwan/weatherappv3:latest
docker pull dmjiwan/weatherappv3:arm64
for arm-based systems ( Raspberry Pi )OR Using Github Repo:
docker pull ghcr.io/deep-jiwan/weatherappv3:ghlatest
-
Run the image in a container while making sure to add the following environment variables and associated API keys
tele_logger_token
tele_logger_chat_id
weather_api_token
tele_chat_bot_token
-
The service is ready to use
Powered by https://www.weatherapi.com/ WeatherAPI.com