Do you have an raspberry pi running the emonPI software already up and running? If not, that’s the first step - follow the guides on this site.
If you do, all you need to do is logon to emonCMS (on your local raspberry pi) and click the setup menu, and “emonhub”.
Click the red “edit config” button and paste the below after the “[interfacers]” line on the screen.
### This interfacer manages communication to BMW API for electric car monitoring
Type = EmonHubBMWInterfacer
nodeid = 28
tempcredentialfile = /tmp/bmwcredentials.json
bmwapiusername = YOUREMAIL
bmwapipassword = YOURPASSWORD
pubchannels = ToEmonCMS,
You need to change the email and password above, to match the username and password you use at the https://www.bmw-connecteddrive.co.uk website.