An open API service indexing awesome lists of open source software.

https://github.com/shreyansh-21/webweatherapp

A simple and lightweight weather app built with HTML, CSS, and JavaScript, fetching real-time weather data using the open weather api
https://github.com/shreyansh-21/webweatherapp

Last synced: about 2 months ago
JSON representation

A simple and lightweight weather app built with HTML, CSS, and JavaScript, fetching real-time weather data using the open weather api

Awesome Lists containing this project

README

        

Weather App


This is a simple weather application that fetches weather data from the OpenWeather API.

Features



  • Displays current weather for a given city.

  • Fetches data from OpenWeather API in real-time.

  • Shows temperature, weather description, humidity, and wind speed.

Technologies Used



  • HTML, CSS, JavaScript

  • OpenWeather API

How to Run the App



  1. Clone the repository:
    git clone https://github.com/shreyansh-21/WebWeatherApp.git


  2. Open index.html in your browser.

  3. Enter a city name to get the current weather information.

Setup and Configuration


To use this app, you need an API key from OpenWeather. Follow these steps:



  1. Sign up at OpenWeather and get your API key.

  2. Add your API key to the JavaScript file:
    const apiKey = 'YOUR_API_KEY';


Example API Call


https://api.openweathermap.org/data/2.5/weather?q=London&appid=YOUR_API_KEY

License


This project is licensed under the MIT License.