Skip to content

Weather Forecast App - A Django-based application that provides current weather and 3-day forecast data for cities. Uses OpenWeatherMap and weather api APIs to display temperature, humidity, wind speed, UV index, and more in a clean, user-friendly interface.

License

Notifications You must be signed in to change notification settings

yumeangelica/online-weather-view

Repository files navigation

🌤️ Weather Forecast App

A Django-based web application that provides real-time weather data and a 3-day weather forecast for cities worldwide. The application integrates with the OpenWeatherMap API and Weather API to display accurate and up-to-date information.

Features

  • 🌍 Search by City: Enter a city name to retrieve current weather data and a detailed 3-day forecast.
  • Current Weather: Displays the temperature, feels-like temperature, humidity, wind speed, UV index, and cloudiness.
  • 📅 3-Day Forecast: Shows an hourly breakdown of temperature, wind speed, humidity, and UV index for the next three days.
  • 🌞 Sunrise & Sunset Times: Provides the local times for sunrise and sunset.
  • UV Index: Check the UV index for the current day and forecast days.

Technologies Used

Setup & Installation

  1. Clone this repository:

    git clone https://github.com/yumeangelica/online-weather-view.git
  2. Navigate to the project directory:

    cd online-weather-view
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Get your API keys:

    • Sign up at OpenWeatherMap and Weather API to obtain API keys.
    • Create a .env file:
      touch .env
    • Add the following content to the .env file:
      OWM_API_KEY=your_openweathermap_api_key
      UV_API_KEY=your_weather_api_key
      
  5. Run database migrations:

    python manage.py migrate
  6. Start the development server:

    python manage.py runserver
  7. Open your web browser and visit:

    http://127.0.0.1:8000
    

How It Works

  1. Search: Type the name of any city.
  2. Select an Option: Choose between current weather or 3-day forecast.
  3. View Weather Data: See real-time weather data or a detailed forecast.

License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. For more information, see the LICENSE file in this repository.

About

Weather Forecast App - A Django-based application that provides current weather and 3-day forecast data for cities. Uses OpenWeatherMap and weather api APIs to display temperature, humidity, wind speed, UV index, and more in a clean, user-friendly interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published