BOSWatch/includes/shellHeader.py

60 lines
1.5 KiB
Python
Raw Normal View History

2015-06-25 21:19:41 +02:00
#!/usr/bin/python
# -*- coding: cp1252 -*-
"""
Shows the header in shell if quiet mode is not active
@author: Bastian Schroll
@author: Jens Herrmann
@requires: none
"""
from includes import globals
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:
2015-07-02 09:02:49 +02:00
print " ____ ____ ______ __ __ __ "
print " / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ "
print " / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ "
print " / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / "
print " /_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ "
print " German BOS Information Script "
print " by Bastian Schroll, Jens Herrmann "
print ""
print "SW Version: "+globals.getVers("vers")
print "Build Date: "+globals.getVers("date")
print ""
2015-06-25 21:19:41 +02:00
print "Frequency: "+args.freq
print "Device-ID: "+str(args.device)
print "Error in PPM: "+str(args.error)
print "Active Demods: "+str(len(args.demod))
if "FMS" in args.demod:
print "- FMS"
if "ZVEI" in args.demod:
2015-07-02 09:02:49 +02:00
print "- ZVEI"
2015-06-25 21:19:41 +02:00
if "POC512" in args.demod:
print "- POC512"
if "POC1200" in args.demod:
print "- POC1200"
if "POC2400" in args.demod:
2015-07-02 09:02:49 +02:00
print "- POC2400"
2015-06-25 21:19:41 +02:00
print "Squelch: "+str(args.squelch)
if args.verbose:
2015-07-02 09:02:49 +02:00
print "Verbose Mode!"
2015-06-30 12:38:52 +02:00
if args.test:
print "Test Mode!"
2015-07-02 09:02:49 +02:00
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)