Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Weather Project - PLP Python

Overview

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.

Features

  • 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.

Tech Stack

  • 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.

Installation

To run this project locally, follow these steps:

1. Clone the repository

git clone https://github.com/Josephatmusyoka/Weather-Project-PLP-python.git

2. Navigate into the project directory

cd Weather-Project-PLP-python

3. Set up a virtual environment

python -m venv venv

4. Activate the virtual environment

On Windows:

venv\Scripts\activate

On macOS/Linux:

source venv/bin/activate

5. Install dependencies

pip install -r requirements.txt

6. Set up your OpenWeatherMap API Key

Sign 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.

7. Run the application

flask run

Navigate to http://127.0.0.1:5000/ in your browser to view the weather information.

Contributing

  1. Fork this repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add your feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages