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

Morristhecat

Member
Jul 3, 2012
723
202
Burnaby, BC
I was thinking of making a pi image but im worried about the whole ip address thing. The script requires a known ip address to be set in the config.

Would it be possible to create the pi image, and then manually edit the configuration file's IP to XXX.XXX.XXX.XXX before releasing it? Then the new user has to modify that configuration file?
 

mspohr

Well-Known Member
Jul 27, 2014
9,014
10,439
California
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:
[email protected]:~ $ 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'.

[email protected]:~ $ 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:

drklain

Active Member
Dec 17, 2016
1,046
1,049
Scottsdale, AZ/Fairfax, VA/Brussels, BE
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"....
 

gdgtgeek

Member
Sep 12, 2019
27
22
Atlanta
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!
 

satheesh.net

President | Tesla Owners Club Norway
Aug 10, 2013
159
46
Norway
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
 

BigTonyTones

Member
Nov 28, 2016
626
518
Los Angeles
Oct 11, 2019
6
2
Minneapolis
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.
 

berkeley_ecar

S 90D (fully loaded) delivered 18 Mar 2017
Jul 21, 2014
249
209
Berkeley, CA
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:

BigTonyTones

Member
Nov 28, 2016
626
518
Los Angeles
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
 

Morristhecat

Member
Jul 3, 2012
723
202
Burnaby, BC
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
 

REckard

Member
Nov 20, 2018
161
77
Atlanta, GA
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

REckard

Member
Nov 20, 2018
161
77
Atlanta, GA
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

Morristhecat

Member
Jul 3, 2012
723
202
Burnaby, BC
@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:

L-P-G

Member
Feb 20, 2016
351
342
Orlando, FL
@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

Member
Nov 28, 2016
626
518
Los Angeles
@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....
 

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