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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
test2 = 123456
|
||||
|
|
|
|||
Loading…
Reference in a new issue