d4v3y0rk / ffpass

Use the command line or HTTP requests to start/stop the engine and lock/unlock the doors on your Ford vehicle.

Home Page:https://www.npmjs.com/package/ffpass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battery SoC?

andig opened this issue · comments

commented

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

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

Screenshot_20201026-105516

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

commented

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

  • battery soc
  • remaining range
  • remaining charge duration (if available)
commented

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.

@andig So if the data is available in the app then it should be contained in the vehicleData variable here

var vehicleData = await car.status()

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.

@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.

commented

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