This is a small node.js program that wraps the authentication mechanisms needed to access the BMW ConnectedDrive Portal servers and returns json data for each vehicle.
It supports:
Prerequisites
Install node.js
Rename/copy config_example.json to config.json and enter your credentials:
Writing JSON Files
node writejson.js
The program writes json files in form result_VIN.json where VIN is your Vehicle Identification Number in the form WBAxxxxxxxV123456
Starting the Web Server
node server.js
The server listens for incoming connections on port 8777 by default, feel free to edit if needed
Requests should be made in the following form:
http://myserver:port/VIN
Actions
You can now initiate commands by using the provided action_xxx json files