mechanic-weather

0.2.2 • Public • Published
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/

    Package Sidebar

    Install

    npm i mechanic-weather

    Weekly Downloads

    0

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    15 kB

    Total Files

    10

    Last publish

    Collaborators

    • cagdas89