This application allows you to view the following weather details for any city you desire, thanks to the OpenWeatherMap API:
- Current weather condition (sunny, rainy, cloudy)
- Current temperature
- Minimum and maximum temperature
- Sunrise and sunset times
- Humidity percentage
- Wind speed in m/s
These instructions will guide you on how to run this application on your local machine.
- Python 3 installed on your machine.
- An API key from OpenWeatherMap.
- Clone the repository to your local machine.
git clone https://github.com/AlexGioffDev/weather- Navigate to the project directory.
cd weather- Install the required Python packages using the requirements.txt file
pip install -r requirements.txt4.Create a .env file in the weather_main directory and add your OpenWeatherMap API key in the following format:
API_KEY_WEATHER=<your_api_key>5.Navigate to the weather_main directory in your terminal and run the following command to start the server:
python3 manage.py runserver