d4v3y0rk / ffpass

Use the command line or HTTP requests to start/stop the engine and lock/unlock the doors on your Ford vehicle.
https://www.npmjs.com/package/ffpass
61 stars 13 forks source link

Battery SoC? #12

Open andig opened 3 years ago

andig commented 3 years ago

Hi, does ffpass allow reading the battery soc for Ford EVs?

d4v3y0rk commented 3 years ago

Do you get the information you’re talking about in your fordpass app?

blumstrauss commented 3 years ago

Screenshot_20201026-105516

sorry for the large image - did not find a way to make it smaller...

andig commented 3 years ago

It would be great to get the following from the api if available:

andig commented 3 years ago

Also wondering if there's any way to get the list of vehicles. api/vehicles/v4/status doesn't work.

UPDATE: answering myself. Using the Ford portal I've found there is another API https://api.mps.ford.com/api/users/vehicles.

d4v3y0rk commented 3 years ago

@andig So if the data is available in the app then it should be contained in the vehicleData variable here https://github.com/d4v3y0rk/ffpass/blob/3294633a8f3ffd5180ae65a66b82e23a40261676/index.js#L28

You would simply need to inspect that JSON data and find the reference to it to log it out to the console with the rest of the information already logged in the lines that follow.

d4v3y0rk commented 3 years ago

@andig I do not have a hybrid or electric vehicle to test with so if you want to post a redacted version of that JSON object returned from the car.status() call I could make a branch you could test locally.

andig commented 3 years ago

The status endpoint contains various additional data. Unfortunately, I don't have credentials anymore to provide you the structure, sorry!