Weather-App

Overview

This is a simple weather application that utilizes the OpenWeatherMap API to provide current weather data for a given city. Users can input a city name, and the application will display the temperature, humidity, and wind speed for that location in a user-friendly interface.

Features

  • Current Weather Data: The application fetches current weather data from the OpenWeatherMap API.
  • User-Friendly Interface: The UI allows users to easily input a city name and view the weather information.
  • Temperature: Displays the current temperature in Celsius or Fahrenheit.
  • Humidity: Shows the current humidity level in percentage.
  • Wind Speed: Indicates the current wind speed in kilometers per hour or miles per hour.

Technologies Used

  • Programming Languages: JavaScript
  • Frontend Framework: HTML, CSS
  • External API: OpenWeatherMap API

Getting Started

  1. Clone the Repository:

    git clone https://github.com/Nimasha-Nimnadi/weather-app.git
  2. Navigate to the Project Directory:

    cd my-weather-app
  3. Install Dependencies:

    npm install
  4. Obtain API Key:

    • Sign up on OpenWeatherMap to get your API key.
    • Add your API key to the config.js file.
  5. Run the Application:

    npm start
  6. Open the Application:

    • Open your web browser and navigate to http://localhost:3000.

Example Usage

  1. Input a city name in the provided search bar.
  2. Press the "Search" button.
  3. The application will display the current weather information for the specified city, including temperature, humidity, and wind speed.