Skip to content

nejcfurh/weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a basic weather app with simple design and look.

It is using vanilla JS and presents simple DOM Manipulation along with an intro into asynchronous javascript. CSS is not responsive.

There are three API's in use. First one is OpenWeather API - with FREE plan for retrieving weather data, the second one is IP Location API for retrieving location via IP if the user rejects the Browser GeoLocation prompt. The third one is the Reverse Geocoding API by BigDataCloud for retrieving city name from more accurate location.

Currently "geolocation" will work regardlessly if the users rejects the browser location prompt or not (the location will be less accurate via the IP location - it can also be false if the user is using VPN).

Searching for location will dynamically change the background with regard to temperature (there are four different backgrounds for each of the seasons). You can get back to default photo at each search option, but it will be overwritten if the new location search is started (this might be removed in the future).

Can be freely reused for inspiration.

PreviewWeatherApp

About

Weather App written in Vanilla JS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published