The Weather App is a simple web application that allows users to search for weather information of a specific city. It fetches weather data from the OpenWeatherMap API based on the user's input and displays the relevant weather details on the user interface.
- Search Functionality: Users can enter the name of a city in the search input field and click the search button to retrieve weather information for that city.
- Weather Display: Once a valid city name is entered and the search button is clicked, the app displays the current weather information for the specified city. This includes the city name, temperature, humidity, and wind speed. The app also displays an appropriate weather icon and adjusts the background color based on the weather condition.
- Error Handling: If the entered city name is not found in the OpenWeatherMap API, an error message is displayed to inform the user of the invalid input.
- HTML: Provides the structure of the web page.
- CSS: Defines the styling and layout of the web page.
- JavaScript: Implements the functionality of fetching weather data and updating the user interface.
- OpenWeatherMap API: Provides weather data based on the city name.
- Open the
index.html
file in a web browser. - In the search input field, enter the name of the city for which you want to check the weather.
- Click the search button (🔍 icon) next to the input field.
- If the city name is valid and weather data is available, the app will display the current weather information, including temperature, humidity, wind speed, and an appropriate weather icon.
- If the entered city name is not found, an error message will be displayed.
Since the Weather App is a client-side web application, there is no installation required. Simply download the provided files (index.html
, styles.css
, app.js
, and the images
folder) and open the index.html
file in a web browser to use the app.
- Weather data is provided by the OpenWeatherMap API.
This Weather App is provided under the MIT License.
Feel free to customize and enhance the Weather App as needed for your use case! 🌈
- Add animated icons for all weathers.
- Make use of the rest of data provided by OpenWeatherMap Api.
- Have fun!