kopia lustrzana https://github.com/glidernet/python-ogn-client
Removed old code
rodzic
01fecbd1f0
commit
1a9e1f2edd
|
@ -1,5 +1,3 @@
|
||||||
import re
|
|
||||||
|
|
||||||
from ogn.parser.utils import FPM_TO_MS
|
from ogn.parser.utils import FPM_TO_MS
|
||||||
from ogn.parser.pattern import PATTERN_FANET_POSITION_COMMENT
|
from ogn.parser.pattern import PATTERN_FANET_POSITION_COMMENT
|
||||||
|
|
||||||
|
@ -9,7 +7,7 @@ from .base import BaseParser
|
||||||
class FanetParser(BaseParser):
|
class FanetParser(BaseParser):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.beacon_type = 'fanet'
|
self.beacon_type = 'fanet'
|
||||||
self.position_parser = re.compile(PATTERN_FANET_POSITION_COMMENT)
|
self.position_parser = PATTERN_FANET_POSITION_COMMENT
|
||||||
|
|
||||||
def parse_position(self, aprs_comment):
|
def parse_position(self, aprs_comment):
|
||||||
ac_match = self.position_parser.match(aprs_comment)
|
ac_match = self.position_parser.match(aprs_comment)
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import re
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from ogn.parser.utils import createTimestamp
|
from ogn.parser.utils import createTimestamp
|
||||||
from ogn.parser.pattern import PATTERN_TELNET_50001
|
from ogn.parser.pattern import PATTERN_TELNET_50001
|
||||||
|
|
||||||
telnet_50001_pattern = re.compile(PATTERN_TELNET_50001)
|
telnet_50001_pattern = PATTERN_TELNET_50001
|
||||||
|
|
||||||
|
|
||||||
def parse(telnet_data):
|
def parse(telnet_data):
|
||||||
|
|
Ładowanie…
Reference in New Issue