Page 6 of 12

Re: New Plugin - BMW Connected Drive

PostPosted: Thu Jan 28, 2021 1:29 pm
by ryanbuckner
Just wanted to say how much I love this plugin

Re: New Plugin - BMW Connected Drive

PostPosted: Thu Jan 28, 2021 1:45 pm
by FlyingDiver
Thanks!

What do you use it for? What features?

Re: New Plugin - BMW Connected Drive

PostPosted: Fri Jan 29, 2021 4:50 pm
by ryanbuckner
1) I have some triggers than monitor if I've left the windows open at night or if they are open and there is rain n the forecast
2) maps my car on a static google maps page and puts it on a control page
3) I have control page icons that show if the car doors are locked or unlocked
4) Text reminders when I need to get gas in the morning

OI had buttons on my control page that triggered the locks, horn, ventilation, and lights but it was based on the old API that required you to sniff your token. I see the code is still in the plugin but hasn't been enabled yet so I'll wait for you to have time to enable. I plan to start with things like:

1) Lock the car at night and unlock in the morning, even tho it's in a garage
2) Start the ventilation on days that the garage is warmer than 60 degrees

Re: New Plugin - BMW Connected Drive

PostPosted: Fri Apr 02, 2021 7:04 pm
by ChopOMatic
I was delighted to see this plugin, but now have no idea what to do with it. I figured there had to be an account device and a car device, so I successfully created both of those. I'm now at a loss as to how to get the info from the car. :(

Chop (not a coder)

Re: New Plugin - BMW Connected Drive

PostPosted: Fri Apr 02, 2021 7:41 pm
by ChopOMatic
Update: Here's what shows in the event log when I reload the plugin. Now that I think about it, I'm guessing I'm not getting info because I'm no longer subscribed to whatever it is BMW calls their "connected" service. I still have a working registration, but when the included-with-the-purchase service expired, I did not renew, and I'm guessing that's behind my lack of info.

Re: New Plugin - BMW Connected Drive

PostPosted: Fri Apr 02, 2021 7:52 pm
by FlyingDiver
That's probably true. It's a cloud API, same as the mobile app. If the mobile app doesn't show current data, then the plugin won't either.

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 03, 2021 8:17 pm
by ChopOMatic
That was it. I resubscribed and now have all manner of data incoming. :D

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 10:41 am
by ryanbuckner
ChopOMatic wrote:
That was it. I resubscribed and now have all manner of data incoming. :D


Awesome. Let us know what you are doing or plan to use it for. When @FlyDriver gets around to adding lock and ventilation controls it will be super fun to play with.

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 10:55 am
by FlyingDiver
I've worked on that some, and the API calls seem to be going through, but I don't see anything happen in the vehicle or the mobile app. :(

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 11:46 am
by ryanbuckner
FlyingDiver wrote:
I've worked on that some, and the API calls seem to be going through, but I don't see anything happen in the vehicle or the mobile app. :(


I'll be happy to try a beta version on my car if that helps

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 11:56 am
by FlyingDiver
All the changes for the new library are in a different branch for now, so look for the latest commits: https://github.com/FlyingDiver/Indigo-B ... -connected

This is one of the new plugin models that use Python 3, so installing it not a simple drop in replacement.

Requirements for version 1.0.0 and later:

macOS 10.15.7 or later (for Python 3)
Install and Run Xcode.app (upgrades Python to 3.8.X)

Confirm Python version:

Code: Select all
% /usr/bin/python3 --version
Python 3.8.2

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 12:06 pm
by ryanbuckner
What will the impact be on the existing 2.7 scripts that run on the Indigo service?

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 12:09 pm
by FlyingDiver
No impact. Python3 gets installed alongside Python2. My system is running a mix of old (Python2) and new (Python3) plugins and I've never seen any interactions.

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 12:48 pm
by FlyingDiver
In any case, the issue might be that my car doesn't get ConnectedDrive updates when in the garage. It never seems to have an update time after I last parked it.

Re: New Plugin - BMW Connected Drive

PostPosted: Sat Apr 10, 2021 3:51 pm
by ChopOMatic
My plugin was working until I upgraded the plugin to the version you linked a couple posts above. Now it gives me this:

Traceback (most recent call last):
File "plugin.py", line 9, in <module>
ImportError: No module named bmwcdapi

FYI, "working" means I was getting a bunch of data in about my car. I had not found any way in Indigo to do anything other than passively read the incoming states.

I'm running Python 3.8.2.