mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 22:17:24 +00:00
move creation of ric-sub as char to poc-decoder
This commit is contained in:
parent
2d8c5e4bf5
commit
300675a0e3
6 changed files with 12 additions and 10 deletions
|
|
@ -111,6 +111,8 @@ def decode(freq, decoded):
|
|||
else:
|
||||
logging.info("POCSAG%s: %s %s %s ", bitrate, poc_id, poc_sub, poc_text)
|
||||
data = {"ric":poc_id, "function":poc_sub, "msg":poc_text, "bitrate":bitrate}
|
||||
# Add function as character a-d to dataset
|
||||
data["functionChar"] = data["function"].replace("1", "a").replace("2", "b").replace("3", "c").replace("4", "d")
|
||||
from includes import alarmHandler
|
||||
alarmHandler.processAlarm("POC",freq,data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue