mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-06 06:43:54 +00:00
threads and a few fixes to wildcards
This commit is contained in:
parent
0dbd01b3f9
commit
4b0614c7da
6 changed files with 24 additions and 22 deletions
|
|
@ -41,9 +41,9 @@ class BoswatchPlugin(PluginBase):
|
|||
"""!Called on POCSAG alarm
|
||||
|
||||
@param bwPacket: bwPacket instance"""
|
||||
msg = bwPacket.get("ric") + " (" + bwPacket.get("subric") + ")\n" + bwPacket.get("message")
|
||||
msg = self.parseWildcards(self.config.get("message"))
|
||||
if bwPacket.get("lat") is not None and bwPacket.get("lon") is not None:
|
||||
logging.info("Found coordinates in packet")
|
||||
logging.debug("Found coordinates in packet")
|
||||
(lat, lon) = (bwPacket.get("lat"), bwPacket.get("lon"))
|
||||
|
||||
for chatId in self.config.get("chatIds", default=[]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue