예제 #1
0
def init():
    print("┌──────────────────────────────────────────────┐")
    print("│                   xrit-rx                    │")
    print("│         LRIT/HRIT Downlink Processor         │")
    print("├──────────────────────────────────────────────┤")
    print("│     @sam210723         vksdr.com/xrit-rx     │")
    print("└──────────────────────────────────────────────┘\n")

    global args
    global config
    global stime
    global downlink
    global output
    global blacklist
    global demux
    global keys

    # Handle arguments and config file
    args = parse_args()
    config = parse_config(args.config)
    print_config()

    # Initialise Colorama
    colorama.init(autoreset=True)

    # Configure directories and input source
    dirs()
    config_input()

    # Load decryption keys
    load_keys()

    # Create demuxer instance
    dcfg = namedtuple(
        'dcfg',
        'spacecraft downlink verbose dump output images xrit blacklist keys')
    output += "/" + downlink + "/"
    demux = Demuxer(
        dcfg(spacecraft, downlink, args.v, args.dump, output, output_images,
             output_xrit, blacklist, keys))

    # Check demuxer thread is ready
    if not demux.coreReady:
        print(Fore.WHITE + Back.RED + Style.BRIGHT +
              "DEMUXER CORE THREAD FAILED TO START\nExiting...")
        exit()

    print(
        "──────────────────────────────────────────────────────────────────────────────────\n"
    )

    # Get processing start time
    stime = time()

    # Enter main loop
    loop()
예제 #2
0
파일: xrit-rx.py 프로젝트: cn0xroot/xrit-rx
def init():
    print("┌──────────────────────────────────────────────┐")
    print("│                   xrit-rx                    │")
    print("│         LRIT/HRIT Downlink Processor         │")
    print("├──────────────────────────────────────────────┤")
    print("│     @sam210723         vksdr.com/xrit-rx     │")
    print("└──────────────────────────────────────────────┘\n")
    
    global args
    global config
    global stime
    global downlink
    global output
    global blacklist
    global demux
    global keys

    # Handle arguments and config file
    args = parse_args()
    config = parse_config(args.config)
    print_config()

    # Configure directories and input source
    dirs()
    config_input()

    # Load decryption keys
    load_keys()

    # Create demuxer instance
    output += "/" + downlink + "/"
    demux = Demuxer(downlink, args.v, args.dump, output, blacklist, keys)

    # Check demuxer thread is ready
    if not demux.coreReady:
        print("DEMUXER CORE THREAD FAILED TO START\nExiting...")
        exit()

    print("──────────────────────────────────────────────────────────────────────────────────\n")

    # Get processing start time
    stime = time()

    # Enter main loop
    loop()
예제 #3
0
파일: xrit-rx.py 프로젝트: sam210723/COMS-1
def init():
    print("┌───────────────────────────────────┐")
    print("│          COMS-1 xRIT RX           │")
    print("│    github.com/sam210723/COMS-1    │")
    print("└───────────────────────────────────┘\n")
    
    global args
    global config
    global stime
    global demux
    global keys

    # Handle arguments and config file
    args = parse_args()
    config = parse_config(args.config)
    print_config()

    # Configure directories and input source
    dirs()
    config_input()

    # Load decryption keys
    load_keys()

    # Create demuxer instance
    demux = Demuxer(downlink, args.v, args.dump, path.abspath(output), keys)

    # Check demuxer thread is ready
    if not demux.coreReady:
        print("DEMUXER CORE THREAD FAILED TO START\nExiting...")
        exit()

    print("──────────────────────────────────────────────────────────────────────────────────\n")

    # Get processing start time
    stime = time()

    # Enter main loop
    loop()
예제 #4
0
 def OnDemuxButton(self,event):
   try:
     demuxer=Demuxer(self.tools,self.filename,self.options.format)
   except Exception,e:
     wx.MessageBox('Failed to demux file:\n'+str(e),'Error',parent=self,style=wx.OK|wx.CENTRE|wx.ICON_ERROR)
     return