""" Configuration for NFL (No Foreign Land) Tracking All tunable parameters in one place for easy adjustment. """ # ============================================================================= # D-BUS SERVICE CONFIGURATION # ============================================================================= # D-Bus service name for our addon (visible as N//nfltracking/0/...) SERVICE_NAME = 'com.victronenergy.nfltracking' # ============================================================================= # NFL API CONFIGURATION # ============================================================================= NFL_API_URL = "https://www.noforeignland.com/home/api/v1/boat/tracking/track" NFL_PLUGIN_API_KEY = "0ede6cb6-5213-45f5-8ab4-b4836b236f97" # ============================================================================= # TRACKING CONFIGURATION # ============================================================================= TRACKING_CONFIG = { # Minimum interval between track points (seconds) 'track_interval': 60, # Minimum distance moved before logging new point (meters) 'min_distance': 50, # How often to send track to API (minutes) 'send_interval': 15, # 24h keepalive: log a point every 24h even when stationary 'ping_24h': True, # Poll interval for main loop (seconds) - how often we check GPS 'poll_interval': 30, # Max track points in memory/file (prevents OOM on Cerbo if sends fail) 'max_track_points': 5000, } # ============================================================================= # PATH CONFIGURATION # ============================================================================= # Config and data directory (on Venus OS) DATA_DIR = '/data/dbus-no-foreign-land' CONFIG_DIR = DATA_DIR TRACK_FILE = f'{CONFIG_DIR}/pending.jsonl' CONFIG_FILE = f'{CONFIG_DIR}/config.ini' # ============================================================================= # LOGGING CONFIGURATION # ============================================================================= LOGGING_CONFIG = { # Log level: DEBUG, INFO, WARNING, ERROR 'level': 'INFO', # Log to console (stdout) 'console': True, # Include timestamps in console output (multilog adds its own on Venus) 'include_timestamp': False, }