BOSWatch/includes/shellHeader.py

62 lines
1.7 KiB
Python
Raw Normal View History

2015-06-25 21:19:41 +02:00
#!/usr/bin/python
# -*- coding: UTF-8 -*-
2015-06-25 21:19:41 +02:00
"""
Shows the header in shell if quiet mode is not active
@author: Bastian Schroll
@author: Jens Herrmann
@requires: none
"""
from includes import globalVars
2015-06-25 21:19:41 +02:00
def printHeader(args):
"""
Prints the header to the shell
@type args: Array
@param args: All given arguments from argsparser
2015-07-02 09:02:49 +02:00
2015-06-25 21:19:41 +02:00
@return: nothing
"""
try:
2022-01-01 23:02:47 +01:00
print(" ____ ____ ______ __ __ __ ")
print(" / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ ")
print(" / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ ")
print(" / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ")
print(" /_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ ")
print(" German BOS Information Script ")
print(" by Bastian Schroll, Jens Herrmann ")
print("")
print(("SW Version: "+globalVars.versionNr))
print(("Branch: "+globalVars.branch))
print(("Build Date: "+globalVars.buildDate))
print("")
print(("Frequency: "+args.freq))
print(("Device-ID: "+str(args.device)))
print(("Error in PPM: "+str(args.error)))
print(("Active Demods: "+str(len(args.demod))))
2015-06-25 21:19:41 +02:00
if "FMS" in args.demod:
2022-01-01 23:02:47 +01:00
print("- FMS")
2015-06-25 21:19:41 +02:00
if "ZVEI" in args.demod:
2022-01-01 23:02:47 +01:00
print("- ZVEI")
2015-06-25 21:19:41 +02:00
if "POC512" in args.demod:
2022-01-01 23:02:47 +01:00
print("- POC512")
2015-06-25 21:19:41 +02:00
if "POC1200" in args.demod:
2022-01-01 23:02:47 +01:00
print("- POC1200")
2015-06-25 21:19:41 +02:00
if "POC2400" in args.demod:
2022-01-01 23:02:47 +01:00
print("- POC2400")
print(("Squelch: "+str(args.squelch)))
print(("Gain: "+str(args.gain)))
2015-06-25 21:19:41 +02:00
if args.verbose:
2022-01-01 23:02:47 +01:00
print("Verbose Mode!")
2015-06-30 12:38:52 +02:00
if args.test:
2022-01-01 23:02:47 +01:00
print("Test Mode!")
print("")
2015-06-25 21:19:41 +02:00
except:
logging.error("cannot display shell header")
2015-07-02 09:02:49 +02:00
logging.debug("cannot display shell header", exc_info=True)