Clima is a Telegram bot that provides weather updates for users' locations. It utilizes the OpenWeatherMap API to fetch weather data and sends formatted messages containing various weather information.
- Weather Updates: Users can access weather updates for their location by using the
/weather
command. - Location Guidance: The bot guides the user to enter their location.
- Weather Data: Utilizing the user's location, the bot fetches weather data from the OpenWeatherMap API.
- Formatted Message: The bot sends the user a formatted message containing the following weather information:
- Weather description (e.g., cloudy, sunny)
- Temperature (currently in Kelvin)
- Maximum and minimum temperature (Kelvin)
- Wind speed (meters per second)
- Date and time when the weather information was retrieved
To use Clima, follow these steps:
- Start a conversation with the Clima bot on Telegram.
- Use the
/weather
command to initiate weather updates. - Follow the bot's guidance to enter your location. Make sure the entered location spelling is correct.
- Receive a formatted message with the latest weather information for your location.
To run Clima locally or deploy it to your own server, follow these steps:
- Clone this repository to your local machine.
- Install the required dependencies using
pip install -r requirements.txt
. - Obtain an API key from OpenWeatherMap by signing up at OpenWeatherMap and replace
YOUR_API_KEY
in theconfig.py
file with your API key. - Run the bot using
python Clima_5.py
.