Sponsored

TeslaMate on Synology NAS (Quick Guide)

Red Beard Ops

Well-known member
First Name
James
Joined
Jun 27, 2024
Threads
15
Messages
72
Reaction score
85
Location
Texas
Website
www.youtube.com
Vehicles
2024 Cybertruck AWD
Occupation
Engineer
Country flag
Not sure if this is the best place to put this... But I just went though the process of installing TeslaMate in a docker container on my Synology NAS (Network Attached Storage) device...

It took me 3 hours since I'm an armature and have never done this before... so I thought it could be useful to yall here for a short guide.
  1. Have this Docker Install Doc on hand - https://docs.teslamate.org/docs/installation/docker/
  2. Log onto your Synology NAS and install "Container Manager"
  3. Go to "Registry" and search for TeslaMate -> Then Download it
  4. Navigate to your File Station then to the "docker" folder
    1. Create a folder in here for your docker container ("TeslaMate_CT" for me)
  5. Go to "Project" and select create new project
    1. Name project (I did "teslamate")
    2. Path set to "TeslaMate_CT" from step 4
    3. Source = Create docker-compose.yml
    4. Navigate to Docker Install Doc from step 1 and copy and past that into the Create Project window
      1. Create an ENCRYPTION_KEY (I used a PW manager)
      2. Create an DATABASE_PASS / POSTGRES_PASSWORD (I used a PW manager for this one too)
    5. Don't set up the web portal
    6. Click Done
  6. It then started up 4 containers in the "Container" Tab. One of them was red and not working due to a file path issue.
    1. to fix this issue I created the folders it says it was missing. One of them was "import" inside of the docker/TeslaMate_CT folder. The second was createing the path docker/TeslaMate_CT/opt/app/import
  7. Download Tesla_Auth from here to generate API tokens with your Tesla Log-in info - https://github.com/adriankumpf/tesla_auth
    1. You'll get two tokens
  8. Open a new tab in your browser and type in your NAS's IP address followed by :4000
    1. Use your API keys here
    2. Your vehicle should show up in this viewer with some basic stats
  9. Open a second tab in your browser and type in your NAS's IP address followed by :3000
    1. log into this with admin and the user name and admin as the pw... then create a new pw
    2. this is the dashboard that you can use to view your data from Grafana
  10. Then start driving/charging your car to collect the data!

Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) 1722018765020-et


Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) 1722018772338-1m


Just ran 1 charge to verify it's collecting:
Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) 1722018801577-j0


Hope this helps someone!
Cheers,
Red Beard Ops
Sponsored

 

Pops

Well-known member
Joined
Dec 31, 2023
Threads
35
Messages
1,204
Reaction score
2,548
Location
Houston, TX
Vehicles
MY, CyberBeast
Country flag
Thanks for the instructions. Do you mind explaining what this is and why anyone would want it?
 

fishtek

Well-known member
Joined
Apr 2, 2021
Threads
5
Messages
163
Reaction score
326
Location
Nebraska
Vehicles
2024 AWD CT
Country flag
Nice write up! I also use TeslaMate and really enjoy the various stats and metrics!

Thanks for the instructions. Do you mind explaining what this is and why anyone would want it?
It is a self hosted replacement for TeslaFi or TeslaScope.

Here are a couple screenshots from mine to give you an idea of what it provides.
Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) Screenshot 2024-07-26 at 2.00.30 PM

Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) Screenshot 2024-07-26 at 2.01.14 PM

Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) Screenshot 2024-07-26 at 2.02.15 PM

There are a ton more dashboards and probably many more things I don't even use yet.
Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) Screenshot 2024-07-26 at 2.00.38 PM
 
OP
OP
Red Beard Ops

Red Beard Ops

Well-known member
First Name
James
Joined
Jun 27, 2024
Threads
15
Messages
72
Reaction score
85
Location
Texas
Website
www.youtube.com
Vehicles
2024 Cybertruck AWD
Occupation
Engineer
Country flag
Thanks for the instructions. Do you mind explaining what this is and why anyone would want it?
Opensource dashboard to collect data from your Tesla. Trips/Charging/etc

This video shows it off:

 
OP
OP
Red Beard Ops

