Weather forecast in Portugal
Retrieves weather forecasts from multiple (plus 1 specific for Portugal)
Install
$ npm install meteo-portugal
Usage
You neet get a darksky API key from darksky.net for this data source
const {DarkSky, MeteoIST} = require('meteo-portugal');
const ist = new MeteoIST();
const ds = new DarkSky('key-from-darksky');
ds.forecastWeek(-9.2156, 38.4201)
.then(response => console.log(response))
.catch(error => console.log(error));
ist.forecastWeek(-9.2156, 38.4201)
.then(response => console.log(response))
.catch(error => console.log(error));
Test
$ OPENWEATHER_KEY='key-from-openweather' DARKSKY_KEY='key-from-darksky' npm test
Or see the full response by
$ OPENWEATHER_KEY='key-from-openweather' DARKSKY_KEY='key-from-darksky' npm visual-test