2015-04-04 19:10:50 +02:00
|
|
|

|
2015-04-04 16:24:54 +02:00
|
|
|
|
2015-04-03 23:11:54 +02:00
|
|
|
Python Script to Recive and Decode German BOS Information with rtl_fm and multimon-NG
|
2015-04-03 16:21:06 +02:00
|
|
|
|
2015-04-07 20:18:11 +02:00
|
|
|
#### Note:
|
2015-04-05 22:22:06 +02:00
|
|
|
**This software is for illustrative purposes only and may be used only by authorized persons.**
|
|
|
|
|
|
|
|
|
|
**The intercept of the German BOS radio is strictly prohibited !!!**
|
|
|
|
|
|
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!**
|
|
|
|
|
|
|
|
|
|
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-04-04 22:58:10 +02:00
|
|
|
##### Implemented Features:
|
2015-04-03 16:21:06 +02:00
|
|
|
- FMS and ZVEI decoding and Displaying
|
|
|
|
|
- Filtering double alarms with adjustable time
|
2015-04-03 22:38:53 +02:00
|
|
|
- FMS and ZVEI validation (plausibility test)
|
2015-04-03 16:21:06 +02:00
|
|
|
- MySQL Database Support for FMS and ZVEI
|
2015-04-04 21:47:09 +02:00
|
|
|
- simple HTTP request at alarm to URL you want
|
2015-04-03 16:21:06 +02:00
|
|
|
- All configurations in seperate File "config.ini"
|
2015-04-04 16:24:54 +02:00
|
|
|
- simple Web Frontend with Data Parsing
|
2015-04-05 00:54:41 +02:00
|
|
|
- Logfiles for better Troubleshooting
|
2015-04-03 16:21:06 +02:00
|
|
|
|
2015-04-04 22:58:10 +02:00
|
|
|
##### Features for the Future:
|
2015-04-03 16:21:06 +02:00
|
|
|
- extensive filtering options
|
2015-04-04 12:20:40 +02:00
|
|
|
- POCSAG 512,1200,2400 support (need RAW data from multimon-ng)
|
2015-04-03 16:21:06 +02:00
|
|
|
- automatic Audio recording at alarm
|
2015-04-04 16:24:54 +02:00
|
|
|
- Web Frontend with Overview and configuration
|
2015-04-03 16:21:06 +02:00
|
|
|
|
2015-04-03 20:48:53 +02:00
|
|
|
### Configuration
|
|
|
|
|
##### boswatch.py
|
2015-04-04 16:24:54 +02:00
|
|
|
The configuration for the Script you can find in config.ini
|
|
|
|
|
- You can set the ignore time for double alarms in seconds.
|
2015-04-07 22:31:16 +02:00
|
|
|
- to use the script with MySQL Support set "useMySQL = 1" and the Userdata to your local MySQL Database.
|
|
|
|
|
- to use the script with HTTP request Support set "useHTTPrequest = 1" and set a URL to your destination.
|
2015-04-03 21:43:00 +02:00
|
|
|
|
2015-04-03 20:48:53 +02:00
|
|
|
For the other Functions see "Usage" below.
|
|
|
|
|
|
|
|
|
|
##### Web Frontend
|
|
|
|
|
Put the Files in Folder /wwww/ into your local Webserver Folder (/var/www/).
|
2015-04-04 16:24:54 +02:00
|
|
|
Now you must edit the "config.php" with your Userdata to your local Database.
|
2015-04-03 20:48:53 +02:00
|
|
|
|
2015-04-03 16:21:06 +02:00
|
|
|
### Usage
|
|
|
|
|
`sudo python boswatch.py -f 85.235M -a FMS ZVEI -s 50`
|
|
|
|
|
Starts boswatch at Frequency 85.235 MHz with the Demodulation Functions FMS and ZVEI.
|
|
|
|
|
Squelch level is set to 50
|
|
|
|
|
|
|
|
|
|
Help to all usable Parameters with `sudo python boswatch.py -h`
|
2015-04-03 16:35:34 +02:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
usage: boswatch.py [-h] -f FREQ [-d DEVICE] [-e ERROR] -a
|
|
|
|
|
{FMS,ZVEI,POC512,POC1200,POC2400}
|
|
|
|
|
[{FMS,ZVEI,POC512,POC1200,POC2400} ...] [-s SQUELCH] [-v]
|
|
|
|
|
|
|
|
|
|
optional arguments:
|
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
|
-f FREQ, --freq FREQ Frequency you want to listen
|
|
|
|
|
-d DEVICE, --device DEVICE
|
|
|
|
|
Device you want to use (Check with rtl_test)
|
|
|
|
|
-e ERROR, --error ERROR
|
|
|
|
|
Frequency-Error of your Device in PPM
|
2015-04-03 22:38:53 +02:00
|
|
|
-a {FMS,ZVEI,POC512,POC1200,POC2400} [{FMS,ZVEI,POC512,POC1200,POC2400} ...],
|
|
|
|
|
--demod {FMS,ZVEI,POC512,POC1200,POC2400} [{FMS,ZVEI,POC512,POC1200,POC2400} ...]
|
2015-04-03 16:35:34 +02:00
|
|
|
Demodulation Functions
|
|
|
|
|
-s SQUELCH, --squelch SQUELCH
|
|
|
|
|
Level of Squelch
|
|
|
|
|
-v, --verbose Shows more Information
|
2015-04-07 22:31:16 +02:00
|
|
|
-q, --quiet Shows no Information. Only Logfiles
|
2015-04-03 20:48:53 +02:00
|
|
|
```
|
2015-04-03 22:46:30 +02:00
|
|
|
|
2015-04-04 12:20:40 +02:00
|
|
|
### Installation
|
|
|
|
|
You can easy install BOSWatch with the install.sh Script.
|
2015-04-04 12:22:52 +02:00
|
|
|
- Download the install.sh in any Folder you want.
|
|
|
|
|
- Make it executeable `sudo chmod +x install.sh`
|
|
|
|
|
- And use the script `sudo sh install.sh`
|
|
|
|
|
|
2015-04-04 12:20:40 +02:00
|
|
|
Now the script downloads and compile all needed data.
|
2015-04-07 20:12:58 +02:00
|
|
|
At the end you can find the Programm in `~/bos/BOSWatch`
|
2015-04-04 12:20:40 +02:00
|
|
|
|
2015-04-05 00:54:41 +02:00
|
|
|
Caution, script don't install a Webserver with PHP and MySQL.
|
|
|
|
|
So you have to make up manually if you want to use MySQL support.
|
|
|
|
|
|
2015-04-03 23:06:20 +02:00
|
|
|
### Requirements
|
|
|
|
|
- RTL_SDR (rtl_fm)
|
|
|
|
|
- Multimon-NG
|
2015-04-03 23:11:54 +02:00
|
|
|
- MySQL Connector for Python
|
2015-04-03 23:06:20 +02:00
|
|
|
|
|
|
|
|
##### optional
|
|
|
|
|
- Webserver with PHP
|
|
|
|
|
- MySQL Database Server
|
|
|
|
|
|
2015-04-03 22:46:30 +02:00
|
|
|
Thanks to smith_fms and McBo from [Funkmeldesystem.de - Forum](http://www.funkmeldesystem.de/) for Inspiration and Groundwork!
|
2015-04-04 19:21:42 +02:00
|
|
|
|
2015-04-04 22:58:10 +02:00
|
|
|
###### Greetz Schrolli
|