+
Skip to content

jasoder/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

Description

The Weather App is a web application that allows users to search for weather information based on a specific location. It retrieves real-time weather data from the OpenWeatherMap API and displays it in a user-friendly interface. Users can search for weather information by entering the name of a city, and the app will provide details such as temperature, humidity, wind speed, a weather icon and description.

Weather App Opening Screenshot

Weather App In Use Screenshot

Features

  • Search for weather information by city name
  • Display current temperature in Celsius
  • Show weather icon and description representing the current weather conditions
  • Provide details such as wind speed and humidity
  • Background image changes based on the weather description

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • OpenWeatherMap API
  • Font Awesome for icons

Installation and Usage

  1. Clone the repository: $ git clone https://github.com/Sodejaa/WeatherApp.git

  2. Navigate to the project directory: $ cd weather-app

  3. Open the index.html file in a web browser.

  4. Enter the name of a city in the search box and press Enter or click the search button.

  5. The app will display the weather information for the specified city.

API Key

To use the Weather App, you need to obtain an API key from OpenWeatherMap. Follow these steps:

  1. Visit the OpenWeatherMap website and sign up for an account (if you don't have one already).

  2. After signing in, go to the API Keys page.

  3. Generate a new API key by providing a name for the key and selecting the appropriate plan.

  4. Copy the generated API key.

  5. Open the index.js file in your code editor and replace {API key} in the url variable with your API key.

const apiKey = "YOUR_API_KEY";

const url = https://api.openweathermap.org/data/2.5/weather?q={city name}&units=metric&appid=${apiKey};

Contributing

Contributions to the Weather App are welcome! If you find any issues or would like to add new features, please submit a pull request. Make sure to follow the existing coding style and provide detailed information about the changes made.

License

This project is licensed under the MIT License.

Contact

For any questions or suggestions, please feel free to contact the project maintainer:

Please allow some time for a response, as the maintainer's availability may vary.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载