mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-05-18 06:55:38 +02:00
qrzHello
says hello to new seen nodes
This commit is contained in:
@@ -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
@@ -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
@@ -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(',')
|
||||
|
||||
Reference in New Issue
Block a user