mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-12 11:40:02 +01:00
add config files
This commit is contained in:
parent
482bc84a86
commit
4c12016ed0
37
config/client.ini
Normal file
37
config/client.ini
Normal 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
43
config/logger_client.ini
Normal 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
43
config/logger_server.ini
Normal 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
50
config/server.ini
Normal 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
|
||||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue