Giter Club home page Giter Club logo

live-weather's Introduction

Live Weather Web App

Description

Live Weather is a simple web application that allows users to check the current weather for a specific location. Users can enter the name of a city in the search box, and the app will display the temperature, latitude, longitude, weather description, wind speed, and cloudiness for that location.

The app is designed to be responsive and works on both desktop and mobile devices.

Installation

To use the Live Weather app locally, follow these steps:

  1. Clone this repository: git clone https://github.com/umanghalok/live-weather.git
  2. Navigate to the project directory: cd live-weather
  3. Open the index.html file in your web browser.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • Bootstrap (for styling)

Styling (CSS)

The CSS code provided is responsible for the styling and layout of the Live Weather web app. It sets the background image, colors, and responsive design for various screen sizes.

JavaScript Functionality

The JavaScript code handles the core functionality of the Live Weather app. It interacts with the OpenWeather API to fetch real-time weather data for the searched city. The key features of the JavaScript code are:

  • Fetching weather data using the fetch API.
  • Handling user input and triggering weather data retrieval on button click or pressing the Enter key.
  • Updating the DOM with the retrieved weather information.

API Key

To use the Live Weather app, you need to obtain an API key from OpenWeather API and replace the apik variable in the main.js file with your API key.

apik = "your_api_key_here";

live-weather's People

Contributors

umanghalok avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.