Skip to content

If you own a tesla and wanna figure out what route is best for daily commute, try it!

License

Notifications You must be signed in to change notification settings

ericdum/tesla-race

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tesla Race (based on teslamate)

The project is use to animate the trajectories of tesla trip to compare each trajectory with time dimension. For example, you can do such a kind of race between two point to find out a best path from origin to destination.

20230223155759

2.21.mp4

Usage

Local

  1. Signup to MapBox for a access token at https://account.mapbox.com/ for free.
  2. Download project and execute command in the root directory MAPBOX_TOKEN=token node main.js
  3. Access http://localhost:3000/

Docker

  1. Signup to MapBox for a access token at https://account.mapbox.com/ for free.
  2. docker pull ericdum/tesla-race:latest
  3. docker run -p 3000:3000 -e PG_PORT=... -e PG_HOST=... -e MAPBOX_TOKEN=your_token ericdum/tesla-race

Database

The protect using postgres provided by teslamate.

To configurate the database connection by set env var like PG_PORT, PG_HOST,... find more in lib/postgres.js

Privacy protect

If you want to show the page to anyothers but want to hide your home or your work place, you can add a polygon area into main.js.

FYI, you can easily gernerate the polygon by https://geojson.io/

Todo

  • Autocomlete search for OD.
  • Add a Timer.
  • Give a Classifier for different type of route.
  • Enhance OD searching by street addresses.
  • Support long range travel.
  • Custom replay speed
  • Give charts for speed, AP status,...
  • Drop icons to the map when meet red lights.
  • Cluster by different trajectory and give different color to their marker.
  • Date Picker

Contributes

Welcome to contributes, you can either add on framework or implement features, pls fork and make pull request.

About

If you own a tesla and wanna figure out what route is best for daily commute, try it!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages