Code Monkey home page Code Monkey logo

weatherapp's Introduction

WeatherApp

This project is a web app through which you can search the weather of any city

Web technologies used: HTML5, CSS3 and JavaScript

API used: OpenWeatherMap API

Click the link in About section to use the weather app.

(Note: Valid format is city name (Brampton) or city name, country code (Brampton,ca). )

A sample screenshot of Project

Screesshot of GUI

Run

How to use weather app:

  1. Enter the location (name or name with country code) of a city you want to search weather info for. For example, Brampton or Brampton,ca.
  2. After entering the name in a valid format, click on 'Submit' button to display the weather info. The result will be displayed in a white rectangle box.

How to download/run:

  1. Clone the project or download the zip file and unzip it
  2. Click on index.html and open it with any compatible web browser like Chrome, Edge, Opera or Firefox
  3. You will see the web page with weather app heading and text field.

(If you want to use my .js file, please use your own API key. Go to OpenWeatherMap and make an account. You will get free API Key. Look for API key comment in .js file and replace my API key with your own API key in .js file.)

Usage example:

Example 1: Searching the weather of few popular cities

Serach the weather of California, Toronto and Waterloo.

Screenshot of enter

Example 2: Error messages for invalid input

Seraching the same city again.

Screenshot of error1

Enter an invalid input or city name.

Screesshot of error2

License

MIT License Copyright (c) 2020 Dev-Daljeet

Refer to LICENSE file for full information.

weatherapp's People

Watchers

Daljeet Singh avatar

Forkers

abhijeetawal

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.