Weather Forecaster App

Home » Code » Weather Forecaster App

Weather Forecaster App

Posted on

This app uses the OpenWeather api to show current, hourly, and daily weather for a given city. This was a good challenge, in that I had to figure out how to first convert the city into a latitude and longitude, that I use in a second api call to fetch the requested weather data.

What I’m using:
• hooks to manage state
• localStorage – to persist weather data on browser refresh
• OpenWeather api – I use the geocode api to extract lat/lon properties from the city input, and then use those lat/lon properties in the onecall api to fetch that city’s weather data.

view: https://weather-forecaster-v1.netlify.app/
code: https://github.com/Techture/weather-forecaster

 

hover-button