Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register
  • We just completed a significant update, but we still have some fixes and adjustments to make, so please bear with us for the time being. Cheers!

TeslaMate: Yet another self-hosted data logger for your Tesla

GuBo

New Member
Aug 31, 2019
1
0
Germany
I installed the Raspberry Pi version and have several questions to it:
What is the root password for a connection with ssh?
Opening port 3000 and login in to Grafen is not accepting my grafana user id and password, which one can I use?
What is the recommended way to update to the current version?
Which files/folders do I need to backup ton ensure that the data of my Tesla is not lost ind case of something happens with the raspberry or SD Card?

Thanks
 

TimMotorClub

Member
Oct 21, 2019
7
2
Toronto
I think I figured out the answer to my own question.

Seems these need to be called via CURL by command line. Tried that and it works. I likely wrongly assumed you could hit these URL's with a web browser.

These type of links don't seem to work on my Docker instance. I get a "Not Found" returned on the webpage:

http://localhost:4000/api/car/1/logging/suspend

Also, I'm not sure if I am supposed to be suspending and / or resuming TeslaMate etc. There seems to be nothing describing why or when I need to be doing that or if I need to be doing that. Bit confused on this aspect.
 

TimMotorClub

Member
Oct 21, 2019
7
2
Toronto
Anyone have instructions for moving the docker image(s) to another system? Technically I just set this up on my MAC laptop really quickly to take a quick look at it. But its too slick so I want to move (and the data saved so far) to a Windows box that I have running all the time. Worse case scenario I can also move it to a MAC system that I keep running all the time.

It would be nice to just pick up these containers (including any data saved so far) and bring it up on another system.

If that is not possible then building on a new system and exporting / importing the data.
 

Retiredeh

Member
Jun 28, 2019
13
2
BC
Thanks much to @addison and @Big Tony Tones for this amazing initiative!! I’m anxious to get this up and running on my pi and get Teslamate running.
I am a total neophyte with raspberry pi other than having a few preprogrammed RasPi iot devices on my network. Bought a RasPi 4 downloaded the image file flashed it to a 32 gig sd card booted the pi up and I’m now stuck at a login request. Have tried every user name and password I can find suggested on the net but no luck.
The pi forum states the pi4 boots differently from the pi3 via the eprom so now suspect I should have gone with the pi3 to use.
Any suggestions out there to help me get this working on the pi4?
 

f205v

Member
May 12, 2018
641
739
Tessin, Switzerland
Would it be possible to have this software as an old simple traditional install.exe for win10?
I know nothing about linux rapsberry docker etc. but would really like to have it running on my PC.
Thanks.
 

Stach

Member
Mar 23, 2019
434
222
Madison, WI
Not sure how exactly you configured your TeslaMate, but I updated my guide with how to use Tasker with Bluetooth to resume logging. Maybe you can find some tips here:

TeslaMate – DigitalOcean Docker (Step-by-step installation guide) | satheesh.net

I'm missing some Drive Details as well (shown as a diagonal line on the map), so I am guessing that the Tesla didn't start/resume logging until I reached my destination and then correctly showed my return path home.

I have an iPhone. Are there any iOS / iPhone solutions that automatically resume logging???

upload_2019-11-20_10-54-34.png
 
Last edited:

m3snowy

Member
Apr 15, 2018
217
183
cloud
Thanks @addison for such an amazing app! Looking forward to v2!

I'm running mine on a Synology NAS (per instructions linked from this thread) with the Recommended/Basic setup (no reverse proxy). To send the suspend/resume commands from my Android phone, I'm using Tasker to open an OpenVPN connection to my home VPN server and disconnecting afterwards, with a Profile being BT Near my car's Bluetooth.

fyi for anyone interested:
How do I use tasker with OpenVPN Connect for Android? | OpenVPN
 

Retiredeh

Member
Jun 28, 2019
13
2
BC
I’m getting a file corruption error downloading this file to a
Windows 10 laptop. Is anyone else having the same problem?
File seems to be ok...had to extract the image file in order to flash it to an sd card using Etcher....was getting validation errors using the zipped file.
Managed to get Teslamate running fine on a pi 4 with a 64gB Ed card
 

Retiredeh

Member
Jun 28, 2019
13
2
BC
You must extract the zip file and flash the file that is in that zip file.
You can use etcher program to flash, but I personally used win32diskimager
Agreed!! Etcher says it can use the zip file but definitely not so! I'm new to this...Thanks again for your great support!
 

Stach

Member
Mar 23, 2019
434
222
Madison, WI
I've got this up and running in Ubuntu over HTTP just Great and Love It!

So, if I want to enable secure remote access to it over HTTPS, can I just follow the Advanced section of Satheesh's excellent document, and then starting up the modified version of docker-compose.yml? Will my existing data in the database still be available?

Probably the main reason for wanting to do this is to make sure I don't miss data collection, and end up with the straight diagonal lines on my map history, so that I get the complete picture. Thoughts?

upload_2019-11-30_9-53-47.png


Thoughts?
 

hugh_jassol

Member
Jan 26, 2019
710
756
Los Angeles
I've got this up and running in Ubuntu over HTTP just Great and Love It!

So, if I want to enable secure remote access to it over HTTPS, can I just follow the Advanced section of Satheesh's excellent document, and then starting up the modified version of docker-compose.yml? Will my existing data in the database still be available?

Probably the main reason for wanting to do this is to make sure I don't miss data collection, and end up with the straight diagonal lines on my map history, so that I get the complete picture. Thoughts?

View attachment 483086

Thoughts?
The secure remote access has nothing to do with the data collection... teslamate (and all others) collect the data by polling the Tesla servers... they don't connect in... teslamate connects out.

The reason to set up remote access is if you want to view the data when you are not on your local network.

EDIT: The remote access can help you not miss the beginning of drives, but you need set up a Tasker or Siri shortcut that fires when you connect to your car's BT.

And to answer your question, as long as you didn't delete the docker data volume then the data will remain
 

BigTonyTones

Member
Nov 28, 2016
626
517
Los Angeles
I've got this up and running in Ubuntu over HTTP just Great and Love It!

So, if I want to enable secure remote access to it over HTTPS, can I just follow the Advanced section of Satheesh's excellent document, and then starting up the modified version of docker-compose.yml? Will my existing data in the database still be available?

Probably the main reason for wanting to do this is to make sure I don't miss data collection, and end up with the straight diagonal lines on my map history, so that I get the complete picture. Thoughts?

View attachment 483086

Thoughts?
As hugh mentioned, data collection has nothing to do with viewing your data. Software already collects data from Tesla through https.
Now if you want to view your data through an https connection, you can use stunnel if you happen to use pfsense for your rotuer.

Stunnel is a cool little plugin that makes an https wrapper for anything that does not natively support https.
 

BigTonyTones

Member
Nov 28, 2016
626
517
Los Angeles
Was looking for a way to autoupdate the docker image. Found this great program that will auto update docker images

To install just login and run

sudo docker run -d --name ouroboros \
-v /var/run/docker.sock:/var/run/docker.sock \
pyouroboros/ouroboros

Wait a few minutes and everything gets updated.
 

About Us

Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.

Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


SUPPORT TMC
Top