Toolkit to reduce pain using OpenWeatherMap API.
It's because of OWM API free plan limitations. This toolkit is mainly built for beginners doing the common weather application test tasks.
All examples related to Saint-Petersburg, Russia. Its ID on OpenWeatherMap is 498817.
For more details check out API reference.
npm install owm-toolkit --save
Or you can use Yarn (which is faster):
yarn add owm-toolkit
import { OWMToolkit } from 'owm-toolkit';
const owm = new OWMToolkit('myApiKey');
owm.SOME_METHOD(498817)
.then(res => console.log(res))
.catch(err => console.error(err));
owm.getCurrent(498817)
owm.getThreeHours(498817)
owm.findCity('Saint Petersburg, RU')