Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

TeslaMate [megathread]

This site may earn commission on affiliate links.
Two Questions...

1) How does TeslaMate calculate speed? Based on my recent drives it doesn't seem to record it that well (i.e., exceeding 90mph never made it on the graph). Does the Tesla API not provide actual speed and TeslaMate calculates it?

2) Is there any "downside" to running two instances of TeslaMate on two different systems as redundancy connected tto the same account?
 
Last edited:
Two Questions...

1) How does TeslaMate calculate speed? Based on my recent drives it doesn't seem to record it that well (i.e., exceeding 90mph never made it on the graph). Does the Tesla API not provide actual speed and TeslaMate calculates it?

2) Is there any "downside" to running two instances of TeslaMate on two different systems as redundancy connected tto the same account?

2) no - it's read-only from the API
 
Two Questions...

1) How does TeslaMate calculate speed? Based on my recent drives it doesn't seem to record it that well (i.e., exceeding 90mph never made it on the graph). Does the Tesla API not provide actual speed and TeslaMate calculates it?

2) Is there any "downside" to running two instances of TeslaMate on two different systems as redundancy connected tto the same account?
For redundancy why not setup auto backups to cloud or similar? There’s a good guide for Google drive backups online.
 
Two Questions...

1) How does TeslaMate calculate speed? Based on my recent drives it doesn't seem to record it that well (i.e., exceeding 90mph never made it on the graph). Does the Tesla API not provide actual speed and TeslaMate calculates it?

2) Is there any "downside" to running two instances of TeslaMate on two different systems as redundancy connected tto the same account?

Not sure if it would apply to teslamate as it doesn’t actually send commands that would wake the car up but mixing apps can cause issues, so two instances *could* impact the cars ability to sleep efficiently. You would probably be better off looking into additional redundancy and replication/automated backup for the database.
 
1) How does TeslaMate calculate speed? Based on my recent drives it doesn't seem to record it that well (i.e., exceeding 90mph never made it on the graph). Does the Tesla API not provide actual speed and TeslaMate calculates it?
Speed comes from the API. If I zoom in on a trip I appear to be getting stats every 1/4 of a second. If the graph is zoomed out then the traces will be averaged out so you will lose some detail.

1638869507926.png


1638869467729.png
 
Apologies if this has already been asked, I've had a search and cannot see any previous info.

What is the best way to get the Docker to auto restart after a reboot/powerfailure? I'm assuming it doesn't and I haven't rebooted my RPi since installing TM last week to test it?
 
Apologies if this has already been asked, I've had a search and cannot see any previous info.

What is the best way to get the Docker to auto restart after a reboot/powerfailure? I'm assuming it doesn't and I haven't rebooted my RPi since installing TM last week to test it?
Mine restarts automatically after either a controlled reboot or an uncontrolled power cut on a Pi4. I don’t think I did anything special to get this to happen, just followed the set up instructions.

If you want to test just “sudo reboot” then run “docker ps” when you log back in - all containers should be running.
 
  • Like
Reactions: beef68
Apologies if this has already been asked, I've had a search and cannot see any previous info.

What is the best way to get the Docker to auto restart after a reboot/powerfailure? I'm assuming it doesn't and I haven't rebooted my RPi since installing TM last week to test it?
I use docker-compose as documented here: Docker install | TeslaMate
That configures docker to auto-start / restart each container as necessary.

Also makes updating easy as well - you just need to run two commands to update all the images:
$ docker-compose pull
$ docker-compose up -d
 
I'm not concerned so much about Pi crasihng and losing data, more that for whatever reason it *stops* logging in which case auto back up wont' help at all
Only time this happened for me is after a power outage at home where everything except my switch came back up fine which meant the Pi had not internet connectivity. Bit annoying but not the end of the world, especially as the switch is really old so should probably be replaced.
 
So I had an instance of Teslamate running on a disk that started to fail. It took me a while to pull the backup and old data off the dying drive and in the meantime I setup and have been using a new instance. Is there any way to do an upcert from the backup file to my new instance? What's the best way to get old data into a new db since I assume a restore would wipe out anything exsiting in the db right?
 
So I had an instance of Teslamate running on a disk that started to fail. It took me a while to pull the backup and old data off the dying drive and in the meantime I setup and have been using a new instance. Is there any way to do an upcert from the backup file to my new instance? What's the best way to get old data into a new db since I assume a restore would wipe out anything exsiting in the db right?
You can merge the databases if you have good DBA skills. Not an easy thing to do otherwise. Couple of discussions on the Teslamate GitHub:

 
  • Like
Reactions: jroydog
Now I have finally received my Model 3, I can now use the Teslamate set up I did back in October. Everything works as expected but I'm not sure the backups to Google Drive are working. When I first set up the backups the folders appeared in Google Drive each day, but they never show a modified date, just the original date they were created back in October. Is something wrong? Should the modified date be set to the day any new backups were added?
 

Attachments

  • Screenshot 2021-12-21 at 07.49.31.png
    Screenshot 2021-12-21 at 07.49.31.png
    35.5 KB · Views: 42