TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker and becoming a Supporting Member. For more info: Support TMC
  1. TMC is currently READ ONLY.
    Click here for more info.

TeslaMate [megathread]

Discussion in 'The UK and Ireland' started by Roy W., Apr 20, 2020.

  1. Roy W.

    Roy W. Battery running low...

    Joined:
    Jun 3, 2019
    Messages:
    2,276
    Location:
    Derby, UK
    #1 Roy W., Apr 20, 2020
    Last edited by a moderator: Jan 11, 2021
    Moderator comment - thread renamed from "TeslaMate update"

    As some of you will know, I’ve been using the open source Tesla data logger called TeslaMate since the beginning of February. I’ve been very pleased with it, and it has run faultlessly since I first installed it, and subsequently through half-a-dozen updates.

    I’ve just installed the latest version, which is quite a major update, as it now uses the streaming API from Tesla, and so doesn’t need to wake the car at all. This means there is no chance of losing the first part of the drive data.

    You can find more details here:

    Docker install | TeslaMate

    For those of you with more knowledge than me, here’s an excerpt from the release notes:

    Enhancements
    Streaming API
    As the first and only Tesla logging app out there, TeslaMate now use the Tesla streaming API! This brings the following improvements:

    • High precision drive data. Rather than active polling, the streaming API allows for passive consumption of a high frequency data stream with the most important drive data (position, heading, speed, power, elevation etc.).
    • Actual elevation above sea level. Up until now TeslaMate used satellite terrain data to get the elevation. Driving through tunnels or across a bridges therefore resulted in inaccurate recordings. This is no longer the case!
    • Bluetooth hints are no longer needed! Using the streaming API does not prevent the vehicle from falling asleep, thus enabling continuous monitoring. This allows the car to fall asleep more quickly (no more idle timer) and we don't miss up to 21 minutes of driving because of halted polling.
     
    • Informative x 1
    • Like x 1
    • Disagree x 1
    • Love x 1
  2. Durzel

    Durzel Active Member

    Joined:
    Jul 17, 2019
    Messages:
    2,593
    Location:
    Bath, UK
    This looks great. The only problem I've got is that I haven't got anything at the house at the moment running 24/7 that I could use for this. :(
     
  3. elastictangent

    Joined:
    Jan 19, 2020
    Messages:
    43
    Location:
    Knutsford
    I've not tried it yet but you can run Docker on a Raspberry Pi. Might be a cheap option?
     
  4. Durzel

    Durzel Active Member

    Joined:
    Jul 17, 2019
    Messages:
    2,593
    Location:
    Bath, UK
    Yeah could do. I've got a Windows machine that I use for a media PC, could use that potentially...
     
    • Like x 1
  5. davidmc

    davidmc Active Member

    Joined:
    May 20, 2019
    Messages:
    1,468
    Location:
    Leicester
    Do you use a NAS drive and which one? I did have a QNap one but is bust so looking to get a new one soon, but heard either QNap or Synology does not run docker? Not sure which one.
     
  6. Beady3647

    Beady3647 Member

    Joined:
    Nov 3, 2017
    Messages:
    226
    Location:
    Solihull
    This all sounds great to me but......

    I have very limited knowledge of installing programmes (and the like) onto my PC. I'm not a complete idiot can anybody give me, on a scale of 1 to 10 the degree of difficulty to get up and running and whether a standard PC is sufficient please?
     
  7. Roy W.

    Roy W. Battery running low...

    Joined:
    Jun 3, 2019
    Messages:
    2,276
    Location:
    Derby, UK
    That’s exactly what I use. I must admit I did have to buy a Pi 4 to run it on, costing me about £50. I did have a 2013 vintage Pi which I tried, but it wasn’t up to the job!

    I’m certainly no Pi/Linux expert. I know PC and Mac quite well, but my only dabbling with the (2013) Pi was trying it as a media player. The setup is quite well documented, and I was given some very valuable pointers by long-lost @Jeremy Harris which helped me enormously.

    My new Pi 4 has been running 24/7 since the beginning of February, in my network cupboard in the kitchen. I upgrade TeslaMate remotely using Termius on my iPad to SSH into the Pi and run the upgrade script.

    EF0C115A-D920-49B9-94AB-0340744D0D14.jpeg
     
    • Like x 2
    • Love x 1
  8. Roy W.

    Roy W. Battery running low...

    Joined:
    Jun 3, 2019
    Messages:
    2,276
    Location:
    Derby, UK
    I do have a NAS, but that’s an old Buffalo one about as old as the original Pi, and I only use it for media streaming. I don’t like the idea of having to leave a PC or Mac running 24/7, so thought the Pi was an elegant solution.
     
    • Like x 1
  9. Durzel

    Durzel Active Member

    Joined:
    Jul 17, 2019
    Messages:
    2,593
    Location:
    Bath, UK
    Nice. What is that case? Did you buy it as an all in one unit?
     
  10. Roy W.

    Roy W. Battery running low...

    Joined:
    Jun 3, 2019
    Messages:
    2,276
    Location:
    Derby, UK
    It an Aluminium Armour heatsink case from the Pi Hut, which is where I bought the Pi. The Pi 4 needs a decent heatsink, so rather than get a plastic case and a separate heatsink or fan I thought this would be good. It is just slightly warm to the touch, running 24/7 inside a cupboard!

    Aluminium Armour - Heatsink Case for Raspberry Pi 4
     
  11. Russinating

    Russinating M3 SR+

    Joined:
    Nov 17, 2019
    Messages:
    271
    Location:
    Bristol, UK
    What does your web interface look like Roy (ie how are you visualising the data)?
     
  12. Medved_77

    Medved_77 TM3 SR+ | MSM+Black | No FSD

    Joined:
    Jan 20, 2020
    Messages:
    1,776
    Location:
    Scotland
    So is the main USP for TeslaMate vs TeslaFi that fact that you keep all of your data locally?

    I use docker-compose for work, so may give this ago, however the cloud option does seem more convenient to me.
     
  13. wooter

    wooter Nou ik heb niet te klagen over Tesla support

    Joined:
    May 3, 2017
    Messages:
    5,281
    Location:
    Belgium
    There's nothing holding you back using the TeslaMate docker compose in the cloud.

    Main USP for me seems that not only is your data local, but you are also in charge of presentation through the Grafana presentation layer. Filtering options are more flexible than Teslafi.
     
    • Helpful x 1
    • Like x 1
  14. Durzel

    Durzel Active Member

    Joined:
    Jul 17, 2019
    Messages:
    2,593
    Location:
    Bath, UK
    TeslaMate screenshots look pretty nice. TeslaFi looks like a website from the mid-2000s. Not the worst thing in the world, but it does stand out as unusually bad when it's so easy to knock together a clean interface with minimal effort using various open source web frameworks available today (Bootstrap springs to mind).

    Regards that Pi - being only aware of them and having never bought one.. I'm shopping on Pi Hut and it's not immediately obvious whether the standard Pi comes with a power supply? There is one available seperately for £8... Also, I guess I will need an SD card to store TeslaMate on, within the Pi? Or does it come with enough built in storage?
     
  15. drewpost

    drewpost Member

    Joined:
    Aug 12, 2017
    Messages:
    443
    Location:
    Surrey, United Kingdom
    Has anyone tried importing the data into Elasticsearch and visualising in Kibana instead of via Grafana?
     
  16. wooter

    wooter Nou ik heb niet te klagen over Tesla support

    Joined:
    May 3, 2017
    Messages:
    5,281
    Location:
    Belgium
    Generally you need to account for an SD card (preferably because its faster) or USB stick (slower) to store the OS on, a power supply, a housing and maybe also a mini-HDMI connector and mouse and keyboard if you want to boot it up with a desktop first. It's possible to use it "headless" without screen and keyboard, but that's quite steep for beginners.
     
  17. Roy W.

    Roy W. Battery running low...

    Joined:
    Jun 3, 2019
    Messages:
    2,276
    Location:
    Derby, UK
    #17 Roy W., Apr 20, 2020
    Last edited: Apr 20, 2020
    No storage on the Pi. For beginners the easiest is to buy a micro SD card from your Pi vendor with the official NOOBS software installed. Or there are clear instructions for creating your own on the web. The Pi is just that - the barebones computer. It uses a USB-C power supply, but as far as I remember needs 3A at 5V. I’d already got a usb keyboard and mouse in my cupboard that I used for setup. Because I use an iMac as my desktop computer I’ve got no separate monitor these days, so I just plugged it into the 55” tv using HDMI. (The Pi 4 uses a rather odd micro-HDMI output, but luckily it is the same as the cable with one of my digital cameras. If you don’t have the right power supply or cables they are all available quite cheaply.)
     
    • Informative x 1
  18. Roy W.

    Roy W. Battery running low...

    Joined:
    Jun 3, 2019
    Messages:
    2,276
    Location:
    Derby, UK
    Here’s a selection of screenshots, addresses removed. So far I’ve only used the provided reports. Presumably if you’re very, very clever you can write your own additional reports using Grafana.

    42B928FD-30CD-4B25-B7FA-9EDF969D8FC4.jpeg 2BE307EE-1E39-4679-8CB9-816E169E5C7B.jpeg 5598B0B3-5FED-435C-8BDC-628A142D39DA.jpeg 5D659370-4479-4124-844D-F27C3172D4C1.jpeg AA0FAAB4-860A-465C-8586-B33A192BBE55.jpeg 3A0EFDE5-622E-4294-83F8-452EF923F056.jpeg DFC3588D-C29F-456D-A82E-1ABF83B096D2.jpeg
     
    • Helpful x 1
    • Informative x 1
  19. Roy W.

    Roy W. Battery running low...

    Joined:
    Jun 3, 2019
    Messages:
    2,276
    Location:
    Derby, UK
    Yes, all the data is local, or cloud-based if you go down that route. I’ve used the simplest setup, so mine is only available within my home network, so no access over the internet when I’m out and about. That suits me fine.
     
    • Like x 1
  20. Russinating

    Russinating M3 SR+

    Joined:
    Nov 17, 2019
    Messages:
    271
    Location:
    Bristol, UK
    Nice. I didn't renew either of my Teslafi or Teslastics subscriptions because I felt they just lacked features. One big one for me was total charge cost, for example, and general overview/dashboard totals. Not to mention the UI for Teslafi is god awful.

    I'm fairly ok with reading databases and PHP, Ajax and such so might be an interesting project. I don't mind the data being logged if it's free if I only get around to the above later on...

    Certainly an excuse to get a Pi as well!
     
    • Like x 1

Share This Page

  • 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