Advertisement
Guest User

Untitled

a guest
Mar 30th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import teslajson
  2.  
  3. user = "your_tesla_login@email.com"
  4. password = "your_tesla_email"
  5. c = teslajson.Connection(user, password)
  6. for vehicle in c.vehicles:
  7. print( "{} has the following options enabled: ".format(vehicle["display_name"]))
  8. for option in vehicle["option_codes"].split(","):
  9. print(option)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement