mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-06 06:53:32 +00:00
Add field "ricFuncChar" in data structure for POC messages as a
combination of "ric" and "functionChar" for using in RegEx filter.
This commit is contained in:
parent
a4ed7089b8
commit
a1bda7ebf6
2 changed files with 2 additions and 0 deletions
|
|
@ -163,6 +163,7 @@ def decode(freq, decoded):
|
|||
data["lat"] = lat
|
||||
# Add function as character a-d to dataset
|
||||
data["functionChar"] = data["function"].replace("1", "a").replace("2", "b").replace("3", "c").replace("4", "d")
|
||||
data["ricFuncChar"] = data["ric"] + data["functionChar"]
|
||||
|
||||
logging.info("POCSAG%s: %s %s %s ", data["bitrate"], data["ric"], data["function"], data["msg"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue