The Weather Project is a Python-based application that provides real-time weather information and a daily forecast for a given city. This project uses the OpenWeatherMap API to fetch weather data, which includes temperature, humidity, pressure, wind speed, and weather descriptions.
- Real-time Weather Information: Displays the current weather for a city.
- Daily Forecast: Provides weather forecasts for the upcoming days.
- Weather Icons: Visual representation of the weather conditions.
- Search Functionality: Allows users to search for weather details of a specific city.
- Python: Core programming language.
- Flask: Web framework for building the web application.
- HTML, CSS, JavaScript: Frontend technologies used for the user interface.
- OpenWeatherMap API: Provides real-time and forecast weather data.
- Git: Version control to manage codebase.
To run this project locally, follow these steps:
git clone https://github.com/Josephatmusyoka/Weather-Project-PLP-python.gitcd Weather-Project-PLP-pythonpython -m venv venvvenv\Scripts\activatesource venv/bin/activatepip install -r requirements.txtSign up at OpenWeatherMap and obtain an API key. Once you have the API key, add it to your environment variables or update the application to include it.
flask runNavigate to http://127.0.0.1:5000/ in your browser to view the weather information.
- Fork this repository.
- Create a new branch (
git checkout -b feature/your-feature). - Commit your changes (
git commit -am 'Add your feature'). - Push to the branch (
git push origin feature/your-feature). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Name: Mutua Josephat Musyoka
- Email: musypk@gmail.com
- GitHub: @Josephatmusyoka