mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-04 07:40:16 +01:00
commit
26d5a00ad4
10
boswatch.py
10
boswatch.py
|
|
@ -35,7 +35,7 @@ def log(msg, level="log"):
|
|||
if not level == "log" and not args.quiet or args.verbose:
|
||||
print log_entry
|
||||
|
||||
bos_log = open(script_path+"/log_bos.txt", "a")
|
||||
bos_log = open(script_path+"/log/log_bos.txt", "a")
|
||||
bos_log.write(log_entry+"\n")
|
||||
bos_log.close()
|
||||
|
||||
|
|
@ -45,9 +45,9 @@ try:
|
|||
#Clear the Logfiles
|
||||
try:
|
||||
script_path = os.path.dirname(os.path.abspath(__file__))
|
||||
bos_log = open(script_path+"/log_bos.txt", "w")
|
||||
rtl_log = open(script_path+"/log_rtl.txt", "w")
|
||||
mon_log = open(script_path+"/log_mon.txt", "w")
|
||||
bos_log = open(script_path+"/log/log_bos.txt", "w")
|
||||
rtl_log = open(script_path+"/log/log_rtl.txt", "w")
|
||||
mon_log = open(script_path+"/log/log_mon.txt", "w")
|
||||
bos_log.write("##### "+curtime()+" #####\n\n")
|
||||
rtl_log.write("##### "+curtime()+" #####\n\n")
|
||||
mon_log.write("##### "+curtime()+" #####\n\n")
|
||||
|
|
@ -140,7 +140,7 @@ try:
|
|||
log("reading config file")
|
||||
try:
|
||||
config = ConfigParser.ConfigParser()
|
||||
config.read(script_path+"/config.ini")
|
||||
config.read(script_path+"/config/config.ini")
|
||||
fms_double_ignore_time = int(config.get("FMS", "double_ignore_time"))
|
||||
zvei_double_ignore_time = int(config.get("ZVEI", "double_ignore_time"))
|
||||
poc_double_ignore_time = int(config.get("POC", "double_ignore_time"))
|
||||
|
|
|
|||
|
|
@ -18,8 +18,7 @@ filter_range_end = 9999999
|
|||
|
||||
#can take on or off the modules (0|1)
|
||||
[Module]
|
||||
useMySQL = 1
|
||||
#useAudiorecord = 0
|
||||
useMySQL = 0
|
||||
useHTTPrequest = 0
|
||||
|
||||
[MySQL]
|
||||
|
|
@ -32,11 +31,7 @@ database = boswatch
|
|||
#tables in the database
|
||||
tableFMS = bos_fms
|
||||
tableZVEI = bos_zvei
|
||||
tablePOC = pocsag_hist
|
||||
|
||||
#[Audiorecord]
|
||||
#recording time (sek)
|
||||
#record_time = 30
|
||||
tablePOC = bos_pocsag
|
||||
|
||||
[HTTPrequest]
|
||||
#url without http:// !
|
||||
Loading…
Reference in a new issue