This small NodeJS application uses ffpass to track your vehicle location and alerts you when it leaves a predefined area.
You will need to setup a few things in order to use this:
- A telegram account
- A telegram bot account
- A Geocodio account
- Your vehicle must already be registered with FordPass
Create a .env
file containing the following content:
VIN="<your vehicle VIN number>"
FORD_USERNAME="<your fordpass username>"
FORD_PASSWORD="<your fordpass password>"
MAPS_API_KEY="<your geocodio api key>"
TELEGRAM_TOKEN="<telegram bot token>"
TELEGRAM_USER="<your telegram user id number>"
Once that is created, in the code set the predefined area by changing the home zip code.
The home variable can be more complex but I just used zip code for demonstration purposes.
Then run the application:
node index.js
You can have this run all the time on your computer using docker.
After your have done the setup steps and created a .env file...
docker build --tag="vehicletracker" .
docker run -d vehicletracker