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.

Open Source Teslalogger on Raspberry / Docker with ScanMyTesla integration

Discussion in 'Model 3' started by bassmaster, Apr 30, 2020.

  1. T.R.T.e.s.l.a.

    Joined:
    Nov 8, 2018
    Messages:
    460
    Location:
    LX
    Ok. I will do that.
    Thank you.
     
    • Like x 1
  2. Battpower

    Battpower Supporting Member

    Joined:
    Oct 10, 2019
    Messages:
    1,950
    Location:
    Uk
    Looks like I was in wrong directory.....

    Carrying on....
     
  3. cdeleo

    cdeleo Member

    Joined:
    Aug 23, 2018
    Messages:
    167
    Location:
    New York
    Also don't you need a 64bit os for the DB? I had an old odroid u3 that I was going to try and run the doxker image on but thought I read it needed a 64bit Os?
     
  4. bassmaster

    bassmaster Member

    Joined:
    Oct 23, 2017
    Messages:
    80
    Location:
    Germany
    Yes, MariaDB needs a 64bit OS.
     
  5. Battpower

    Battpower Supporting Member

    Joined:
    Oct 10, 2019
    Messages:
    1,950
    Location:
    Uk
    But Buster has 64 bit mode, no?

    IMG_20200620_201627.jpg
     
  6. bassmaster

    bassmaster Member

    Joined:
    Oct 23, 2017
    Messages:
    80
    Location:
    Germany
  7. Battpower

    Battpower Supporting Member

    Joined:
    Oct 10, 2019
    Messages:
    1,950
    Location:
    Uk
  8. Battpower

    Battpower Supporting Member

    Joined:
    Oct 10, 2019
    Messages:
    1,950
    Location:
    Uk
    Install Docker Engine on Debian
     
  9. cdeleo

    cdeleo Member

    Joined:
    Aug 23, 2018
    Messages:
    167
    Location:
    New York
    Right so really no way to run it on a 32bit architecture.
     
  10. bassmaster

    bassmaster Member

    Joined:
    Oct 23, 2017
    Messages:
    80
    Location:
    Germany
    Docker on Raspberry:
    As the official MariaDB Docker image is not supporting 32Bit OS, it seems like there are only 2 changes necessary to run it on a Raspberry.

    Original:
    database:
    image: mariadb:10.4.7
    New:
    database:
    image: jsurf/rpi-mariadb

    After first successful run, comment out this line or just delete it:
    - ./TeslaLogger/sqlschema.sql:/docker-entrypoint-initdb.d/sqlschema.sql

     
  11. Battpower

    Battpower Supporting Member

    Joined:
    Oct 10, 2019
    Messages:
    1,950
    Location:
    Uk
    Sounds hopeful. I have tried so many alternative configurations I have lost the plot somewhat!

    I had been using Buster with the 64 bit flag in config set on. Here: Docker Hub it mentions Stretch.
     
  12. CoolSilver

    CoolSilver Member

    Joined:
    Sep 11, 2018
    Messages:
    48
    Location:
    Ohio
    Is there install documentation for those who want to run outside of a docker image on an existing PI?
     
  13. insaneoctane

    insaneoctane Active Member

    Joined:
    Apr 6, 2016
    Messages:
    3,354
    Location:
    Southern California
    I'm assuming there are far more knowledgeable folks out there than me on the subject of security.....So, how much of a risk do you guys seeing opening the requisite ports to your Rpi? Seems like an entrance point for hackers if you Rpi server/software has any security holes and might allow the uninvited onto your home network? Am I being paranoid?
     
    • Like x 2
  14. bassmaster

    bassmaster Member

    Joined:
    Oct 23, 2017
    Messages:
    80
    Location:
    Germany
    There is a ready to go image available: TESLALOGGER Image for RaspberryPi 3B (3B+) - EMDS
    It takes a couple of hours to make a 100% working Teslalogger from scratch.
     
  15. bassmaster

    bassmaster Member

    Joined:
    Oct 23, 2017
    Messages:
    80
    Location:
    Germany
    Well, if anybody find a security hole in Teslalogger or the Rpi, it has exactly the same possibilities like any app you installed on your smarphone, when it's connected to your wifi. Or all devices like smart tv, smart speakers / lights / switches with acces to your wifi.
    So it is not very smart to have a file server at home with admin/admin credentials.
     
  16. insaneoctane

    insaneoctane Active Member

    Joined:
    Apr 6, 2016
    Messages:
    3,354
    Location:
    Southern California
    I'm more thinking about exposing port 80 all the time to the Rpi. Seems any constantly open port has more chances of being discovered by nefarious hackers. I'm pretty sure anyone with port forwarding (especially port 80) are constantly being probed.
     
    • Like x 3
  17. bassmaster

    bassmaster Member

    Joined:
    Oct 23, 2017
    Messages:
    80
    Location:
    Germany
    You can chose a different port for external usage. If you are affraid of port 80, you can use any port you want.
     
    • Like x 1
  18. TydalForce

    TydalForce Member

    Joined:
    Nov 24, 2019
    Messages:
    221
    Location:
    West Chester, PA, USA
    If you intend to open ports through your router, I'd strongly recommend doing so on non-default ports. 80, 8080, 443, 8443 etc are very popular and likely probed frequently. At best, it's extra traffic on your devices. At worst, someone finds a vulnerability and does some kind of damage.
    Everything has some sort of vulnerability; it's just a matter of someone finding and exploiting it.

    If you're OK with only accessing it via WiFi in the car, don't forward anything. Of course this means you can only do it at home.

    In any case, like bassmaster said, never use default credentials like admin/admin (c:
     
    • Love x 1
  19. bassmaster

    bassmaster Member

    Joined:
    Oct 23, 2017
    Messages:
    80
    Location:
    Germany
    Plus if you are really affraid about hacking, you could use a VPN to your Home Network to get access to the Teslalogger or other devices / services you have. Most Routers have build in VPN Server - check their manual. BUT keep your router firmware updated!!! Router often tend to have vulnerabilitys...
     
  20. TydalForce

    TydalForce Member

    Joined:
    Nov 24, 2019
    Messages:
    221
    Location:
    West Chester, PA, USA
    There's probably a few ways to handle this (I, for example, don't have a VPN but I'm pulling some trickery via SSH tunnel) -- None I know work with the car itself though, unfortunately.
     

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