The Weather App is a modern, user-friendly application that allows users to get current and next-day weather forecasts for any city or town. It provides detailed weather information, including temperature, weather conditions, wind speed, and offers advice based on the forecast. Users can switch between Celsius and Fahrenheit units with a stylish toggle button.
- Fetches current weather and next-day forecast for any country, city or town.
- Displays temperature, weather conditions, and wind speed.
- Provides user-friendly advice based on the weather forecast.
- Switch between Celsius and Fahrenheit units with a toggle button.
- Dynamic background images based on current weather conditions.
- Alerts users if an invalid city or town name is entered.
-
Clone the repository:
git clone https://github.com/BrianShifoko/Weather-Web-Application.git
-
Open
index.htmlin your web browser. -
Replace
YOUR_API_KEYinscript.jswith your OpenWeatherMap API key:const apiKey = 'YOUR_API_KEY';
- Enter the name of a country, city or town in the input field.
- Press the search button or hit the "Enter" key to fetch the weather data.
- Toggle between Celsius and Fahrenheit using the toggle button.
- Read the weather information and advice provided for the current and next day.
Brian Shifoko
%20Screenshot.png)