NAVTEX-Feature hinzugefügt. Daten nur über das Netzwerk

This commit is contained in:
2025-10-01 06:54:56 +02:00
parent 99dcf00242
commit fb7c688a99
9 changed files with 329 additions and 7 deletions

View File

@@ -734,6 +734,12 @@ if __name__ == "__main__":
if cfg['gps']:
cfg['gps_port'] = config.get('gps', 'port')
cfg['navtex'] = config.getboolean('navtex', 'enabled')
if cfg['navtex']:
cfg['ntx_source'] = config.get('navtex', 'source') # Datenquelle: net | radio
cfg['ntx_housekeeping'] = config.getint('navtex', 'housekeeping') # Max. Nachrichtenalter in Stunden
cfg['ntx_refresh'] = config.getint('navtex', 'refresh') # Aktualisierung alle <n> Minuten
cfg['network'] = config.getboolean('network', 'enabled')
if cfg['network']:
cfg['net_addr'] = config.get('network', 'address')
@@ -773,7 +779,6 @@ if __name__ == "__main__":
cfg['boat']['club'] = config.get('boat', 'club')
cfg['boat']['team'] = config.get('boat', 'team')
# Protokollierung
loglevel = set_loglevel(cfg['loglevel'])
init_logging(os.path.expanduser(cfg['logdir']), cfg['logfile'], loglevel)
@@ -796,7 +801,6 @@ if __name__ == "__main__":
# Globale Daten, u.a. auch Shutdown-Indikator
appdata = AppData(log, cfg)
# Ggf. Simulationsdaten einschalten
if cfg['simulation']:
boatdata.enableSimulation()