drone-mobile

An unofficial nodejs API wrapper for DroneMobile

MIT License

Downloads
52
Stars
12
Committers
2

drone-mobile

An unofficial nodejs API wrapper for DroneMobile

Install

npm install drone-mobile

Usage

const DroneMobile = require('drone-mobile');
const client = new DroneMobile({
  username: '[email protected]',
  password: 'hunter1'
});

client.on('ready', async () => {
  // get a list of vehicles on the account
  const vehicleList = await client.vehicles();

  // pick the first one
  const vehicle = vehicleList[0];

  // attempt a lock command to the vehicle
  console.log('Attempting to lock car', vehicle.device_key);
  try {
    const response = await client.lock(vehicle.device_key);
    console.log(response);
  } catch (err) {
    console.log('Err:', err);
  }

});

Commands

  • Start
  • Stop
  • Lock
  • Unlock
  • Trunk
  • Aux1
  • Aux2
  • Location
  • Status
  • Vehicles