mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
16 lines
414 B
Python
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")
|