diff --git a/config.py b/config.py index f839be8..1caf06e 100644 --- a/config.py +++ b/config.py @@ -106,6 +106,7 @@ def build_config(_config_file): CONFIG['GLOBAL'] = {} CONFIG['REPORTS'] = {} CONFIG['LOGGER'] = {} + CONFIG['APRS'] = {} CONFIG['GPS_DATA'] = {} CONFIG['ALIASES'] = {} CONFIG['SYSTEMS'] = {} @@ -174,6 +175,15 @@ def build_config(_config_file): 'STALE_TIME': config.getint(section, 'STALE_DAYS') * 86400, }) + elif section == 'APRS': + CONFIG['APRS'].update({ + 'ENABLED': config.getboolean(section, 'ENABLED'), + 'CALLSIGN': config.get(section, 'CALLSIGN'), + 'REPORT_INTERVAL': config.getint(section, 'REPORT_INTERVAL'), + 'SERVER': config.get(section, 'SERVER'), + 'MESSAGE': config.get(section, 'MESSAGE') + }) + elif config.getboolean(section, 'ENABLED'): if config.get(section, 'MODE') == 'PEER': CONFIG['SYSTEMS'].update({section: {