Koajs geolocation and weather service middleware
Follow the steps in koajs to setup a koa enabled nodejs server
Then simply npm install koa-weather --save
import weatherMiddleware from 'koa-weather'
app.use(weatherMiddleware(options))
options provides a means to trigger an exception to terminate the pipeline with a 500 code error if weather data API request fails
option parameter
throwOnError
default true
##Third party APIs