JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 71
  • Score
    100M100P100Q58586F
  • License MIT

An node wrapper for the AccuWeather API

Package Exports

  • node-accuweather

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-accuweather) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Accuweather Node

Installation Instructions

In your project directory, run:

npm install --save node-accuweather

Usage

Get your AccuWeather API Key at http://developer.accuweather.com/user/register.

var accuweather = require('node-accuweather')()(YOUR_API_KEY);

To Get Current Weather Conditions Based on Keyword Location (In Farenheit)

accuweather.getNowWeatherAndRealFeel("New York")
  .then(function(result) {
    console.log(result);
  });

// { Temperature: 34, RealFeel: 29 }

Note that this will return the "best match" result based on a keyword search, so New Yorks in other places besides the US won't return a result.