says hello to new seen nodes
This commit is contained in:
SpudGunMan
2025-01-18 16:22:35 -08:00
parent c6653da1f3
commit 9394fd6ca9
3 changed files with 9 additions and 2 deletions
+6
View File
@@ -173,6 +173,12 @@ satList = 25544,7530
enabled = False
checklist_db = data/checklist.db
# QRZ Hello to new nodes
[qrz]
enabled = False
qrz_db = data/qrz.db
qrz_hello_string = " send CMD or DM me for more info."
# repeater module
[repeater]
enabled = False
+1 -1
View File
@@ -1257,7 +1257,7 @@ def onReceive(packet, interface):
# add to qrz_hello list
hello(message_from_id, get_name_from_number(message_from_id, 'short', rxNode))
# send a hello message
send_message(f"Hello {get_name_from_number(message_from_id, 'short', rxNode)}", channel_number, message_from_id, rxNode)
send_message(f"Hello {get_name_from_number(message_from_id, 'short', rxNode)} {qrz_hello_string}", channel_number, message_from_id, rxNode)
time.sleep(responseDelay)
else:
# Evaluate non TEXT_MESSAGE_APP packets
+2 -1
View File
@@ -96,7 +96,7 @@ if 'checklist' not in config:
config.write(open(config_file, 'w'))
if 'qrz' not in config:
config['qrz'] = {'enabled': 'False', 'qrz_db': 'data/qrz.db'}
config['qrz'] = {'enabled': 'False', 'qrz_db': 'data/qrz.db', 'qrz_hello_string': ' send CMD or DM me for more info.'}
config.write(open(config_file, 'w'))
# interface1 settings
@@ -276,6 +276,7 @@ try:
# qrz hello
qrz_hello_enabled = config['qrz'].getboolean('enabled', False)
qrz_db = config['qrz'].get('qrz_db', 'data/qrz.db')
qrz_hello_string = config['qrz'].get('qrz_hello_string', ' send CMD or DM me for more info.')
# E-Mail Settings
sysopEmails = config['smtp'].get('sysopEmails', '').split(',')