Skip to content

Znarkus/node-openweather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

overburn/node-openweather

Build Status npm version

Installation

Just install the package using npm

npm install node-openweather

Usage

** Work in progress - more endpoints will be covered soon **

var weather = require('node-openweather')({
  key: "your-openweathermap-api-key",
  accuracy: "like",
  units: "metric",
  language: "en"
});

weather.city('London').now().then(function(res) {
  //success logic
}).catch(function(err) {
  //error handling
});

Location selectors

city(city_name, [country])
coords(lat, lng)
zip(zip_code, [country])
id(city_id)

#Time selectors

now()
forecast(5) or forecast(16)
history()

About

An openweather API wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%