This module will allow you to control a FordPass Enabled vehicle from your javascript code. It requires a node version >=14.
npm install ffpass --save
const fordApi = require('ffpass')
const car = new fordApi.vehicle(process.env.FORD_USERNAME, process.env.FORD_PASSWORD, process.env.VIN)
async function main() {
await car.auth()
// to view current vehicle information including location
var vehicleData = await car.status()
console.log(JSON.stringify(vehicleData))
}
main()
A fully functional implementation of the usage of this module can be found here: ffpass