Merge pull request #15 from dg9vh/ysfi

Added some log-output to YSFI-command and raised version-number
This commit is contained in:
Antonio Matraia 2021-04-11 20:51:56 +02:00 committed by GitHub
commit 654402a008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,11 +579,9 @@ def RunServer(config):
s.sendto(str.encode(info),addr)
if (cmd == b'YSFI'):
# Maybe we can do something usefull with this infos later?
printlog(0, 'Received command ' + cmd.decode() + ' from: ' + addr[0] + ':' + str(addr[1]))
# info = 'YSFV' + 'pYSFReflector' + ' ' + version
# s.sendto(str.encode(info),addr)
printlog(0, 'Received information from: ' + addr[0] + ': Callsign: ' + str(data[4:14].decode().strip()) + ' RX-QRG: ' + str(data[14:23].decode().strip()) + ' TX-QRG: ' + str(data[23:32].decode().strip()) + ' Loc: ' + str(data[32:38].decode().strip()) + ' QTH: ' + str(data[38:58].decode().strip()) + ' Type: ' + str(data[58:70].decode().strip()) + ' GW-ID: ' + str(data[70:87].decode().strip()))
## Extended Commands ##
if (en_ext_cmd == 1):
@ -694,7 +692,7 @@ def printlog(log_level, mess):
######## main ########
version = '20210408'
version = '20210411'
if (len(sys.argv) != 2):
print('Invalid Number of Arguments')