add config files

This commit is contained in:
Bastian Schroll 2018-01-07 21:49:08 +01:00
parent 482bc84a86
commit 4c12016ed0
5 changed files with 174 additions and 1 deletions

37
config/client.ini Normal file
View file

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# ____ ____ ______ __ __ __ _____
# / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
# / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
# / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
#/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
# German BOS Information Script
# by Bastian Schroll
[Server]
# connection params to BOSWatch alarm server
IP = 127.0.0.1
PORT = 8080
# choose input source for multimon
# 'stick' or 'audio'
InputSource = stick
[Client]
# information about this BOSWatch client instance
Name = BW3 Client
[Stick]
# configuration for your DVB-T stick
Device = 0
Frequency = 85.000M
PPMError = 0
Squelch = 0
Gain = 100
[Decoder]
# here you can enable needed decoders
FMS = 0
ZVEI = 0
POC512 = 0
POC1200 = 0
POC2400 = 0

43
config/logger_client.ini Normal file
View file

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# ____ ____ ______ __ __ __ _____
# / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
# / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
# / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
#/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
# German BOS Information Script
# by Bastian Schroll
[loggers]
keys=root
[logger_root]
handlers=screen,file
level=NOTSET
[formatters]
keys=simple,complex
[formatter_simple]
format=%(asctime)s - %(module)-12s [%(levelname)-8s] %(message)s
datefmt=%d.%m.%Y %H:%M:%S
[formatter_complex]
format=%(asctime)s - %(module)-12s %(funcName)-15s [%(levelname)-8s] %(message)s
datefmt=%d.%m.%Y %H:%M:%S
[handlers]
keys=file,screen
[handler_file]
class=handlers.TimedRotatingFileHandler
interval=midnight
backupCount=7
formatter=complex
level=DEBUG
args=('log/client.log',)
[handler_screen]
class=StreamHandler
formatter=simple
level=DEBUG
args=(sys.stdout,)

43
config/logger_server.ini Normal file
View file

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# ____ ____ ______ __ __ __ _____
# / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
# / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
# / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
#/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
# German BOS Information Script
# by Bastian Schroll
[loggers]
keys=root
[logger_root]
handlers=screen,file
level=NOTSET
[formatters]
keys=simple,complex
[formatter_simple]
format=%(asctime)s - %(module)-12s [%(levelname)-8s] %(message)s
datefmt=%d.%m.%Y %H:%M:%S
[formatter_complex]
format=%(asctime)s - %(module)-12s %(funcName)-15s [%(levelname)-8s] %(message)s
datefmt=%d.%m.%Y %H:%M:%S
[handlers]
keys=file,screen
[handler_file]
class=handlers.TimedRotatingFileHandler
interval=midnight
backupCount=7
formatter=complex
level=DEBUG
args=('log/server.log',)
[handler_screen]
class=StreamHandler
formatter=simple
level=DEBUG
args=(sys.stdout,)

50
config/server.ini Normal file
View file

@ -0,0 +1,50 @@
# -*- coding: utf-8 -*-
# ____ ____ ______ __ __ __ _____
# / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
# / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
# / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
#/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
# German BOS Information Script
# by Bastian Schroll
[Server]
PORT = 8080
Name = BW3 Server
[FMS]
UseLists = 0
Allowed =
Denied =
[POCSAG]
UseLists = 0
Allowed =
Denied =
Range =
[ZVEI]
UseLists = 0
Allowed =
Denied =
[Filter]
UseDoubleFilter = 1
UseRegexFilter = 0
[doubleFilter],
# max number of entrys to compare
MaxEntry = 30
# time to ignore same alarm
IgnoreTime = 30
# include pocsag msg in compare
CheckMsg = 0
[Description]
# load CSV description file for the alarm modes
fms = 0
pocsag = 0
zvei = 0
[Plugins]
# here you can enable needed plugins
template = 0

View file

@ -18,7 +18,7 @@
from boswatch.decoder import decoder
class Test_decoder:
class Test_Decoder:
"""!Unittests for the decoder"""
def test_decoder_no_data(self):