Giter Site home page Giter Site logo

node-js-weather's Introduction

node-js-weather

Command line weather app using Node.js and OpenWeatherMap.

This library provides an interface to query the current weather and temperature using a zipcode location and the OpenWeatherMap API.

I am not affilated with nor have a formal relationship with OpenWeatherMap.

Using node-js-weather

Example query: node app.js F 90210

In the above example, F is the desired temperature units and 90210 is the desired location as a US zipcode.

Example output:

Location: Beverly Hills    
Current Weather: Mist  
Current Temperature: 64°F

Getting started

  1. The OpenWeatherMap API requires an API key. If not done already, please sign up to request a free API key.
  2. Install Node.js
  3. Download the repository
  4. Create config.json file that contains your API key formatted as such:
    { "apikey": "111111111111" }
  5. Run the above example query. Please feel free to change the temperature units to celsius 'C' and the zipcode to any US zipcode.
    Note: node-js-weather can handle multiple zipcodes for a single query (i.e. this is a valid query: node app.js F 90210 20001 10001).

node-js-weather's People

Contributors

seanhamlet avatar

Watchers

 avatar

node-js-weather's Issues

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.