nsnw / aprspy Goto Github PK
View Code? Open in Web Editor NEWAn APRS packet parser for Python
License: MIT License
An APRS packet parser for Python
License: MIT License
The setup.py
lacks a mention of the bitstring
package:
Line 21 in c289ecc
The requirements.txt
file lists it correctly:
Line 2 in c289ecc
This causes failure at import time:
Traceback (most recent call last):
File "/blah/blah/import-test.py", line 5, in <module>
import aprspy
File "/blah/blah/venv/lib/python3.10/site-packages/aprspy/__init__.py", line 11, in <module>
from .packets.generic import GenericPacket
File "/blah/blah/venv/lib/python3.10/site-packages/aprspy/packets/generic.py", line 11, in <module>
from bitstring import Bits
ModuleNotFoundError: No module named 'bitstring'
One can work around it, obviously, but fixing it won't hurt :-)
PositionPacket.__init__()
When generating a PositionPacket
with:
compressed = False, source="RS41", destination="BASE", lat=50.99263, lon=4.79026, ambiguity=0, symbol_table="/", symbol_id="O", path=''WIDE2-2"
after calling .generate()
the following packet is created:
"RS41>BASE,WIDE2-2:!5059.56N/447.42EO"
which is not conform to the standard for the longitude field in this case, there should be 2 extra leading zeros.
The degrees field of both the latitude and longitude should be zfilled to lengths 2 and 3 respectively.
Adding .zfill(2)
and .zfill(3)
operators for latitude and longitude degrees field when applying the ambiguity makes the packets conform again to the standard.
Resulting packet after adding .zfill(3) for the degrees field of the longitude in function def encode_uncompressed_latitude(latitude: Union[float, int], ambiguity: int = 0)
:
"RS41>BASE,WIDE2-2:!5059.56N/00447.42EO"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.