kopia lustrzana https://github.com/DL7AD/pecanpico9
Changed APRS server
rodzic
c107a5c9c3
commit
96465f44c1
|
@ -121,7 +121,7 @@ if args.device == 'I': # Source APRS-IS
|
||||||
|
|
||||||
print('Connect to APRS-IS')
|
print('Connect to APRS-IS')
|
||||||
try:
|
try:
|
||||||
tn = telnetlib.Telnet("rotate.aprs2.net", 14580, 3)
|
tn = telnetlib.Telnet("euro.aprs2.net", 14580, 3)
|
||||||
tn.write(("user %s filter u/APECAN\n" % args.call).encode('ascii'))
|
tn.write(("user %s filter u/APECAN\n" % args.call).encode('ascii'))
|
||||||
print('Connected')
|
print('Connected')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -161,7 +161,7 @@ if args.device == 'I': # Source APRS-IS
|
||||||
if wdg < time.time():
|
if wdg < time.time():
|
||||||
print('APRS-IS connection lost... reconnect')
|
print('APRS-IS connection lost... reconnect')
|
||||||
try:
|
try:
|
||||||
tn = telnetlib.Telnet("rotate.aprs2.net", 14580, 3)
|
tn = telnetlib.Telnet("euro.aprs2.net", 14580, 3)
|
||||||
tn.write(("user %s filter u/APECAN\n" % args.call).encode('ascii'))
|
tn.write(("user %s filter u/APECAN\n" % args.call).encode('ascii'))
|
||||||
print('Connected')
|
print('Connected')
|
||||||
wdg = time.time() + 10
|
wdg = time.time() + 10
|
||||||
|
|
Ładowanie…
Reference in New Issue