Giter Club home page Giter Club logo

Comments (8)

mroxso avatar mroxso commented on July 19, 2024

I like that!
I think I will work on trying to integrate it.

You can see the status (and test it) here:
https://github.com/mroxso/pluto-umbrel-community-app-store

from umbrel-apps.

mroxso avatar mroxso commented on July 19, 2024

But it is my first Umbrel App.
And as far as I can see TeslaMate uses 2 Frontends:

  • for setting up on port 4000
  • for grafana dashboard on port 3000

anybody an idea how to realize that for umbrel?

also:
currently there are hardcoded strings for the secret and db password. use it at your own risk at the moment!

p.s. i did not test it yet on my umbrel.

from umbrel-apps.

sashazykov avatar sashazykov commented on July 19, 2024

Thank you. There once was a PR adding it, but it was not merged for some reason - getumbrel/umbrel#891

from umbrel-apps.

sashazykov avatar sashazykov commented on July 19, 2024

I now have teslamate running alonside umbrel and it works fine.

Regarding two ports, you can just link Telsamate UI from Umbrel and there is a link to Grafana from the UI itself.

from umbrel-apps.

mroxso avatar mroxso commented on July 19, 2024

I think the most part is done.
Only the secrets are the "bad" thing right now.
Everything works.
I tested it with my Umbrel Node

from umbrel-apps.

sashazykov avatar sashazykov commented on July 19, 2024

I would suggest you to run it under user and move volumes to the umbrel apps data directory. Here is docker-compose I use:

version: "3"

services:
  teslamate:
    image: teslamate/teslamate:latest
    user: "1000:1000"
    restart: always
    environment:
      - ENCRYPTION_KEY=key
      - DATABASE_USER=teslamate
      - DATABASE_PASS=dbpass
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=database
      - MQTT_HOST=mosquitto
    ports:
      - 4000:4000
    volumes:
      - ./import:/opt/app/import
    cap_drop:
      - all

  database:
    image: postgres:14
    user: "1000:1000"
    restart: always
    environment:
      - POSTGRES_USER=teslamate
      - POSTGRES_PASSWORD=dbpass
      - POSTGRES_DB=teslamate
    volumes:
      - ./data/teslamate-db:/var/lib/postgresql/data

  grafana:
    image: teslamate/grafana:latest
    user: "1000:1000"
    restart: always
    environment:
      - DATABASE_USER=teslamate
      - DATABASE_PASS=dbpass
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=database
    ports:
      - 3000:3000
    volumes:
      - ./data/teslamate-grafana-data:/var/lib/grafana

  mosquitto:
    image: eclipse-mosquitto:2
    user: "1000:1000"
    restart: always
    command: mosquitto -c /mosquitto-no-auth.conf
    volumes:
      - ./data/mosquitto-conf:/mosquitto/config
      - ./data/mosquitto-data:/mosquitto/data

from umbrel-apps.

mroxso avatar mroxso commented on July 19, 2024

thank you. i will update it today

from umbrel-apps.

mroxso avatar mroxso commented on July 19, 2024

seems like the permissions now are not working for teslamate-grafana -> "permission denied"
in the closed PR for TeslaMate, there has been a script to update permissions for grafana. but i think i cannot do it like in the PR because this needs to change something in the umbrel script.

so a docker volume is easier to implement i think (it already works on my umbrel with docker volumes)

from umbrel-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.