var MechanicWeather = require("mechanic-weather");
// initialize mechanic-weather
var mechanicWeather = new MechanicWeather({apiKey: "{apiKey}"}, rateLimit, rateTime);
// fire it up
mechanicWeather.getForecast([
{
id: "{some unique id}",
latitude: "{latitude}",
longitude: "{longitude}"
},
// ...
], (error, results) => {
// [
// {
// id: "{id}",
// hourly: [
// // ...
// ]
// },
// {
// id: "{id}",
// hourly: [
// // ...
// ]
// },
//]
});
mechanic-weather
0.2.2 • Public • Published/mechanic-weather/
Package Sidebar
Install
npm i mechanic-weather
Weekly Downloads
0
Version
0.2.2
License
MIT
Unpacked Size
15 kB
Total Files
10