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 [megathread]

Stach

Member
Mar 23, 2019
434
222
Madison, WI
I upgraded to the new Teslamate version (1.20) yesterday and am seeing the following minor error on the Overview screen. Anybody else seeing this?

upload_2020-10-5_9-46-14.png
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
I upgraded to the new Teslamate version (1.20) yesterday and am seeing the following minor error on the Overview screen. Anybody else seeing this?

View attachment 595541

Was that a custom dash @Stach ? - I had that on a custom one where something has changed in the backend, had to update that block to be this:

Code:
select $__time(date), convert_km(odometer::numeric, '$length_unit')  as "odometer_$length_unit"
from positions
where car_id = $car_id
order by date desc
limit 1;

::numeric seems to be what's needed to make it work
 

Ed_M

Supporting Member
Aug 29, 2020
11
11
Berkshire
I updated to 1.20.0 yesterday, there were no issues on the stock dashboards. I was putting off writing any custom dashboards until the new panel types in Grafana 7 were released. I had a quick play last night but unsure where some of the functions come from, and can't find a documented list of them.

e.g. convert_km - I thought this might be a stored procedure in the Postgres database since it is embedded in the SQL statement, however I can't seem to find the source of it. @DaveW do you have any experience of these procedures?
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
I updated to 1.20.0 yesterday, there were no issues on the stock dashboards. I was putting off writing any custom dashboards until the new panel types in Grafana 7 were released. I had a quick play last night but unsure where some of the functions come from, and can't find a documented list of them.

e.g. convert_km - I thought this might be a stored procedure in the Postgres database since it is embedded in the SQL statement, however I can't seem to find the source of it. @DaveW do you have any experience of these procedures?

I've only made one proper custom dash and most of the data is just borrowed from the other dashboards apart from some custom calculations done using variables, but that is down to my 0 SQL knowledge, probably better / easier ways of doing it when you know what you are doing :)
 
  • Like
Reactions: Ed_M

Ed_M

Supporting Member
Aug 29, 2020
11
11
Berkshire
I've only made one proper custom dash and most of the data is just borrowed from the other dashboards apart from some custom calculations done using variables, but that is down to my 0 SQL knowledge, probably better / easier ways of doing it when you know what you are doing :)

Haha, thats not a problem, sometimes it is best not to know :)

If anybody needs any help with TeslaMate on a Synology NAS, then give me a shout.
 
  • Like
Reactions: DaveW

ElRey

Member
Aug 6, 2020
235
72
London
Hi @DaveW I've just installed teslamate on a Raspberry Pi 4 using your guide on your site. Thanks!!!

I was previously running it on Vultr and would like to transfer my data. What would you recommend the easiest way to do it would be. (For a not advanced user)
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Hi @DaveW I've just installed teslamate on a Raspberry Pi 4 using your guide on your site. Thanks!!!

I was previously running it on Vultr and would like to transfer my data. What would you recommend the easiest way to do it would be. (For a not advanced user)

Excellent :)

Assuming you didn't have the automated backups to Google Drive running (suggest doing this to your Pi :)) just do a backup now on Vultr (Backup and Restore | TeslaMate) FTP into your Vultr box and grab the file, then SFTP into your Pi and upload it, then follow the restore instructions.
 
  • Like
Reactions: ElRey

*Adam

Member
Oct 22, 2019
148
126
Hampshire
Finally managed to resolve the import error.

  1. Deleted almost all of the data from the existing tables
  2. Changed the data type from `smallint` to `integer` in a few tables
  3. Re-ran the import

I now have all my TeslaFi data imported, next to focus on the front end.

Although I can see the benefits of using TeslaMate over TeslaFi the setup does feel a bit like a busman's holiday. If TeslaFi could update their UI and if the uncertainty over their rights to use the API were resolved, I'd be inclined to stick with them.


I'm getting stuck on importing Teslifi data. Hoping you could help?

The error you had is the one sticking point for me.
Code:
{%DBConnection.EncodeError{ message: "Postgrex expected an integer in -32768..32767, got 40507....

Do you recall which columns in tables you had to alter?
 

Medved_77

TM3 SR+ | MSM+Black | No FSD
Jan 20, 2020
1,816
1,775
Scotland
I'm getting stuck on importing Teslifi data. Hoping you could help?

The error you had is the one sticking point for me.
Code:
{%DBConnection.EncodeError{ message: "Postgrex expected an integer in -32768..32767, got 40507....

Do you recall which columns in tables you had to alter?
IIRC it imported successfully after running:

Code:
ALTER TABLE cars ALTER COLUMN id TYPE integer;
 
  • Like
Reactions: *Adam

MMcKay

Member
Sep 22, 2019
21
15
South Florida
Updates Dashboard Issue,

Hi everyone my Model 3 just updated to 2020.40.3 last night and in Tesla Mate for some reason it shows I have had 9 charges on this new version. I looked in the DB and don't see anything apparently wrong, here are some print screens. Any idea how to fix it?

Grafana Dashboard:
upload_2020-10-9_14-13-53.png


Updates Table in TeslaMate DB, shows the update was between 09-OCT 00:51 and 00:58
upload_2020-10-9_14-14-11.png


Charge Processes in TeslaMate DB, wondering how it thinks I have 9 on the current version
upload_2020-10-9_14-14-29.png
 
Updates Dashboard Issue,

Hi everyone my Model 3 just updated to 2020.40.3 last night and in Tesla Mate for some reason it shows I have had 9 charges on this new version. I looked in the DB and don't see anything apparently wrong, here are some print screens. Any idea how to fix it?

Grafana Dashboard:
View attachment 596962

Updates Table in TeslaMate DB, shows the update was between 09-OCT 00:51 and 00:58
View attachment 596963

Charge Processes in TeslaMate DB, wondering how it thinks I have 9 on the current version
View attachment 596964
Was your car plugged in while updating? Sometimes Tesla firmware updates briefly start & stop battery charging many times during the update process, if a charger is plugged in.
 

Utahken

Member
Mar 18, 2016
338
350
Michigan
Updates Dashboard Issue,

Hi everyone my Model 3 just updated to 2020.40.3 last night and in Tesla Mate for some reason it shows I have had 9 charges on this new version. I looked in the DB and don't see anything apparently wrong, here are some print screens. Any idea how to fix it?

Grafana Dashboard:
View attachment 596962

Updates Table in TeslaMate DB, shows the update was between 09-OCT 00:51 and 00:58
View attachment 596963

Charge Processes in TeslaMate DB, wondering how it thinks I have 9 on the current version
View attachment 596964
I noticed the same error on my car. And it hasn't been plugged in for several days!
 

MMcKay

Member
Sep 22, 2019
21
15
South Florida
Was your car plugged in while updating? Sometimes Tesla firmware updates briefly start & stop battery charging many times during the update process, if a charger is plugged in.

Yes it was plugged in during the update, it already reached its set charge level before the update started and remained plugged in after the update until this afternoon. I thought it was odd since I assumed it would just use the filter of the dates / times the car was in each firmware release to then count the number of charge processes that occurred during each timeframe.
 

Godsense

Member
Mar 5, 2020
340
181
UK
If you try and connect to [email protected] without the .local (obviously replacing that nonsense with your pi's IP), see how you get on with that?

I'm still using the cloud for mine (Digital Ocean), so will struggle a bit to test

Hiya,

It asks me for the password for that login but I get password every time. Oddly I can type any random name and it will ask for the password - I guess this is a security feature.

Think I will have to start again, is there anyway to recover the Teslamate data direct from the SD card?
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Hiya,

It asks me for the password for that login but I get password every time. Oddly I can type any random name and it will ask for the password - I guess this is a security feature.

Think I will have to start again, is there anyway to recover the Teslamate data direct from the SD card?

That’s a real shame :(

Honesty not sure if you can, I’d suspect not as it’s stored in the db within the docker container
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Hiya,

It asks me for the password for that login but I get password every time. Oddly I can type any random name and it will ask for the password - I guess this is a security feature.

Think I will have to start again, is there anyway to recover the Teslamate data direct from the SD card?

A3CF0BF0-6D0F-4541-AAE0-D3F8642C99BC.jpeg


Worth a try? Lots of guides for Pi password recovery.
 

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