A weather application to get the temperature, weather condition and whether it is day or night of a particular city using openweathermap
. A free weather api.
- Enter the name of a city into the
input
field. - By pressing enter, the user submits the name of the city which updates the
DOM
with the temperature, weather condition, image of day or night and weather condition icon.
- By closing the browser window the city name will be stored in localStorage and when the user returns, the name will be retrieved to make an api call to update the
DOM
.
- Weather App on Codepen by [George Martsoukos]
- Coding A Weather App In Pure JavaScipt