added APRS section in config back
This commit is contained in:
parent
a2c782cef5
commit
a57be9a5a4
10
config.py
10
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: {
|
||||
|
Loading…
Reference in New Issue
Block a user