Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.01 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.01 KB

Tesla-Preheat is a simple scheduler to preheat your Tesla car using the Tesla API.

Usage

You should bind a volume to store the configuration file and cached token outside the container.

If you want to use it directly (without Docker), install requirements.txt with PIP and run main.py.

docker

docker create \
  --name=tesla_preheat \
  -e TZ=America/Toronto \
  -v /your/container/config/:/tesla/config/ \
  --restart unless-stopped \
  morpheus65535/tesla_preheat

docker-compose

Compatible with docker-compose v2 schemas.

---
version: "2.1"
services:
  tesla_preheat:
    image: morpheus65535/tesla_preheat
    container_name: tesla_preheat
    environment:
      - TZ=America/Toronto
    volumes:
      - /your/container/config/:/tesla/config/
    restart: unless-stopped

Parameters

Parameter Function
-e TZ=America/Toronto Specify a timezone to use EG America/Toronto, this is required for Tesla_preheat