mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-01-27 02:24:17 +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")
|