first tests with yaml config

This commit is contained in:
Bastian Schroll 2019-02-27 08:39:54 +01:00
parent 90ccbf9d0d
commit 60912ce705
8 changed files with 94 additions and 89 deletions

View file

@ -1,49 +0,0 @@
# -*- coding: utf-8 -*-
# ____ ____ ______ __ __ __ _____
# / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
# / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
# / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
#/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
# German BOS Information Script
# by Bastian Schroll
[Server]
# connection params to BOSWatch alarm server
IP = 127.0.0.1
PORT = 8080
# you can set multiple servers (one line for each)
# the alarm data are served to all server simultane
# for each server you can set one backup server that be used if master is not reachable
# {indv. name} = {Master}:{PORT};{Slave}:{PORT}
# Name Master Port|Slave Port
server1 = 127.0.0.1:8080
serverTest = 127.0.0.1:1234;192.168.178.1:1234
[Client]
# information about this BOSWatch client instance
Name = BW3 Client
# choose input source for multimon
# 'stick' or 'audio'
InputSource = stick
[Stick]
# configuration for your DVB-T stick
Device = 0
Frequency = 85.000M
PPMError = 0
Squelch = 0
Gain = 100
[Audio]
# configuration for audio input
[Decoder]
# here you can enable needed decoders
FMS = 0
ZVEI = 0
POC512 = 0
POC1200 = 0
POC2400 = 0

View file

@ -10,16 +10,13 @@
client:
name: BW3 Client # name of the BW3 Client instance
inputSource: stick # possible is 'stick' or 'audio'
useBroadcast: yes # use broadcast function to find server
# useBroadcast: yes # use broadcast function to find server
servers: # only used if useBroadcast = no
- name: Server one
ip: 127.0.0.1
port: 8080
- name: Server two
ip: 11.12.13.14
port: 5000
# atm only one server possible
server: # only used if useBroadcast = no
name: Server one
ip: 127.0.0.1
port: 8080
inputSource:
stick:
@ -30,7 +27,7 @@ inputSource:
Gain: 100
audio: # not implemented yet
decoder:
decoder: # not implemented yet
fms: yes
zvei: yes
poc512: yes

68
config/server.yaml Normal file
View file

@ -0,0 +1,68 @@
# -*- coding: utf-8 -*-
# ____ ____ ______ __ __ __ _____
# / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
# / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
# / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
#/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
# German BOS Information Script
# by Bastian Schroll
server:
name: BW3 Server # name of the BW3 Server instance
filter:
doubleFilter:
maxEntry: 30
ignoreTime: 10
checkMsg: no
#[Server]
#PORT = 8080
#Name = BW3 Server
#
#[FMS]
#UseLists =
#Allowed =
#Denied =
#RegEx =
#
#[POCSAG]
#UseLists =
#Allowed =
#Denied =
#Range =
#RegEx =
#
#[ZVEI]
#UseLists =
#Allowed =
#Denied =
#Range =
#RegEx =
#
#[Filter]
#UseDoubleFilter = 0
#UseRegexFilter = 0
#
#[doubleFilter]
## max number of entrys to save for comparison
#MaxEntry = 30
## time to ignore same alarm in seconds
#IgnoreTime = 10
## include pocsag msg in comparison
#CheckMsg = 0
#
#[regexFilter]
#
#[Description]
## load CSV description files with short and lon description
#fms = 0
#pocsag = 0
#zvei = 0
#
#[Plugins]
## here you can enable needed plugins
## 0 is disabled
## all greater than 0 enable the plugin
## the higher the number the earlier the plugin is called on alarm
## we call ist Plugin Prioority
#template = 1