BOSWatch/README.md

124 lines
4.5 KiB
Markdown
Raw Normal View History

![# BOSWatch](/www/gfx/logo.png)
2015-04-04 16:24:54 +02:00
2015-04-08 08:24:02 +02:00
Python Script to receive and decode German BOS Information with rtl_fm and multimon-NG
2015-04-03 16:21:06 +02:00
2015-04-08 20:50:46 +02:00
#### 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.
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!**
unless you are developer you can use the develop-Branch - may be unstable!
2015-04-03 23:06:20 +02:00
### Features
2015-04-04 22:58:10 +02:00
##### Implemented Features:
2015-05-22 08:29:17 +02:00
- FMS, ZVEI and POCSAG512/1200/2400 decoding and Displaying
2015-05-20 13:47:12 +02:00
- Plugin support for easy Functions extension
2015-04-03 16:21:06 +02:00
- Filtering double alarms with adjustable time
2015-05-24 23:34:09 +02:00
- Filtering Allowed, Denied and Range of POCSAG RIC´s
- Filtering Data for each Typ/Plugin combination with RegEX
2015-04-08 08:24:02 +02:00
- All configurations in seperate config File
2015-05-20 13:47:12 +02:00
- Data validation (plausibility test)
- Logfiles for better Troubleshooting
2015-04-08 08:24:02 +02:00
- verbose/quiet Mode for more/none information
2015-04-28 11:34:13 +02:00
2015-04-04 22:58:10 +02:00
##### Features for the Future:
2015-05-22 08:29:17 +02:00
- more Plugins
2015-05-20 13:47:12 +02:00
###Plugins
##### Implemented Plugins:
2015-05-22 10:47:00 +02:00
- MySQL (insert Data into MySQL Database [FMS|ZVEI|POC])
2015-05-24 23:34:09 +02:00
- BosMon (send Data to BosMon Server [FMS|ZVEI|POC])
- httpRequest (send a request with parameter to an URL [FMS|ZVEI|POC])
2015-06-05 08:45:11 +02:00
- eMail (send Mails [FMS|ZVEI|POC])
- firEmergency [ZVEI|POC]
- for more Information to the Plugins see `config.ini`
2015-05-20 13:47:12 +02:00
2015-05-20 13:50:05 +02:00
##### Plugins for the Future:
2015-06-05 08:45:11 +02:00
- Ideas per Issues please
2015-05-20 13:47:12 +02:00
2015-04-03 16:21:06 +02:00
### Configuration
##### boswatch.py
2015-05-21 07:51:43 +02:00
Take a look into the Folder /config/
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-05-20 13:47:12 +02:00
For each Plugin that requires configurations a own Section with his Name is available
For the other Functions see "Usage" below.
2015-05-28 09:18:21 +02:00
##### Filtering Functions (RegEX)
For the RegEX Filter Functions see Section `[Filters]`
http://www.regexr.com/ - RegEX Test Tool an Documentation
No Filter for a Typ/Plugin Combination = all Data pass
Syntax: INDIVIDUAL_NAME = TYP;DATAFIELD;PLUGIN;FREQUENZ;REGEX (separator ";")
2015-05-28 09:18:21 +02:00
- TYP = the Data Typ (FMS|ZVEI|POC)
- DATAFIELD = the field of the Data Array (See interface.txt)
- 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
only ZVEI to all Plugins with 25### at 85.5MHz
testfilter = ZVEI;zvei;*;85500000;25[0-9]{3}
only POCSAG to MySQL with the text "ALARM:" in the Message
pocTest = POC;msg;MySQL;*;ALARM:
2015-05-23 11:12:45 +02:00
##### 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-08 08:24:02 +02:00
For the Parsing Functions take a look into the parser.php
2015-05-20 13:47:12 +02:00
2015-04-03 16:21:06 +02:00
### Usage
2015-04-08 08:24:02 +02:00
`sudo python boswatch.py -f 85.235M -a FMS ZVEI`
2015-04-03 16:21:06 +02:00
Starts boswatch at Frequency 85.235 MHz with the Demodulation Functions FMS and ZVEI.
2015-05-20 13:50:05 +02:00
Parameter -f/--freq and -a/--demod are required!
2015-04-03 16:21:06 +02:00
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:
2015-05-20 13:47:12 +02:00
-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
-a {FMS,ZVEI,POC512,POC1200,POC2400} [{FMS,ZVEI,POC512,POC1200,POC2400} ...],
--demod {FMS,ZVEI,POC512,POC1200,POC2400} [{FMS,ZVEI,POC512,POC1200,POC2400} ...]
2015-05-20 13:47:12 +02:00
Demodulation Functions
-s SQUELCH, --squelch SQUELCH Level of Squelch
-v, --verbose Shows more Information
-q, --quiet Shows no Information. Only Logfiles
```
2015-04-03 22:46:30 +02:00
2015-05-20 13:47:12 +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`
Now the script downloads and compile all needed data.
2015-05-16 08:41:23 +02:00
At the end you can find BOSWatch in `~/boswatch/`
2015-05-21 07:51:43 +02:00
Rename `config.template.ini` to `config.ini` and configure
2015-05-16 08:41:23 +02:00
In case of an Error during the Installation, check the Logfile in `~/boswatch/install/setup_log.txt`
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-05-20 13:47:12 +02:00
2015-04-03 23:06:20 +02:00
### Requirements
- RTL_SDR (rtl_fm)
- Multimon-NG
2015-05-16 08:41:23 +02:00
- Python Support
2015-04-03 23:11:54 +02:00
- MySQL Connector for Python