npm.io
1.1.10 • Published 9 years ago

today_weather

Licence
MIT
Version
1.1.10
Deps
0
Vulns
0
Weekly
0

DOCUMENTATION today_weather

DESCRIPTION

  • Check climate in a specific city with city name and geographical coordinates.
  • Using api of the website https://openweathermap.org

INSTALLATION

  • GLOBAL npm i today_weather --global
  • LOCAL npm i today_weather --save
GET API
USAGE

*Import package

const today_weather = require('today_weather');

*You put your api key

today_weather.NewOpenWeather('API_KEY');
  • PARAMETERS:

  • 1.- String value : city name.

  • 2.- Number value : geographic coordinate latitude.

  • 3.- Number value : geographic coordinate longitude.

  • You can try only with the city name.

  • To test only with geofraphic coordinates the first parameter must be null.

  • THIS FUNCTION RETURNS A PROMISE OBJECT

var result = today_weather.OpenWeather(param1, param2, param3);
VIEW RESULT
result.then((result)=> {
   console.log(result);
}).catch((reason) => {
   console.log(reason);
})
LICENSE

MIT

TEST MOCHA

Screenshot

CONTACT

cmaring1994@gmail.com

Keywords