https://github.com/hacksore/drone-mobile
An unofficial nodejs API wrapper for DroneMobile
https://github.com/hacksore/drone-mobile
api-wrapper compustar drone-mobile firstech remote-start typescript
Last synced: about 1 year ago
JSON representation
An unofficial nodejs API wrapper for DroneMobile
- Host: GitHub
- URL: https://github.com/hacksore/drone-mobile
- Owner: Hacksore
- License: mit
- Created: 2021-01-18T00:35:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T13:02:34.000Z (over 2 years ago)
- Last Synced: 2025-02-25T20:39:12.157Z (over 1 year ago)
- Topics: api-wrapper, compustar, drone-mobile, firstech, remote-start, typescript
- Language: TypeScript
- Homepage: https://npmjs.com/package/drone-mobile
- Size: 577 KB
- Stars: 15
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-mobile
An unofficial nodejs API wrapper for DroneMobile
[](https://github.com/Hacksore/drone-mobile/actions?query=workflow%3Anpm)
[](https://www.npmjs.com/package/drone-mobile)
[](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