This is a simple weather app that displays current weather information using the OpenWeatherMap API. It is built with Tailwind CSS and Vanilla JavaScript.
- Displays current weather information including temperature, humidity, and wind speed.
- Retrieves weather data from the OpenWeatherMap API.
- Dynamically updates the UI based on the user's location.
-
Clone the repository:
https://github.com/zareenf01/weather-app.git
Change into the project directory:
-cd weather-app
-Open the index.html file in your preferred web browser.
- The app will display the current weather information for your location.
- You can also search for weather information for a specific location by entering the city name in the search bar and pressing Enter.
To use your own OpenWeatherMap API key, follow these steps:
-
Go to the OpenWeatherMap website and sign up for an account.
-
Once you have an account, go to your API keys page and generate a new API key.
-
Open the script.js file in the project and replace the API_KEY constant with your generated API key: