8000 GitHub - boba-milktea/weather-forecast: Local weather forecast for the next few days
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

boba-milktea/weather-forecast

Repository files navigation

Your project name

☀️ Weather Forecast

A weather forecast application that displays hourly and daily weather data in a user-friendly interface. Built with HTML, CSS, and JavaScript.


📑 Table of Contents


General Info

Weather Forecast is a web-based application that fetches and displays weather data (hourly and daily) from an API. It presents the data in a visually structured layout with dynamic DOM rendering and scroll-based background color changes that reflect different times of the day.


Screenshots

Weather Forecast Screenshot


Technologies

  • HTML5
  • CSS3
  • JavaScript (Vanilla)
  • OpenWeather API
  • Visual Studio Code (IDE)

Setup

  1. Clone this repository:

    git clone https://github.com/yourusername/weather-forecast.git
  2. Navigate to the project folder:

    cd weather-forecast
  3. Open index.html in your browser.


Code Examples

const renderWeather = (dailyWeather) => {
  dom.container.innerHTML = '';

  for (const [day, hourlyWeather] of Object.entries(dailyWeather)) {
    const weatherDom = createWeatherDom(day, hourlyWeather);
    dom.container.append(weatherDom);
  }
};

Features

  • Display weather data grouped by day and hour

  • Scroll to reveal different parts of the day with dynamic color backgrounds

  • Select date range to re-fetch and update the forecast dynamically

  • Optimized layout for readability and interaction

To Do

  • Use user's location to fetch weather data

  • Improve UI/UX design for different screen sizes

  • Add temperature units toggle (°C / °F)

Project Status

Project is: Base project completed

Contact

By boba-milktea

About

Local weather forecast for the next few days

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0