mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
add func to write multimon raw data into txt file
This commit is contained in:
parent
a472b42e22
commit
a6239f2470
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue