How to use the teslajs.climateStart function in teslajs

To help you get started, we’ve selected a few teslajs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geraldoramos / nikola / tesla-api.js View on Github external
return new Promise((resolve, reject) => {
            const vehicleOptions = {
                authToken,
                vehicleID
            };
            tjs.climateStart(vehicleOptions, function (err, data) {
                if (err) {
                    console.log(err)
                    reject(err)
                }
                resolve(data)
            });
        })
    },
github DoctorMcKay / node-tesla-data / tesladata.js View on Github external
"start_climate": function(callback) {
		Tesla.climateStart({"authToken": g_BearerToken, "vehicleID": Config.tesla.vehicleId}, callback);
	},
	"stop_climate": function(callback) {