0.0.5 • Published 8 years ago

node-openweather v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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",
  unit: "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()
0.0.5

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago