2019-03-11 12:38:43 +01:00

:satellite: Python Script to receive and decode German BOS Information with rtl_fm and multimon-NG :satellite:
#### WICHTIG
**Es wird darauf hingewiesen, dass für die Teilnahme am BOS-Funk nur nach den Technischen Richtlinien der BOS zugelassene Funkanlagen verwendet werden dürfen.**
**Der BOS-Funk ist ein nichtöffentlicher mobiler Landfunk. Privatpersonen gehören nicht zum Kreis der berechtigten Funkteilnehmer.** _(Quelle: TR-BOS)_
#### Notice:
The intercept of the German BOS radio is **strictly prohibited** and will be prosecuted. the use is **only authorized** personnel permitted.
The software was developed using the Multimon-NG code, a function in the real operation can not be guaranteed.
2018-10-18 10:13:04 +02:00
2017-12-15 23:23:54 +01:00
2019-03-11 12:38:43 +01:00
### Fast support on https://bwcc.boswatch.de (Mattermost)
2020-04-28 13:14:22 +02:00
### BW3 in first testing phase - see: https://github.com/BOSWatch/BW3-Core
2017-12-15 23:23:54 +01:00
2017-02-21 08:04:13 +01:00
|Branch|Code Qualität|CI-Build|
2017-02-20 21:17:55 +01:00
|---|---|---|
2017-02-20 19:15:48 +01:00
|master|[](https://www.codacy.com/app/Schrolli91/BOSWatch/dashboard?bid=3763821)|[](https://travis-ci.org/Schrolli91/BOSWatch)|
|develop|[](https://www.codacy.com/app/Schrolli91/BOSWatch/dashboard?bid=3763820)|[](https://travis-ci.org/Schrolli91/BOSWatch)|
2016-10-02 21:52:05 +02:00
2017-02-21 00:09:37 +01:00
**Unterstützung gesucht**
2016-10-03 23:30:50 +02:00
2019-03-11 12:38:43 +01:00
Zur Weiterentwicklung des Programms benötigen wir Deine Mithilfe - bitte melde dich per Issue, wenn du Anwender in einem verschlüsselten POCSAG-Netz und im **legalen** Besitz des dazugehörigen Schlüssels bist.
2017-02-21 00:09:37 +01:00
In der Zukunft wollen wir die Möglichkeit schaffen, codierte Nachrichten zu entschlüsseln (und nur dann, wenn der Schlüssel bekannt ist!), dafür brauchen wir Dich als Tester!
2016-10-02 21:52:05 +02:00
2017-02-21 00:09:37 +01:00
**Readme ist veraltet** - bitte im [Wiki ](https://github.com/Schrolli91/BOSWatch/wiki ) nachschauen!
2016-10-02 21:20:35 +02:00
2015-04-05 22:22:06 +02:00
2015-04-07 20:18:11 +02:00
2015-04-04 22:58:10 +02:00
**Please** only use Code from **master** -Branch - thats **the only stable!**
2017-09-20 21:27:08 +02:00
beta-branch is for beta-test of new features
2015-04-04 22:58:10 +02:00
unless you are developer you can use the develop-Branch - may be unstable!
2015-04-03 23:06:20 +02:00
2015-04-03 20:48:53 +02:00
### Features
2015-06-05 09:10:11 +02:00
##### Implemented features:
2017-09-20 21:27:08 +02:00
**list is not complete!**
2015-06-05 09:10:11 +02:00
- FMS, ZVEI and POCSAG512/1200/2400 decoding and displaying
- Plugin support for easy functional extension
2015-06-30 12:26:27 +02:00
- Filtering double alarms with adjustable time and check width
2015-06-05 09:10:11 +02:00
- Filtering allowed, denied and range of POCSAG RIC´ s
- Filtering data for each typ/plugin combination with RegEX
- All configurations in a seperate config file
2015-05-20 13:47:12 +02:00
- Data validation (plausibility test)
2015-06-25 17:40:09 +02:00
- Description look-up from csv-files
2015-06-05 09:10:11 +02:00
- Logfiles for better troubleshooting
- verbose/quiet mode for more/none information
2015-06-25 17:40:09 +02:00
- Ready for use BOSWatch as daemon
2015-10-12 22:03:04 +02:00
- possibility to start plugins asynchron
- NMA Error Handler
2017-09-23 09:30:26 +02:00
- multicastAlarm for transmission optimized networks
2015-04-28 11:34:13 +02:00
2015-05-20 13:47:12 +02:00
2017-05-28 10:39:58 +02:00
### Plugins
2015-11-27 00:16:32 +01:00
If you want to code your own Plugin, see `plugins/README.md` .
2015-07-02 10:06:40 +02:00
2015-06-05 09:10:11 +02:00
##### Implemented plugins:
2017-09-20 21:27:08 +02:00
please look at the wiki page
2015-05-20 13:47:12 +02:00
2015-04-03 16:21:06 +02:00
2015-04-03 20:48:53 +02:00
### Configuration
##### boswatch.py
2015-06-05 09:10:11 +02:00
Take a look into the folder /config/
2015-05-21 07:51:43 +02:00
Rename `config.template.ini` to `config.ini`
2015-05-20 13:50:05 +02:00
In the Section `[BOSWatch]` you can set double_alarm_time etc.
In the Section `[Plugins]` you can activate or deactivate the Plugins
2015-06-05 09:10:11 +02:00
For each plugin that requires configurations, a own Section with his name is available
2015-04-03 21:43:00 +02:00
2015-06-05 09:10:11 +02:00
For the other functions see "Usage" below.
2015-04-03 20:48:53 +02:00
2015-05-28 09:18:21 +02:00
##### Filtering Functions (RegEX)
2015-06-05 09:10:11 +02:00
For the RegEX filter functions see Section `[Filters]`
http://www.regexr.com/ - RegEX test tool an documentation
2015-07-02 10:06:40 +02:00
2019-03-11 12:38:43 +01:00
If RegEX is enabled - only allowed data will pass !
2015-05-28 09:18:21 +02:00
2015-07-02 08:54:42 +02:00
Syntax: `INDIVIDUAL_NAME = TYP;DATAFIELD;PLUGIN;FREQUENZ;REGEX` (separator `;` )
2015-07-02 10:23:55 +02:00
- `TYP` = the data typ (FMS|ZVEI|POC)
2016-10-02 12:38:47 +02:00
- `DATAFIELD` = the field of the data array (see readme.md in plugin folder)
2015-07-02 10:23:55 +02:00
- `PLUGIN` = the name of the plugin to call with this filter (* for all)
- `FREQUENZ` = the frequenz to use the filter (for more SDR sticks (* for all))
- `REGEX` = the RegEX
2015-05-28 09:18:21 +02:00
2015-06-05 09:10:11 +02:00
only ZVEI to all plugins with 25### at 85.5MHz
2015-07-02 10:06:40 +02:00
`testfilter = ZVEI;zvei;*;85500000;25[0-9]{3}`
2015-05-28 09:18:21 +02:00
2015-06-05 09:10:11 +02:00
only POCSAG to MySQL with the text "ALARM:" in the message
2015-07-02 10:06:40 +02:00
`pocTest = POC;msg;MySQL;*;ALARM:`
##### Web frontend (obsolete)
2015-10-12 22:03:04 +02:00
old data in folder `/exampeAddOns/simpleWeb/`
2015-05-23 11:12:45 +02:00
2015-07-02 10:06:40 +02:00
~~Put the files in folder /wwww/ into your local webserver folder (f.e. /var/www/).
2015-06-05 09:10:11 +02:00
Now you must edit the "config.php" with your userdata to your local database.
2015-07-02 10:06:40 +02:00
Take a look into the parser.php for the parsing functions~~
2015-04-03 20:48:53 +02:00
2015-05-20 13:47:12 +02:00
2015-04-03 16:21:06 +02:00
### Usage
2017-09-20 21:27:08 +02:00
please look at the wiki page
2015-05-20 13:47:12 +02:00
2015-04-04 12:20:40 +02:00
### Installation
2017-09-20 21:27:08 +02:00
please look at the wiki page
2015-04-05 00:54:41 +02:00
2015-07-02 08:54:42 +02:00
If you want to use BOSWatch as a daemon, you have to set your
2015-06-25 17:40:09 +02:00
configuration in `service/boswatch.sh` and copy it to `/etc/init.d` .
Then you can start BOSWatch with `sudo /etc/init.d/boswatch.sh start` .
For configuration-details see `service/README.md` .
2015-05-20 13:47:12 +02:00
2017-09-20 21:27:08 +02:00
##### Big thanks
to smith_fms and McBo from Funkmeldesystem.de - Forum for Inspiration and Groundwork!