This project is a weather forecasting application that provides current weather conditions and forecasts. It integrates with the OpenWeatherMap API to fetch real-time data and displays weather information in a user-friendly interface. The app also includes features like location-based weather updates and weather alerts.
- Current weather conditions
- Weather forecasts
- Location-based weather updates
- Weather alerts
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd <project-directory>
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
- Install the required packages:
pip install -r requirements.txt
- Set the OpenWeatherMap API key as an environment variable:
export OPENWEATHERMAP_API_KEY=<your-api-key>
- Run the Flask application:
python app.py
- Open your web browser and go to
http://127.0.0.1:5000
to access the weather app.
- Enter a location in the input form to get the current weather conditions and forecasts for that location.
- The app will display the weather information in a user-friendly interface.
This project is licensed under the MIT License.