morrisonbrett / TeslaCommand

A Golang command line application to remind you to charge your Tesla vehicle based on GeoFencing.
8 stars 1 forks source link

Change stopped state to check for Park #7

Closed morrisonbrett closed 8 years ago

morrisonbrett commented 8 years ago

Right now it checks for 0 mph. It should check if the car is in 'Park'.

morrisonbrett commented 8 years ago

http://docs.timdorr.apiary.io/#reference/vehicles/state-and-settings/driving-and-position

Need to test while driving, because while parked I'm getting null for shift_state. Need to see if that's normal.

morrisonbrett commented 8 years ago

Fixed (c88157bc320bac05e369e019dcb6545d7e6103fa). If ShiftState is null or "P", then it's parked.