Skip to content

Commit

Permalink
Revert "Fixes as per comments in flosoft#35"
Browse files Browse the repository at this point in the history
This reverts commit 13af057.
  • Loading branch information
Zegorax committed Aug 10, 2024
1 parent 8e9a64d commit 91d72a1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
services:
teslamate:
image: teslamate/teslamate:latest
restart: always
environment:
- ENCRYPTION_KEY=secretkey #replace with a secure key to encrypt your Tesla API tokens
- DATABASE_USER=teslamate
- DATABASE_PASS=password #insert your secure database password!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
- MQTT_HOST=mosquitto
ports:
- 4000:4000
volumes:
- ./dev/import:/opt/app/import
cap_drop:
- all

database:
image: postgres:16
restart: always
environment:
- POSTGRES_USER=teslamate
- POSTGRES_PASSWORD=password #insert your secure database password!
- POSTGRES_DB=teslamate
volumes:
- ./dev/teslamate-db:/var/lib/postgresql/data

mosquitto:
image: eclipse-mosquitto:2
restart: always
command: mosquitto -c /mosquitto-no-auth.conf
# ports:
# - 1883:1883
volumes:
- ./dev/mosquitto-conf:/mosquitto/config
- ./dev/mosquitto-data:/mosquitto/data

networks:
internal:
2 changes: 1 addition & 1 deletion interfaces/backendfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _load_provider(self, name, base_url, car_id):
elif name == "teslamate":
return teslamate.TeslamateBackendProvider(base_url, car_id)
else:
raise Exception(f"Unknown backend provider : {name}. Available choices are 'teslalogger' or 'teslamate'.")
raise Exception(f"Unknown backend provider : {name}. Available choices are 'teslalogger' or 'teslamagte'.")


def __init__(self, provider_name, base_url, car_id):
Expand Down

0 comments on commit 91d72a1

Please sign in to comment.