Python · Shipped
A Streamlit app showing 1–5 day weather forecasts with temperature trends and sky conditions from OpenWeatherMap.
A Streamlit-based web application that provides weather forecasts for any location worldwide. The app displays temperature trends and sky conditions for up to 5 days in advance.
git clone https://github.com/AhmadTawil1/weather-forecast.git
cd weather-forecast
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
.env file in the project root and add your OpenWeatherMap API key:OPENWEATHER_API_KEY=your_api_key_here
streamlit run main.py
Open your web browser and navigate to the URL shown in the terminal (usually http://localhost:8501)
Enter a location name and select the forecast period and data type (Temperature or Sky)
main.py: Main application file with Streamlit interfacebackend.py: Backend logic for fetching weather dataimages/: Directory containing weather condition iconsrequirements.txt: Project dependencies.env: Environment variables (not tracked in git)Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.