diff --git a/CHANGELOG.md b/CHANGELOG.md index 65372fa..0dbafde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,28 +1,32 @@ # Changelog -### __[v2.2.3]__ - unreleased +### __[v2.2.2]__ - unreleased ##### Added - zuschaltbare POCSAG Multicast-Alarm Funktionalität [#307](https://github.com/Schrolli91/BOSWatch/pull/307) ##### Changed +- Telegram Plugin importiert Google Maps Funktionen nur noch wenn API Key eingetragen ist [#315](https://github.com/Schrolli91/BOSWatch/pull/315) ##### Deprecated ##### Removed ##### Fixed +- Schreibfehler in Service Readme [#313](https://github.com/Schrolli91/BOSWatch/issues/313) - einige Code-Style Verbesserungen ##### Security ### __[v2.2.1]__ - 19.09.2017 ##### Added -- Neues Service Script -- Eigene Message für jeden Typ im Telegram Plugin in der config definierbar +- Neues Service Script [#263](https://github.com/Schrolli91/BOSWatch/pull/263) +- Eigene Message für jeden Typ im Telegram Plugin in der config definierbar [#267](https://github.com/Schrolli91/BOSWatch/pull/267) +- httpRequest Plugin unterstützt nun mehrere URLs [254](https://github.com/Schrolli91/BOSWatch/pull/254) ##### Changed -- Name der csv Dateien geändert um überschreiben bei Update zu vermeiden -- Description Liste kann nun zusätzlich Einträge für jede Subric enthalten (POCSAG) -- RegEX verbietet nun grundsätzlich alles - Es muss explizit zugelassen werden (wenn RegEX aktiv) +- Name der csv Dateien geändert um überschreiben bei Update zu vermeiden [#262](https://github.com/Schrolli91/BOSWatch/pull/262) +- Description Liste kann nun zusätzlich Einträge für jede Subric enthalten (POCSAG) [#271](https://github.com/Schrolli91/BOSWatch/pull/271) +- RegEX verbietet nun grundsätzlich alles - Es muss explizit zugelassen werden (wenn RegEX aktiv) [#284](https://github.com/Schrolli91/BOSWatch/pull/284) ##### Fixed -- Bug im SMS77 Plugin behoben +- Bug im SMS77 Plugin behoben [#257](https://github.com/Schrolli91/BOSWatch/issues/257) +- einige Code-Style Verbesserungen ---------------------------- diff --git a/csv/poc.template.csv b/csv/poc.template.csv index 87a5073..9dfe7d4 100644 --- a/csv/poc.template.csv +++ b/csv/poc.template.csv @@ -5,6 +5,12 @@ ric,description # For each RIC-Address you could set a description-text # Use the structure: ric,"Description-Text" # +# You can even define specific subrics, therefore you +# 1. need to specify a main RIC: 1234567, "Unit One" +# 2. specify a certain subric: 1234567B, "Subunit Bravo" +# The result for 1234567B will be "Unit One Subunit Bravo" +# - Be sure having defined the main RIC (step one)! - +# # !!! DO NOT delete the first line !!! # 1234567,"POCSAG testdata äöüß" diff --git a/includes/globalVars.py b/includes/globalVars.py index 513d231..c081608 100644 --- a/includes/globalVars.py +++ b/includes/globalVars.py @@ -9,8 +9,8 @@ Global variables """ # version info -versionNr = "2.2.1-dev" -buildDate = "2017/09/19" +versionNr = "2.2.2-dev" +buildDate = "in dev" # Global variables diff --git a/plugins/Telegram/Telegram.py b/plugins/Telegram/Telegram.py index fc4acc7..dc4cc6e 100644 --- a/plugins/Telegram/Telegram.py +++ b/plugins/Telegram/Telegram.py @@ -11,9 +11,11 @@ Plugin to send FMS-, ZVEI- and POCSAG-messages via Telegram # Imports # import logging # Global logger -import urllib, telegram, googlemaps +import telegram from telegram.error import (TelegramError, Unauthorized, BadRequest, NetworkError) from includes import globalVars # Global variables +if globalVars.config.get("Telegram","RICforLocationAPIKey"): + import urllib, googlemaps # Helper function, uncomment to use from includes.helper import wildcardHandler diff --git a/service/README.md b/service/README.md index 41337a9..58ad6f9 100644 --- a/service/README.md +++ b/service/README.md @@ -10,8 +10,8 @@ Enter the frequency and the decoder(s) you want to use in line 7; you can add mo ### Install the service 1. Copy the file to /lib/systemd/system: sudo cp /opt/boswatch/service/boswatch.service /lib/systemd/system/ 2. Change the rights: sudo chmod 644 /lib/systemd/system/boswatch.service -3. Enable the service: sudo systemcl enable boswatch.service -4. Start the service: sudo systemcl start boswatch.service +3. Enable the service: sudo systemctl enable boswatch.service +4. Start the service: sudo systemctl start boswatch.service ---