drone-mobile
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

drone-mobile

An unofficial nodejs API wrapper for DroneMobile

CI npm Discord

Install

npm install drone-mobile

Usage

const DroneMobile = require('drone-mobile');
const client = new DroneMobile({
  username: 'some@dude.com',
  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

  • [x] Start
  • [x] Stop
  • [x] Lock
  • [x] Unlock
  • [x] Trunk
  • [x] Aux1
  • [x] Aux2
  • [x] Location
  • [x] Status
  • [x] Vehicles

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.11
    8
    • latest

Version History

Package Sidebar

Install

npm i drone-mobile

Weekly Downloads

11

Version

0.0.11

License

MIT

Unpacked Size

16.9 kB

Total Files

9

Last publish

Collaborators

  • hacksore