Package Exports
- node-clima
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-clima) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-clima
Simple wrapper for OpenWeatherMap API for Node.js
Api Key is required.
Methods API call:
currentByCityName
currentByCityId
currentByCoordinates
currentByZip
for more info http://openweathermap.org
Usage:
var clima = require('node-clima');
var c = new clima({
format: 'json', // required
apikey: 'your api key' // REQUIRED
units: 'Celsius' // optional
});
c.currentByCityName({
cityName: 'London',
callback: function(err, data) {
console.log(data);
}
});