Red Beard Ops

Well-known member
First Name
James
Joined
Jun 27, 2024
Threads
15
Messages
72
Reaction score
85
Location
Texas
Website
www.youtube.com
Vehicles
2024 Cybertruck AWD
Occupation
Engineer
Country flag
@fishtek My CT isn't sleeping. Is there a setting to have TeslaMate stop polling it or to let it sleep somehow?

Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) 1722082955117-c8


I do have sentry mode on.... is that it?
 


bowenzhang

Active member
First Name
Bowen
Joined
Jul 7, 2024
Threads
9
Messages
29
Reaction score
32
Location
Seattle, WA
Vehicles
Cybertruck Dual Motor AWD
Country flag
I see several paid third party services/apps there and some open source ones like this.
I am curious what additional data/view do they provide / better represent than Tesla app/dashboard that is actually valuable for daily use?
 

AlmostHuman

Well-known member
Joined
May 1, 2024
Threads
7
Messages
985
Reaction score
1,349
Location
Earth
Vehicles
Model X, Cybertruck
Occupation
Human
Country flag
@fishtek My CT isn't sleeping. Is there a setting to have TeslaMate stop polling it or to let it sleep somehow?

1722082955117-c8.png


I do have sentry mode on.... is that it?
Also use TeslaMate, love the stats.

Yes sentry mode will keep it awake. I have noticed that the Cybertruck does not sleep as well as our Model X. I have a feeling it is the digital phone key. When the Tesla app (iOS) got updated to version 4.35.0 I saw our X be asleep for three days which was a record. I think the phone key is waking the Cybertruck often. I see the “Phone key connected” when I am sitting in the living room around 60 feet from the truck in the garage.


Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) IMG_9213

Tesla Cybertruck TeslaMate on Synology NAS (Quick Guide) IMG_9168
 
OP
OP
Red Beard Ops

Red Beard Ops

Well-known member
First Name
James
Joined
Jun 27, 2024
Threads
15
Messages
72
Reaction score
85
Location
Texas
Website
www.youtube.com
Vehicles
2024 Cybertruck AWD
Occupation
Engineer
Country flag
Interesting... I wish I could schedule sentry mode... I park my truck outside at night and would love to have it on while dark and off during the day.

I've just left it on at all times since I've owned it. Not sure if that's "bad for it" but it does drain some battery!
 

jaredhobbs

Well-known member
First Name
Jared
Joined
Dec 21, 2023
Threads
2
Messages
63
Reaction score
100
Location
SLC, UT
Vehicles
Cybertruck AWD Foundation Series
Country flag
Interesting... I wish I could schedule sentry mode... I park my truck outside at night and would love to have it on while dark and off during the day.

I've just left it on at all times since I've owned it. Not sure if that's "bad for it" but it does drain some battery!
You could use the Shortcut app on iPhone to schedule sentry mode on/off
 


Frank_Castle

Well-known member
First Name
Frank
Joined
Feb 25, 2024
Threads
19
Messages
192
Reaction score
134
Location
Ohio
Vehicles
Foundation series AWD ordered
Country flag
Not sure if this is the best place to put this... But I just went though the process of installing TeslaMate in a docker container on my Synology NAS (Network Attached Storage) device...

It took me 3 hours since I'm an armature and have never done this before... so I thought it could be useful to yall here for a short guide.
  1. Have this Docker Install Doc on hand - https://docs.teslamate.org/docs/installation/docker/
  2. Log onto your Synology NAS and install "Container Manager"
  3. Go to "Registry" and search for TeslaMate -> Then Download it
  4. Navigate to your File Station then to the "docker" folder
    1. Create a folder in here for your docker container ("TeslaMate_CT" for me)
  5. Go to "Project" and select create new project
    1. Name project (I did "teslamate")
    2. Path set to "TeslaMate_CT" from step 4
    3. Source = Create docker-compose.yml
    4. Navigate to Docker Install Doc from step 1 and copy and past that into the Create Project window
      1. Create an ENCRYPTION_KEY (I used a PW manager)
      2. Create an DATABASE_PASS / POSTGRES_PASSWORD (I used a PW manager for this one too)
    5. Don't set up the web portal
    6. Click Done
  6. It then started up 4 containers in the "Container" Tab. One of them was red and not working due to a file path issue.
    1. to fix this issue I created the folders it says it was missing. One of them was "import" inside of the docker/TeslaMate_CT folder. The second was createing the path docker/TeslaMate_CT/opt/app/import
  7. Download Tesla_Auth from here to generate API tokens with your Tesla Log-in info - https://github.com/adriankumpf/tesla_auth
    1. You'll get two tokens
  8. Open a new tab in your browser and type in your NAS's IP address followed by :4000
    1. Use your API keys here
    2. Your vehicle should show up in this viewer with some basic stats
  9. Open a second tab in your browser and type in your NAS's IP address followed by :3000
    1. log into this with admin and the user name and admin as the pw... then create a new pw
    2. this is the dashboard that you can use to view your data from Grafana
  10. Then start driving/charging your car to collect the data!

