add func to write multimon raw data into txt file

This commit is contained in:
Bastian Schroll 2016-07-01 11:31:28 +02:00
parent a472b42e22
commit a6239f2470
2 changed files with 16 additions and 5 deletions

View file

@ -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")

View file

@ -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