This app provides dynamic weather forecasting using the OpenWeatherMap API. Users can get a weather forecast for a location of their choice.
- Set the number of days for the forecast.
- View temperature in °C.
- View visibility and sky conditions with images.
Ensure you have Python and pip installed.
Install the required libraries: pip -r install requirements.txt
Clone the repository:
- git clone https://github.com/ChrisSamHarris/WeatherForecastApp.git
- cd WeatherForecastApp
export WEATHER_API_KEY='your_openweathermap_api_key'
Note: Replace your_openweathermap_api_key with your actual OpenWeatherMap API key.
streamlit run home.py
- Launch the app.
- Enter the location you want to view the forecast for.
- Select the number of days for the forecast using the slider.
- Choose whether to view temperature or visibility and sky conditions.
- The forecast will be displayed once you submit your location.
home.py: Contains the Streamlit user interface and main application logic.
backend.py: Contains the function to retrieve data from OpenWeatherMap API.
requirements.txt: Contains all required libraries and their dependencies.