edent / BMW-i-Remote

A reverse engineered interface for the BMW i3 Electric Car
MIT License
389 stars 60 forks source link

GET works great, POST times out #14

Closed ryanbuckner closed 8 years ago

ryanbuckner commented 8 years ago

I'm able to use the script in the US to gather information about my 535ix. However, the POST always times out. I'm interested in the best way you guys think to troubleshoot

Here's the part of the code that times out:

`import bmw import time

c = bmw.ConnectedDrive() resp = c.call('/user/vehicles/') vin = resp['vehicles'][0]['vin']

service = 'LIGHT_FLASH' print "Sending {} request...".format(service) resp = c.executeService(vin, service) status = resp['executionStatus']['status'] while status in ('INITIATED','PENDING'): print status time.sleep(2) check = c.call('/user/vehicles/{}/serviceExecutionStatus?serviceType={}'.format(vin, service)) status = check['executionStatus']['status']

print status`

ryanbuckner commented 8 years ago

closing issue. Changed to .us and it worked.