Socket
Socket
Sign inDemoInstall

node-accuweather

Package Overview
Dependencies
75
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-accuweather

An node wrapper for the AccuWeather API


Version published
Maintainers
1
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 02 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc