ezweather
v2.0.0
Published
Get the full weather info of any location in the world.
Downloads
39
Readme
ezWeather
Get the weather of any location in the world.
Example
An example on how to use this package.
var weather = require('ezweather');
const googleAPIKEY = 'insertyourapi'; // Get your API key on https://developers.google.com/maps/documentation/geocoding/get-api-key
const darkskyAPIKEY = 'insertyourapi'; // Get your API key on https://darksky.net/dev
weather(googleAPIKEY, darkskyAPIKEY, 'Dublin', function(res) {
console.log(res)
});Output:
{
currentSummary: 'Partly Cloudy',
hourlySummary: 'Partly Cloudy',
dailySummary: 'Light rain today and Sunday, with temperatures rising to 51°F on Sunday.',
weatherImage: 'https://i.imgur.com/xhwr4Kb.png',
temp: 35.08,
tempC: 1.7,
fullLocation: 'Dublin, Ireland'
}Licence
Licensed under the MIT License
