Skip to content

Python and Streamlit web application for weather forecasting. Providing the weather forecast and relevant data visualisation. Supported in the backend with openweathermap.org.

Notifications You must be signed in to change notification settings

ChrisSamHarris/WeatherForecastApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Weather Forecast App 🌦️

This app provides dynamic weather forecasting using the OpenWeatherMap API. Users can get a weather forecast for a location of their choice.

DynamicWeatherForecast Temperature Image

Features

  • Set the number of days for the forecast.
  • View temperature in °C.
  • View visibility and sky conditions with images.

Installation

Prerequisites

Ensure you have Python and pip installed. Install the required libraries: pip -r install requirements.txt

Setup

Clone the repository:

Set up the environment variable for the OpenWeatherMap API key:

export WEATHER_API_KEY='your_openweathermap_api_key' Note: Replace your_openweathermap_api_key with your actual OpenWeatherMap API key.

Run the app:

  • streamlit run home.py

Usage

  1. Launch the app.
  2. Enter the location you want to view the forecast for.
  3. Select the number of days for the forecast using the slider.
  4. Choose whether to view temperature or visibility and sky conditions.
  5. The forecast will be displayed once you submit your location.

Files

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.

About

Python and Streamlit web application for weather forecasting. Providing the weather forecast and relevant data visualisation. Supported in the backend with openweathermap.org.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages