# drone-mobile

> A drone mobile api wrapper

Latest version **0.0.11** (published 2024-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install drone-mobile
pnpm add drone-mobile
yarn add drone-mobile
bun add drone-mobile
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2024-03-20 |
| First published | 2021-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 16.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Hacksore |
| Maintainers | hacksore |

## Links

- npm: https://www.npmjs.com/package/drone-mobile
- Homepage: https://github.com/Hacksore/drone-mobile
- npm.io page: https://npm.io/package/drone-mobile

## Dependencies (6)

- [got](https://npm.io/package/got.md) ^11.8.1
- [url](https://npm.io/package/url.md) ^0.11.0
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.828.0
- [winston](https://npm.io/package/winston.md) ^3.3.3
- [tough-cookie](https://npm.io/package/tough-cookie.md) ^4.0.0
- [amazon-cognito-identity-js](https://npm.io/package/amazon-cognito-identity-js.md) ^4.5.7

## Recent versions

- 0.0.11 (latest) — 2024-03-20
- 0.0.10 — 2024-01-16
- 0.0.7 — 2021-08-26
- 0.0.6 — 2021-08-26
- 0.0.5 — 2021-08-25
- 0.0.4 — 2021-02-04
- 0.0.3 — 2021-02-04
- 0.0.2 — 2021-01-18
- 0.0.1 — 2021-01-18

## README

# drone-mobile

An unofficial nodejs API wrapper for DroneMobile

[![CI](https://img.shields.io/github/workflow/status/Hacksore/drone-mobile/npm)](https://github.com/Hacksore/drone-mobile/actions?query=workflow%3Anpm)
[![npm](https://img.shields.io/npm/v/drone-mobile.svg)](https://www.npmjs.com/package/drone-mobile)
[![Discord](https://img.shields.io/discord/652755205041029120)](https://discord.gg/HwnG8sY)


### Install
```shell
npm install drone-mobile
```

### Usage
```js
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

---
_Source: https://npm.io/package/drone-mobile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
