Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
node-clima
Advanced tools
Readme
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:
Current.byCityName()
Current.byCityId()
Current.byGeographicCoordinates()
Print all data to the console.
Usage:
const Current = require('node-clima').Current;
var apiKey = 'YOUR API KEY'
var current = new Current(apiKey);
current.byCityName('Tarragona')
.then((data) => {
console.log(data);
})
.catch((error) => {
console.log(error);
});
The unit tests are based on jest, 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.
$ npm run test
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
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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).