Skip to content
/ bmwcd.js Public

Lightweight Node module for interfacing with BMW ConnectedDrive API. Allows painless Remote Service and Vehicle Status requests.

License

Notifications You must be signed in to change notification settings

bmwcd/bmwcd.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bmwcd.js

npm install bmwcd.js bmwcd.js !Dependency status MIT license

yarn (recommended)

$ yarn add bmwcd.js

npm install

$ npm install bmwcd.js

Basic Usage

ES6 + dotenv

import ConnectedDrive from 'bmwcd.js'
import dotenv from 'dotenv/config'

(async () => {
  const bmwcd = await new ConnectedDrive(process.env.BMW_USERNAME, process.env.BMW_PASSWORD)
  const vehicle = await bmwcd.getVehicle(process.env.BMW_VIN)
  console.log(await vehicle.status())
})()

CommonJS

const { ConnectedDrive } = require('bmwcd.js')

const main = async () => {
  // ConnectedDrive account authentication
  const bmwcd = new ConnectedDrive(username, password)

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

Acknowledgements

Inspired by connected_drive.js and bimmerconnected (python).

RememberJimmy.com

About

Lightweight Node module for interfacing with BMW ConnectedDrive API. Allows painless Remote Service and Vehicle Status requests.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published