Organizes 11 projects for Cerbo GX/Venus OS into a single repository: - axiom-nmea: Raymarine LightHouse protocol decoder - dbus-generator-ramp: Generator current ramp controller - dbus-lightning: Blitzortung lightning monitor - dbus-meteoblue-forecast: Meteoblue weather forecast - dbus-no-foreign-land: noforeignland.com tracking - dbus-tides: Tide prediction from depth + harmonics - dbus-vrm-history: VRM cloud history proxy - dbus-windy-station: Windy.com weather upload - mfd-custom-app: MFD app deployment package - venus-html5-app: Custom Victron HTML5 app fork - watermaker: Watermaker PLC control UI Adds root README, .gitignore, project template, and per-project .gitignore files. Sensitive config files excluded via .gitignore with .example templates provided. Made-with: Cursor
69 lines
2.2 KiB
Python
69 lines
2.2 KiB
Python
"""
|
|
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/<vrm-id>/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,
|
|
}
|