-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py.template
More file actions
31 lines (24 loc) · 1.22 KB
/
Copy pathconfig.py.template
File metadata and controls
31 lines (24 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Configuration Template for TeslaOnTarget
# Copy this file to config.py and update with your settings
# TAK Server Configuration
COT_URL = "tcp://YOUR_TAK_SERVER_IP:8085" # Replace with your TAK server address
# Tesla Account
TESLA_USERNAME = "your-email@example.com" # Your Tesla account email
# Vehicle Selection (Optional)
# Leave empty to track all vehicles on the account
# Or specify display names or VINs to track specific vehicles
# Examples:
# VEHICLE_FILTER = [] # Track all vehicles (default)
# VEHICLE_FILTER = ["Model Y"] # Track only vehicle with display name "Model Y"
# VEHICLE_FILTER = ["5YJ3E1EA8NF000000", "Model 3"] # Track by VIN or display name
VEHICLE_FILTER = []
# Timing Configuration
API_LOOP_DELAY = 10 # Seconds between Tesla API queries (minimum 10 recommended)
DEAD_RECKONING_ENABLED = True # Enable dead reckoning when GPS unavailable
DEAD_RECKONING_DELAY = 1 # Seconds between dead reckoning updates
# File Paths
LAST_POSITION_FILE = "last_known_position.json" # Cache file for last position
# Debug Settings
DEBUG_MODE = False # Set True to save every Tesla API response to tesla_api_captures/ (debugging only)
# Constants (don't change these)
MPH_TO_MS = 0.44704 # Conversion factor from mph to m/s