You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are hardcoding Ruse as the city for the forecast. Now we need to create a text input field, which will be used for the name of the city, for which we want to see the forecast.
Add a 5 day forecast
As part of the free plan the weather API site gives the ability to get a 5 day forecast. Below the current forecast we want to display the 5 day forecast (https://openweathermap.org/forecast5).
The expected result
For example if I write in the input field Sofia and then I click the search button, we need to generate the current and 5 days forecasts of the city. Then if I delete the text and change it with Varna and again click the button, I should get the forecasts for the city of Varna.
The text was updated successfully, but these errors were encountered:
This task consists of 2 parts:
Add an input field for the city
Currently we are hardcoding
Ruse
as the city for the forecast. Now we need to create a text input field, which will be used for the name of the city, for which we want to see the forecast.Add a 5 day forecast
As part of the free plan the weather API site gives the ability to get a 5 day forecast. Below the current forecast we want to display the 5 day forecast (https://openweathermap.org/forecast5).
The expected result
For example if I write in the input field Sofia and then I click the search button, we need to generate the current and 5 days forecasts of the city. Then if I delete the text and change it with Varna and again click the button, I should get the forecasts for the city of Varna.
The text was updated successfully, but these errors were encountered: