diff --git a/CHANGELOG.md b/CHANGELOG.md index 96569e9..3c2fbe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### __[v2.5.2]__ - unreleased ##### Added - fhemCmd-Plugin: New plugin fhemCmd to execute commands in FHEM home automation. [#457](https://github.com/Schrolli91/BOSWatch/pull/457) +- Add field "ricFuncChar" in data structure for POC messages as a combination of "ric" and "functionChar" for using in RegEx filter. [#459](https://github.com/Schrolli91/BOSWatch/pull/459) ##### Changed - Divera Plugin: Add individual alarms for FMS, ZVEI and POC. [#451](https://github.com/Schrolli91/BOSWatch/pull/451) - install.sh: local git repo available at /opt/boswatch (or at your own path). Updates easier with `git pull` in /opt/boswatch. [#452](https://github.com/Schrolli91/BOSWatch/pull/452) diff --git a/includes/decoders/poc.py b/includes/decoders/poc.py index e5b9b6d..bf906fd 100644 --- a/includes/decoders/poc.py +++ b/includes/decoders/poc.py @@ -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"]) diff --git a/plugins/README.md b/plugins/README.md index be512ad..bafee9e 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -203,6 +203,7 @@ In the data map are the folowing informations: - ric - function - functionChar +- ricFuncChar - msg - bitrate - description