bmwcd.js

0.1.5 • Public • Published

bmwcd.js

npm install bmwcd.js MIT license

const bmwcd = require('bmwcd.js')

(async () => {
  // ConnectedDrive account authentication
  const account = await bmwcd.auth(username, password)

  // Select vehicle by VIN and output status object
  const vehicle = await account.vehicles('WBAXXXXXXX1234567')
  console.log(await vehicle.status())
})()

Remote Services

Currently, not all of these Remote Services are fully functional. I'm working as fast as I can to fix that!

const bmwcd = require('bmwcd.js')

(async () => {
  const account = await bmwcd.auth(username, password)
  const vehicle = await account.vehicles('WBAXXXXXXX1234567')
  
  // Lock / Unlock Doors
  await vehicle.lock()
  await vehicle.unlock()

  // Remote Air Conditioning / Ventilation
  await vehicle.climate()

  // Flash Headlights
  await vehicle.lights()

  // Honk Horn
  await vehicle.honk()
})()

Acknowledgements

I was mainly inspired by connected_drive.js, expanding it with many features similar to those in bimmerconnected (python). I also tried to follow similar naming conventions as bimmerconnected, for added compatibility. It's a lot heavier now, but it's getting close to being a completed prototype.

RememberJimmy.com

Readme

Keywords

none

Package Sidebar

Install

npm i bmwcd.js

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

27.7 kB

Total Files

13

Last publish

Collaborators

  • nberlette