fixing some bugs

This commit is contained in:
Peter Buchegger 2021-09-18 23:32:35 +01:00
parent f87494293f
commit eb3fe327c7
2 changed files with 11 additions and 10 deletions

View file

@ -3,7 +3,7 @@
default: install test
install:
pip3 install -r requirements.txt
pip3 install -r requirements.txt
test:
ESP_PORT=/dev/ttyUSB0 pytest tests -v
ESP_PORT=/dev/ttyUSB0 pytest tests -v

View file

@ -73,11 +73,12 @@ def APRSIS():
return aprs
aprs = AprsIs("OE5BPA-1", passwd="22948",
# host="localhost", port=10152)
host="rotate.aprs.net", port=10152)
aprs.connect()
while True:
line = list(aprs._get_line())
if len(line) > 0:
print(line)
#aprs = AprsIs("OE5BPA-1", passwd="22948",
# # host="localhost", port=10152)
# host="rotate.aprs.net", port=10152)
#aprs.connect()
#while True:
# line = list(aprs._get_line())
# if len(line) > 0:
# print(line)