move creation of ric-sub as char to poc-decoder

This commit is contained in:
JHCD 2015-06-05 11:26:01 +02:00
parent 2d8c5e4bf5
commit 300675a0e3
6 changed files with 12 additions and 10 deletions

View file

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