1722018765020-et.png


1722018772338-1m.png


Just ran 1 charge to verify it's collecting:
1722018801577-j0.png


Hope this helps someone!
Cheers,
Red Beard Ops
Bad ASS! Great post with a great amount of detail. My Synology is in for repair right now. Will try this when it gets back.
 

AlmostHuman

Well-known member
Joined
May 1, 2024
Threads
7
Messages
985
Reaction score
1,349
Location
Earth
Vehicles
Model X, Cybertruck
Occupation
Human
Country flag
If anyone wants to run TeslaMate but doesn’t have a NAS you can also install the docker image on an other machines. For example I have it install on a virtual machine (VM) that is running Ubuntu. Decided to run it there so I can easily take snapshots of the VM prior to version upgrades of TeslaMate.
 

mongo

Well-known member
Joined
May 27, 2024
Threads
5
Messages
4,521
Reaction score
5,499
Location
SE Michigan
Vehicles
Cyberbeast
Country flag
Also use TeslaMate, love the stats.

Yes sentry mode will keep it awake. I have noticed that the Cybertruck does not sleep as well as our Model X. I have a feeling it is the digital phone key. When the Tesla app (iOS) got updated to version 4.35.0 I saw our X be asleep for three days which was a record. I think the phone key is waking the Cybertruck often. I see the “Phone key connected” when I am sitting in the living room around 60 feet from the truck in the garage.


IMG_9213.jpeg

IMG_9168.jpeg
For us (Android), the phone key full wakeup issue was resolved in a recent SW update (currently 2024.20.9). With sentry off, it can go 5 days between charge top ups (4 days of no driving and no charging)
 

Shrey

Well-known member
First Name
Shrey
Joined
Mar 17, 2024
Threads
2
Messages
106
Reaction score
79
Location
Canada
Vehicles
CyberBeast
Country flag
I have TM running on my linux server and already collecting data for my wifes MYP. Im expecting to get my CT Oct - Nov '24.

How do I ensure to have two vehicles in the same TM instace? Just restart the container once the vehicle is added to the account? any ideas?

FYI - CT "added" to the app with just the RN# but no VIN / assignment yet- I did restart the container in this app state and nothing showed up in TM so im assuming I'll need Telsa to actually add the car to my account upon pickup and restart the container for it to work.
 
Last edited:

BobA

New member
First Name
Bob
Joined
Sep 8, 2024
Threads
0
Messages
3
Reaction score
0
Location
London, UK
Vehicles
Tesla M3LR
Country flag
Hi @Red Beard Ops,
Thanks for this post, it's very clear and concise, not a problem with your guide or method, unfortunately it leaves me in exactly the same situation as when I try installing TM using the SSH method.

I'm hoping that you or any other Synology & TM users might have some suggestions I can try, I've been pulling my hair out for a few weeks now trying various Internet suggestions, including yours of course.

Basically via this method and the SSH method leave me with the 4 containers running without errors apart from the TM Containers continually logging it can't connect to the Db and I assume because of this I can't connect to the TM webpage on port 4000.

Again, great guide and hoping someone might have the magic answer to help me :)

I'm also going to log a Ticket with Synology Support in case something is broken on my Synology Box.

Thanks,
Bob
Sponsored

 
 








Top