1.1.10 • Published 6 years ago
today_weather v1.1.10
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
- You must create an account at https://openweathermap.org/
- Subscribe to Current weather data in https://openweathermap.org/api Get your Api Key
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
CONTACT
cmaring1994@gmail.com