2.0.0 • Published 6 years ago

ezweather v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

2.0.0

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago