Hi, I am new in this group and I discovered Teslmate which looks awsome. I am trying to install it on my unraid server but as I am not a linux pro I don't know how to do it (I have only installed apps from the community app in docker, like plex, netxcloud...). As it seems that some members did install Teslamate with success, I wonder to know if someone would be kind enough to help me ? Thanks a lot for your help.
I got it working and it wasn't too bad but I probably did a lot more manual things than what would be required if I knew what I was doing. I mainly used the instructions in this thread on reddit:
https://www.reddit.com/r/unRAID/comments/hdnb6j/teslamate_docker/. Note that these instructions were not 100% correct and I had to play around with a few things. For example, that thread seems to have the wrong info in some instances, like in the Teslamate docker it says to use a database user name of postres but you have to change that to teslamate.
Here is the document that I started working on. I am not sure it is complete but it should be able to help you a lot:
TeslaMate Docker on unRAID
Instructions here
https://www.reddit.com/r/unRAID/comments/hdnb6j/teslamate_docker/
1. Install Grafana docker from apps – set IP address or your unRAID server in key 1 before creating and use secret as key 2
2. Install postgres11 from apps with Postgres_password=secret, postgres_user=teslamate and postgres_db as teslmate
3. Install teslamate. Add in Variables and keys – except use teslamate as user. To add in a Variable, ext click on +Add another Path, Port, Variable or Device. For example, click on this button, select Variable and then use name=DATABASE_NAME, key=DATABASE_NAME, value=teslamate and Description="Container Variable:". I can't remember exactly but I think you have to do this for DATABASE_USER, DATABASE_NAME, DATABASE_HOST and DATABASE_PASS. Add whatever other stuff is missing and use this snapshot as your guideline:
Manually install dashboards by copying json files into Grafana. Click Manage, then Import. Go to Github/dashboards and click on a .json file. Click on Raw, copy all and paste back in Grafana. Click load, then import. Repeat for all dashboards (note - there is likely an automated way of doing this)
SSH into your unraid server and start a bash prompt in the Grafana docker and Manually install Grafana plugins using :
docker exec -it Grafana /bin/bash
grafana-cli plugins install pr0ps-trackmap-panel 2.1.0
grafana-cli plugins install natel-discrete-panel 0.1.0
grafana-cli plugins install grafana-piechart-panel 1.6.1
grafana-cli --pluginUrl
https://github.com/panodata/grafana-map-panel/releases/download/0.14.0/grafana-map-panel-0.14.0.zip plugins install grafana-worldmap-panel-ng
Sorry if those instructions are not clear - it was a bit of trial and error for me, but it didn't take too long to get up and running.
It is worth it as Teslamate is awesome, even though I rarely drive these days due to Covid lockdown so I don't have much data in the system. Let us know if it works, and maybe update my instructions so that it is easier for the next person, and/or you and I if we have to reinstall in the future.
edit - I now do have Teslamate working. You need to set MQTT_HOST in the Teslamate docker to the IP address of your MQTT broker. I am not sure how to set the MQTT port but that isn't an issue for me, at least not so far.