View Code? Open in Web Editor
NEW
License: Apache License 2.0
bmw2018's Introduction
- Gets token from BMW API
- Uses token to get battery information for a specific VIN
- Compares battery % to previous %, if saved
- If battery is 100% and last reading was less than 100% (to prevent multiple "hits"), send SMS via AWS
- If battery is 100% and last reading was 100%, do nothing
- Also send SMS via AWS if mileage hits 40mi available (just enough for me to get home from work)
Hope this is useful.
bmw2018's People
Contributors
Stargazers
Watchers
bmw2018's Issues
Helooo please help
After 15.2.2020 not function :-(
server change to customer.bmwgroup.com for auth - OK
After 20.2.2020 not function
13:50:03,40 root INFO last_percent loaded with a value of 65
13:50:03,168 root ERROR Unable to login
[root@CL-ITNK-BMW ~]# ./bmw/bmw.py
https://customer.bmwgroup.com/gcdm/oauth/authenticate
<Response [401]>
[root@CL-ITNK-BMW ~]#
idea ? thanks
Hello,
i tried run script on my MacBook-Pro$ python bmw.py
and it shows:
File "bmw.py", line 101
logging.info(f'last_percent loaded with a value of {last_percent}')
What i doing wrong? Thnx.