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

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

This site may earn commission on affiliate links.
Setting this up on a Rpi but having trouble starting it.

(Created docker-compose.yml file)
Afterwards start everything with docker-compose up
(This gets "command not found")

More interesting if I do this:
pi@TeslaMate:~ $ docker run docker-compose up
Unable to find image 'docker-compose:latest' locally
docker: Error response from daemon: pull access denied for docker-compose, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

pi@TeslaMate:~ $ docker search TeslaMate
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
teslamate/teslamate A data logger for your Tesla 5
teslamate/grafana A custom grafana image that auto provisions … 1
siomiz/teslamate 0



I seem to be missing something here.
 
Last edited:
Has anyone seen their Tesla sleep for more than an hour? My car consistently sleeps for roughly 1 hour increments twice a night. Have never seen it sleep for longer than an hour (even when I was away on travel and car was parked at the airport for over 10 days). I'm wondering if it is a car settings issue or TeslaMate somehow triggers a change from "sleep" to "online"....
 
Can you please explain the values for the temperatures graph - specifically is_climate_on and fan_status?

I am looking at some vampire drain charts with high drain where climate on is 1 and fan status is usually a non 0 number such as 3 or 5.

Thanks!
 
Im running mine on ubuntu. Anyone know how to get "docker-compose up" command to run on start?

Having a surprisingly hard time for some reason.

Yes, add this command after every image-link in your docker-compose.yml file:
restart: unless-stopped

Example:
grafana:
image: teslamate/grafana:latest
restart: unless-stopped
environment:


Tip, run this command to run in console background:
docker-compose up - d

Docker step-by-step guide:
TeslaMate – DigitalOcean Docker (Step-by-step installation guide) | satheesh.net
 
Thanks, it looks awesome, I got it running on a RPi 3 (Let me know if anyone wants the img for it)

How does the "Time to Try Sleeping" work? is that how long I want the logger to keep the car awake after a drive or is it how long it'll wait in between sleeping states to send a new request?

Hey. I'd love to check out and get your Rpi image if you still have it. Been struggling to get this going as well.
 
I too was able to get this running just fine on QNAP NAS via ssh. Fantastic set up. After some time though, I’d like to compile an overlay graph of my charging data, specifically supercharging data. Is there a way to create a panel to plot charge rates vs % or miles remaining base on when supercharging is true?
Any chance you might have time to develop and share detailed instructions of the sort created in this earlier posting by drklain (his were for the Synology box)? What platform were you using (fingers crossed that it was a Mac)? Congrats on getting it working, I hope you find it very helpful.
 
Last edited:
Here is my rapsberry pi 3 image. Made with a fresh copy of raspbian with all the latest updates.
The pi will reboot itself once full loaded . Give it a few minutes before everything starts. I would say it needs about 5 minutes in total time before the web interface is up
Visit http://x.x.x.x:4000 to login to tesla account
Visit http://x.x.x.x:3000 to for detailed charts

Teslamate will autoload every time the pi is powered off and back on again.

https://wetransfer.com/downloads/0217e4272a23d942095f3bcd048ff98620191102234259/52d8b8689dc63c65503419927f68d43d20191102234259/06ba7d
 
Here is my rapsberry pi 3 image. Made with a fresh copy of raspbian with all the latest updates.
The pi will reboot itself once full loaded . Give it a few minutes before everything starts. I would say it needs about 5 minutes in total time before the web interface is up
Visit http://x.x.x.x:4000 to login to tesla account
Visit http://x.x.x.x:3000 to for detailed charts

Teslamate will autoload every time the pi is powered off and back on again.

https://wetransfer.com/downloads/0217e4272a23d942095f3bcd048ff98620191102234259/52d8b8689dc63c65503419927f68d43d20191102234259/06ba7d


You are awesome @BigTonyJones! I really appreciate it. Downloading now and my new Pi is going to arrive Monday. I'll let you know how it goes. :D:D:D:D
 
Any chance you might have time to develop and share detailed instructions of the sort created in this earlier posting by drklain (his were for the Synology box)? What platform were you using (fingers crossed that it was a Mac)? Congrats on getting it working, I hope you find it very helpful.

I am on Windows 7 and used PuTTY for ssh. After re-reading the Synology directions, the same applies to the QNAP with the small exception that you'll want to install Container Station from the QNAP App Center and the directory you want to place the yml file is /share/Container.
 
  • Helpful
Reactions: berkeley_ecar
However, when I needed to restart the NAS to update the firmware, I'm having problems starting the Teslamate container. Here is what I did:
- update to latest docker-compose.yml based on github
- docker-compose pull <- this took about 30 seconds to complete
- docker-compose up

Here is the output:
container_grafana_1 exited with code 1
grafana_1 | Failed to send request: Get https://grafana.com/api/plugins/repo/pr0ps-trackmap-panel: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
grafana_1 | Error: â Failed to send request. error: Get https://grafana.com/api/plugins/repo/pr0ps-trackmap-panel: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
grafana_1 |
grafana_1 | NAME:
grafana_1 | Grafana cli plugins install - install <plugin id> <plugin version (optional)>
grafana_1 |
grafana_1 | USAGE:
grafana_1 | Grafana cli plugins install [arguments...]
mosquitto_1 | 1572805927: New connection from 172.29.4.1 on port 1883.
mosquitto_1 | 1572805927: Client <unknown> disconnected due to protocol error.
container_grafana_1 exited with code 1
<repeat>

Am I missing something?
 
  • Helpful
Reactions: berkeley_ecar
@BigTonyTones , Thanks very much for the Pi image. I used etcher and burned it to a 32GB MicroSD, put it in the pi, plugged it into a network cable & booted it up. After logging in at X.X.X.X:4000 it seems to see my car and is up and running. I'm not sure what to do with the Grafana page at X.X.X.X:3000. I guess I'll drive around tomorrow and see what happens. Thanks!!!

upload_2019-11-4_22-21-30.png

upload_2019-11-4_22-25-40.png
 
Last edited:
@BigTonyTones , Thanks very much for the Pi image. I used etcher and burned it to a 32GB MicroSD, put it in the pi, plugged it into a network cable & booted it up. After logging in at X.X.X.X:4000 it seems to see my car and is up and running. I'm not sure what to do with the Grafana page at X.X.X.X:3000. I guess I'll drive around tomorrow and see what happens. Thanks!!!

View attachment 473328
View attachment 473330

Click the dropdown icon at the top next to "Home", then click on "TeslaMate"

upload_2019-11-5_7-0-27.png
 
@BigTonyTones , Thanks very much for the Pi image. I used etcher and burned it to a 32GB MicroSD, put it in the pi, plugged it into a network cable & booted it up. After logging in at X.X.X.X:4000 it seems to see my car and is up and running. I'm not sure what to do with the Grafana page at X.X.X.X:3000. I guess I'll drive around tomorrow and see what happens. Thanks!!!

View attachment 473328
View attachment 473330
Glad to hear it worked !
Follow what L-P-G said and youll start seeing very detailed information about your drives etc....