Files
dev 9756538f16 Initial commit: Venus OS boat addons monorepo
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
2026-03-16 17:04:16 +00:00

67 lines
2.1 KiB
Python

"""
Configuration for Meteoblue Forecast Venus OS service.
All tunable parameters in one place for easy adjustment.
"""
# =============================================================================
# D-BUS SERVICE CONFIGURATION
# =============================================================================
SERVICE_NAME = 'com.victronenergy.meteoblueforecast'
# =============================================================================
# METEOBLUE FORECAST API CONFIGURATION
# =============================================================================
API_URL = 'https://my.meteoblue.com/packages/basic-1h_wind-1h_sea-1h_sunmoon'
API_PARAMS = {
'windspeed': 'ms-1',
'forecast_days': '7',
'timeformat': 'timestamp_ms_utc',
'tz': 'utc',
}
# =============================================================================
# TIMING CONFIGURATION
# =============================================================================
# Forecast refresh interval when vessel is stationary (seconds)
REFRESH_INTERVAL_STATIONARY = 6 * 3600 # 6 hours
# Forecast refresh interval when vessel is moving (seconds)
REFRESH_INTERVAL_MOVING = 3 * 3600 # 3 hours
# How often to sample GPS for movement detection (seconds)
GPS_SAMPLE_INTERVAL = 60
# How many GPS positions to keep for movement detection
GPS_HISTORY_SIZE = 4
# GPS sampling interval for history (seconds) -- sample every 15 minutes
GPS_HISTORY_SAMPLE_INTERVAL = 900
# Movement threshold in meters (~0.5 nautical miles)
MOVEMENT_THRESHOLD_METERS = 926.0
# Forecast horizon in hours (7 days)
FORECAST_HOURS = 168
# =============================================================================
# PATH CONFIGURATION
# =============================================================================
DATA_DIR = '/data/dbus-meteoblue-forecast'
CONFIG_FILE = DATA_DIR + '/forecast_config.json'
# =============================================================================
# LOGGING CONFIGURATION
# =============================================================================
LOGGING_CONFIG = {
'level': 'INFO',
'console': True,
'include_timestamp': False,
}