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']
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`