metaweather
Promise based npm module for using metaweather API
Install
$ npm install --save metaweather
Usage
var MetaWeather = ; var mw = ; // Use string query to location info and woeidmw; // Search locations nearby with Lat/Lon// …as string:mw; // …or object:mw; // Get current location weather data with woeidmwlocation2487956; // Get location weather from a specific date// …as string:mwlocation2487956 '2017-04-05'; // …or object:mwlocationwoeid: 2487956 date: '2017/04/05';
API Methods
.search().query(queryString)
.search().latLon(queryString)
.search().latLon({lat, lon})
.location(woeid) // 2487956
.location(woeid, dateString) // 2017/04/12 or 2017-04-12
.location({woeid, dateString}) {woeid: 2487956, date: '2017/04/12'}
About Metaweather
MetaWeather is an automated weather data aggregator that takes the weather predictions from various forecasters and calculates the most likely outcome. The thinking is that the combined knowledge of the forecasters will produce a better prediction. Read more about MetaWeather