Tesla Owners Online Forum banner
1 - 20 of 27 Posts

·
Premium Member
2019 Tesla M3P
Joined
·
2,826 Posts
Discussion Starter · #1 ·
Has anyone here used the Teslamate app? I've been messing with it and thought it's worth sharing. Seems pretty cool to be able to spin up at home and have these granular details available locally.

https://github.com/adriankumpf/teslamate
 

·
Registered
Joined
·
16 Posts
Currently using it. Great app. Love the self-hosting aspect of it.
My current issue, which I'm fairly sure is not a Teslamate issue, is I'm hosting on the smallest AWS Lightsail instance, and the instance becomes unresponsive with 100% CPU utilization after a period of time. Sometimes it recovers, sometimes it requires a reboot. Need to figure that out.
 

·
Super Moderator
Joined
·
5,723 Posts
  • Like
Reactions: shareef777

·
Go Leafs Go
Joined
·
337 Posts
Nice, looks pretty trivial. Will give this a try soon!
 
  • Like
Reactions: jayanthvignesh

·
Premium Member
2019 Tesla M3P
Joined
·
2,826 Posts
Discussion Starter · #9 ·
Anyone get teslamate to work with multi factor auth enabled on their account?
 

·
Registered
Joined
·
12 Posts
Anyone get teslamate to work with multi factor auth enabled on their account?
I did setup using the above instructions, I had mfa setup on Tesla, surprisingly it did not change the auth flow. I was able to setup successfully.
 

·
Registered
Joined
·
3 Posts
I'm also using it. Great app! Only thing, I didn't get Traffic working, so no auth for me. Had to move it back into my private network as I didn't want anyone to track me.
Does anyone have an option how to get the app going with some user auth before accessing the backend (not Grafana)?
 

·
Banned
Joined
·
955 Posts
Tesla is the first car company that requires a password for access and driving.

Compromising the root password can allow someone to "enter and drive" your car.




I will NEVER give this password to a 3rd party app. I don't know what their security looks like. I don't know what TeslaFi or Teslascope or anyone's security looks like as a company. Are these people secure?

I almost don't even trust TESLA, however I don't have a choice there. lol
 

·
Premium Member
2019 Tesla M3P
Joined
·
2,826 Posts
Discussion Starter · #17 ·
Will it run in Docker instance? I'll have to play with it on my Synology
Yep, running it via Docker on my Mac, has been running stable for over a year.
 
  • Like
Reactions: TrevP

·
TOO Founder
Joined
·
5,662 Posts
I got it all running in Docker on my Synology

Instructions are here but there are some extra details you need to get it running successfully

1. Be sure to have Docker installed with the Package manager on your Synology
2. Login via ssh to your Synology
3. cd /volume1/@docker (this is the hidden directory where docker data is stored)
4. vi docker-compose.yml and paste in the following

version: "3"

services:
teslamate:
image: teslamate/teslamate:latest
restart: always
environment:
- DATABASE_USER=teslamate
- DATABASE_PASS=#insert your secure password!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
- MQTT_HOST=mosquitto
ports:
- 4000:4000
volumes:
- ./import:/opt/app/import
cap_drop:
- all

database:
image: postgres:13
restart: always
environment:
- POSTGRES_USER=teslamate
- POSTGRES_PASSWORD=#insert your secure password!
- POSTGRES_DB=teslamate
volumes:
- teslamate-db:/var/lib/postgresql/data

grafana:
image: teslamate/grafana:latest
restart: always
environment:
- DATABASE_USER=teslamate
- DATABASE_PASS=#insert your secure password!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
ports:
- 3000:3000
volumes:
- teslamate-grafana-data:/var/lib/grafana

mosquitto:
image: eclipse-mosquitto:2
restart: always
command: mosquitto -c /mosquitto-no-auth.conf
# ports:
# - 1883:1883
volumes:
- mosquitto-conf:/mosquitto/config
- mosquitto-data:/mosquitto/data

volumes:
teslamate-db:
teslamate-grafana-data:
mosquitto-conf:
mosquitto-data:


4. Change #insert your secure password! to a password your liking and save the file
5. run sudo docker-compose up -d and let it download and build
6. Fire up your browser and type in the IP address of your Synology on port 4000 eg: 192.168.1.2:4000
7. You will be prompted for your Tesla credentials. Forget about using your email and password, you need to use Access and refesh tokens! I used this app to login got my Tesla account with my email, password and 2FA code to get the required tokens.

8. Paste in the tokens and sign in
9. Go under Settings and paste in the same ip address under Dashboards of your Synology but change the port to 3000 (eg: 192.168.1.2:3000) This will enable the Dashboards dropdown menu on the main page where you can see generated graphs.

Hopefully this helps some of you who want to run TeslaMate on your local network. You *can* do it on a remote server but it's a bit more involved.
Give TeslaMate some time to collect data, don't expect to see much at first.
 

·
TOO Founder
Joined
·
5,662 Posts
Started off on the right foot from day 1 with TeslaMate running on my system keeping tabs on FIRE.
Tracking all the data from drives, charges, SOC etc… Look how crazy efficient this car is…

Rectangle Font Slope Screenshot Line
 
1 - 20 of 27 Posts
Top