Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated to allow supression of some vars

  • Loading branch information...
commit 24fd5aa344f27bfa678f01f7b77ff7ab7add61c6 1 parent 78eb4ad
@muonzoo authored
Showing with 30 additions and 6 deletions.
  1. +14 −1 README.rst
  2. +16 −5 fldigi-aether-logger.py
View
15 README.rst
@@ -19,13 +19,18 @@ script or understand Python_ to make this work for you.
Here is the macro text I use in the fldigi_ macro.:
- <EXEC>$HOME/.fldigi/scripts/fldigi-aether-logger.py & </EXEC>
+ <EXEC>$HOME/.fldigi/scripts/fldigi-aether-logger.py & </EXEC>
The above macro can be directly copied into your Log QSO Macro definition window in fldigi_.
Release History
---------------
+v0.5:
+ * Updated to support a '--no-xxxx' argument which will skip logging
+ any FLDIGI environment variables that match the xxxx part of the arg
+ (case insensitive)
+
v0.4 :
* Updated to correct error rounding frequencies.
@@ -49,6 +54,14 @@ Arguments
Print out key information of script execution on stdout, will appear
in fldigi window.
+--no-xxxxx:
+ Skip logging any environment variable that matches xxxxx. (Case
+ insensitive). Can be used (for example) to skip recording the
+ frequency by using:
+
+ fldigi-aether-logger.py --no-freq
+
+
This presumes that this script is called fldigi-aether-logger.py AND
That this script is in $HOME/.fldigi/scripts with the execute bit set.
View
21 fldigi-aether-logger.py
@@ -50,6 +50,7 @@
debug=False
mandatory=False
+skip = []
fl_env_prefix='FLDIGI_'
def callsign_fmt(s): return s.strip()
@@ -168,11 +169,18 @@ def inform_aether(env,debug=False,launch=True):
for k in d:
trace()
if k in env:
- trace("processing %s"%(k,))
- e2a=d[k]
- trace(str(e2a[2]))
- script = e2a[1](code=script,
- value = e2a[0](env[k]),**e2a[2])
+ skipping = False
+ for s in skip:
+ if s.lower() in k.lower():
+ trace('skipping '+k)
+ skipping = True
+ continue
+ if not skipping:
+ trace("processing %s"%(k,))
+ e2a=d[k]
+ trace(str(e2a[2]))
+ script = e2a[1](code=script,
+ value = e2a[0](env[k]),**e2a[2])
trace()
script = osa_postamble(script)
@@ -219,6 +227,9 @@ def test_dict() :
elif argv[1] == '--no-launch':
trace('will not launch aether')
launch_arg = False
+ elif argv[1][:5] == '--no-':
+ skip.append(argv[1][5:])
+ trace('skipping any var matching: ' + skip[-1] )
argv = argv[1:]
trace('finished arg processing')
inform_aether( d, launch=launch_arg,debug=debug)
Please sign in to comment.
Something went wrong with that request. Please try again.