kopia lustrzana https://github.com/glidernet/python-ogn-client
Add Microtrak APRS parser. (https://microtrak.fr/)
rodzic
79274c7f97
commit
d7186de5e6
|
@ -17,6 +17,7 @@ from ogn.parser.aprs_comment.spider_parser import SpiderParser
|
|||
from ogn.parser.aprs_comment.spot_parser import SpotParser
|
||||
from ogn.parser.aprs_comment.inreach_parser import InreachParser
|
||||
from ogn.parser.aprs_comment.safesky_parser import SafeskyParser
|
||||
from ogn.parser.aprs_comment.microtrak_parser import MicrotrakParser
|
||||
from ogn.parser.aprs_comment.generic_parser import GenericParser
|
||||
|
||||
positions = {}
|
||||
|
@ -168,6 +169,7 @@ dstcall_parser_mapping = {'APRS': OgnParser(),
|
|||
'OGSPID': SpiderParser(),
|
||||
'OGSPOT': SpotParser(),
|
||||
'OGNSKY': SafeskyParser(),
|
||||
'OGNMTK': MicrotrakParser(),
|
||||
'GENERIC': GenericParser(beacon_type='unknown'),
|
||||
}
|
||||
|
||||
|
|
|
@ -88,6 +88,10 @@ PATTERN_SAFESKY_POSITION_COMMENT = re.compile(r"""
|
|||
(?:gps(?P<gps_quality>(?P<gps_quality_horizontal>(\d+))x(?P<gps_quality_vertical>(\d+)))?)?
|
||||
""", re.VERBOSE | re.MULTILINE)
|
||||
|
||||
PATTERN_MICROTRAK_POSITION_COMMENT = re.compile(r"""
|
||||
id(?P<details>[\dA-F]{2})(?P<address>[\dA-F]{6}?)\s?
|
||||
""", re.VERBOSE | re.MULTILINE)
|
||||
|
||||
PATTERN_TRACKER_STATUS_COMMENT = re.compile(r"""
|
||||
h(?P<hardware_version>[\d]{2})\s
|
||||
v(?P<software_version>[\d]{2})\s?
|
||||
|
|
Ładowanie…
Reference in New Issue