get-the-weather

1.5.2 • Public • Published

Build Status

get-the-weather

Node.js module for getting the weather from Dark Sky with a Zip Code.

INSTALL

npm install get-the-weather --save

HOW TO USE

Sign up for a Dark Sky API Key here

Sign up for a Zip Code API key here

Create an options object:

let options = {
    zip: `Zip code here`,
    DarkSkyKey: `Dark Sky API key here`,
    ZipCodeApiKey: `zipcodeapi.com key here`
}

Require and Run the function!

const getTheWeather = require("get-the-weather");
 
getTheWeather(options)
  .then(result => console.log(result.currently.temperature));

This returns a Promise!

Readme

Keywords

Package Sidebar

Install

npm i get-the-weather

Weekly Downloads

4

Version

1.5.2

License

MIT

Unpacked Size

4.18 kB

Total Files

9

Last publish

Collaborators

  • jasonericball