Skip to content

suzanne-lee/shecodes-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

Screen Shot 2021-12-06 at 7 26 03 PM

Description

A single page Weather Forecast web application. Check out the project here!

Tech Used

This project was built with HTML/CSS, Bootstrap, and Vanilla JavaScript. This project uses OpenWeather APIs to get current weather and forecast information.

Project Requirements

  • Display current date and time (of the user)
  • Display location (Montreal, Canada by default)
  • Allow users to display a specific city's weather information, via:
    1. Search engine (user can search for any city) OR
    2. The user's current location
  • Display the current temperature, weather description (i.e. Sunny, Clouds, Clear, etc.), wind speed
  • Display icons to match the weather

Additional Features Implemented

  • Forecast information (Next 5 Days)
  • More weather information, such as Min/Max Temperature, time of sunset and sunrise, humidity, etc.
  • Five possible backgrounds, chosen based on time of day and weather condition:
    1. Day time [clear sky]
    2. Day time [all other weather conditions, i.e. cloudy, rainy, snowy, etc.]
    3. Sunset (+/- 30 mins from time of today's sunset) [any weather condition]
    4. Sunrise (+/- 30 mins from time of today's sunrise) [any weather condition]
    5. Night [any weather condition]
  • Search engine error handling:
    1. When a user submits an empty string
    2. When a user submits a non-existent city

Future Improvements / To Do

  • Display timezone
  • Add more possible backgrounds for various weather conditions
  • Implement responsiveness (make mobile-friendly)
  • Use local storage to cache API calls
  • Unit conversion (change between Celsius and Fahrenheit)
  • Add more forecast information, such as Next 5 Hours
  • Improve web performance (how long the site, data, and images load)
  • Improve code readability (comments, using more descriptive class/id/variable names)

Icon List

The 3D weather icons used were found on UI Freebies. The following icons were made using the UI freebies material:

  • 04d.png
  • 04n.png

The default icons that come with the Open Weather API can be found here

Backgrounds

Clear Day - Seoul

Cloudy Day - Singapore

Sunset - San Diego

Night - Toronto

Sunrise - Banff

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published