diff --git a/boswatch.py b/boswatch.py index 356ffb5..d7c1aaa 100755 --- a/boswatch.py +++ b/boswatch.py @@ -363,6 +363,15 @@ try: from includes import decoder decoder.decode(freqConverter.freqToHz(args.freq), decoded) + # write multimon-ng raw data + if globals.config.getboolean("BOSWatch","writeMultimonRaw"): + try: + rawMmOut = open("mm_raw.txt", "w") + rawMmOut.write(decoded) + except: + logging.warning("cannot write raw multimon data") + finally: + rawMmOut.close() else: logging.debug("start testing") testFile = open(globals.script_path+"/testdata/testdata.txt","r") diff --git a/config/config.template.ini b/config/config.template.ini index 4bf993b..a7b8c26 100644 --- a/config/config.template.ini +++ b/config/config.template.ini @@ -25,7 +25,7 @@ backupCount = 7 # if you are using many Plugins or Plugins with a long execution time # you could execute them in an asynchronous manner -# It must be pointed out that enabling (0|1) this consume time, +# It must be pointed out that enabling (0|1) this consume time, # so don't use it for one rapid Plugin processAlarmAsync = 0 @@ -48,6 +48,8 @@ doubleFilter_ignore_time = 5 # you will get more then one alarm anyway if the msg is different (receiving-problems) doubleFilter_check_msg = 0 +# writes the multimon-ng raw data stream into a text file named mm_raw.txt +writeMultimonRaw = 1 [NMAHandler] # you could use an logging handler for sending logging records to NotifyMyAndroid @@ -57,8 +59,8 @@ enableHandler = 0 # loglevel for NMAHandler (see BOSWatch loglevel description) loglevel = 50 -# logging record will send to APIKey -APIKey = +# logging record will send to APIKey +APIKey = # You could change the name of the application (default: BOSWatch) # (f.e. if you use more than one instance of BOSWatch) @@ -267,7 +269,7 @@ port = 8888 [notifyMyAndroid] # this APIKey is used for Plugin -APIKey = +APIKey = # Priority goes from -2 (lowest) to 2 (highest). the default priority is 0 (normal) priority = 0 @@ -288,4 +290,4 @@ usecsv = 0 [template] test1 = testString -test2 = 123456 \ No newline at end of file +test2 = 123456