Simple Weather App
This is a simple web application that displays the weather information for a given city using the OpenWeatherMap API.
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git
-
Open the
index.html
file in your preferred web browser.
- Open the web application in your web browser.
- The weather information for the default city (London) will be displayed.
- To change the city, modify the
city
variable in the JavaScript code:
const city = 'New York'; // Change the city name here
Save the changes and reload the web application to see the weather information for the new city.
API
This project utilizes the OpenWeatherMap API to fetch weather data. You will need to obtain an API key by signing up on the OpenWeatherMap website. Once you have the API key, replace the api variable in the JavaScript code:
const api = 'YOUR_API_KEY'; // Replace with your OpenWeatherMap API key
Contributing
Contributions are welcome! If you find any issues or have any suggestions, please feel free to open an issue or submit a pull request.