Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
node-clima
Advanced tools
A Node.JS module, which provides an object oriented wrapper for the OpenWeatherMap API.
Api Key is required. Get your API key from here
Install with the Node.JS package manager.
npm install node-clima
Install via git clone:
$ git clone git://github.com/rsdiaz/node-clima.git
$ cd node-clima
$ npm install
You can find the docs for the API of this client at http://rsdiaz.github.io/node-clima/doc/index.html.
Additionally, the official OpenWeatherMap API documentation is a very useful resource. http://openweathermap.org
Methods API call:
currentByCityName
currentByCityId
currentByCoordinates
currentByZip
Print all data to the console.
Usage:
const Clima = require('node-clima');
const c = new Clima({
format: 'json', // required
units: 'Celsius' // optional
apikey: 'YOUR API KEY' // required
});
c.currentByCityName({
cityName: 'London',
callback: function(err, data) {
console.log(data);
}
});
The unit tests are based on the nodeunit module, which may be installed via npm. To run the tests make sure that the npm dependencies are installed by running npm install from the project directory.
$ nodeunit
Note that a connection to the internet is required to run the tests.
MIT license. See the LICENSE file for details. [here]: http://home.openweathermap.org/users/sign_in
FAQs
Simple wrapper for OpenWeatherMap API
The npm package node-clima receives a total of 3 weekly downloads. As such, node-clima popularity was classified as not popular.
We found that node-clima demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.