openweathermapapi

A promise based wrapper for the Open Weather Map Api


Keywords
OpenWeatherMap, Api, openweathermap-api
License
MIT
Install
npm install openweathermapapi@1.0.4

Documentation

OWM Api Module for Nodejs

install

You can install this Nodejs module trough npm by using this command add a --save behind if you want add this module to your dependencies in your package.json

npm i openweathermapapi

usage

this module is Promise based and you can find the result object in the example folder of this repo

example usage:

const WeatherApi  = require('openweathermapapi')

const City = "Your City here"
const ApiKey = "Your Api Key Here"

WeatherApi.byName(City, ApiKey)
    .then(result => {
            console.log(result.weather.advanced)
        }
    )
    .catch(console.error)