This is a simple weather application that displays weather information for a specified location. It fetches data from the OpenWeatherMap API and presents it in a user-friendly interface styled with HTML and CSS.
- Fetches real-time weather data from the OpenWeatherMap API.
- Displays current temperature, weather conditions, humidity, and wind speed.
- User-friendly interface with responsive design.
- Error handling for invalid location inputs.
- HTML
- CSS
- JavaScript
- OpenWeatherMap API
- A modern web browser.
- An API key from OpenWeatherMap. You can sign up for a free API key here.
-
Clone the repository to your local machine: sh git clone https://github.com/Noel9907/weather_site
-
Navigate to the project directory: sh cd weather-app
-
Open
index.html
in your web browser.
- Open the
script.js
file. - Replace
apiKey
with your actual OpenWeatherMap API key: javascript const apiKey = 'YOUR_API_KEY';
- Enter a city name in the input field.
- Click the "search" button.
- The app will display the current weather information for the specified city.
plaintext weather-app/ │ ├── index.html # Main HTML file ├── styles.css # CSS file for styling └── script.js # JavaScript file for fetching and displaying weather data
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- OpenWeatherMap for the API.
- All the open-source contributors whose libraries and resources were used in this project.
For any questions or suggestions, please contact me at [email protected]