openwebrx-clone/owrx/pocsag.py
2021-09-10 15:38:36 +02:00

16 lines
414 B
Python

from csdr.module import PickleModule
import logging
logger = logging.getLogger(__name__)
class PocsagParser(PickleModule):
def process(self, meta):
try:
if "address" in meta:
meta["address"] = int(meta["address"])
meta["mode"] = "Pocsag"
return meta
except Exception:
logger.exception("Exception while parsing Pocsag message")