From 15bf6fcb82ec3109cd6b555a7a4371bc13d07138 Mon Sep 17 00:00:00 2001 From: Schrolli Date: Fri, 8 May 2015 08:19:32 +0200 Subject: [PATCH 1/2] edit directory structure --- boswatch.py | 10 +++++----- config.ini => config/config.ini | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename config.ini => config/config.ini (100%) diff --git a/boswatch.py b/boswatch.py index 4797542..18044d7 100644 --- a/boswatch.py +++ b/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")) diff --git a/config.ini b/config/config.ini similarity index 100% rename from config.ini rename to config/config.ini From f7b6900b5c29e9a2e986ace0b5f7a4276e1cd315 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Fri, 15 May 2015 20:36:47 +0200 Subject: [PATCH 2/2] edit error in config.ini --- config/config.ini | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/config/config.ini b/config/config.ini index 26e93b9..81c8343 100644 --- a/config/config.ini +++ b/config/config.ini @@ -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:// !