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:
Marco Schotthöfer 2020-07-17 06:46:22 +02:00
parent a4ed7089b8
commit a1bda7ebf6
2 changed files with 2 additions and 0 deletions

View file

@ -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"])

View file

@ -203,6 +203,7 @@ In the data map are the folowing informations:
- ric
- function
- functionChar
- ricFuncChar
- msg
- bitrate
- description