Examples

Here is a quick example that should get you up and running. It logs into the desired region/brand and then attempts to lock the vehicle by VIN number.

const BlueLinky = require("bluelinky");

const client = new BlueLinky({
  username: '[email protected]',
  password: 'hunter1',
  brand: 'hyundai', // 'hyundai', 'kia'
  region: 'US', // 'US', 'EU', 'CA'
  pin: '1234'
});

// called when the client logs in successfully
client.on("ready", async () => {
  const vehicle = client.getVehicle("5NMS55555555555555");
  const response = await vehicle.lock();
  console.log(response);
});
import BlueLinky from "bluelinky";

const client = new BlueLinky({
  username: 'so[email protected]',
  password: 'hunter1',
  brand: 'hyundai', // 'hyundai', 'kia'
  region: 'US', // 'US', 'EU', 'CA'
  pin: '1234'
});

// called when the client logs in successfully
client.on("ready", async () => {
  const vehicle = client.getVehicle("5NMS55555555555555");
  const response = await vehicle.lock();
  console.log(response);
});