mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-07 15:24:00 +00:00
remove obsolete test files
This commit is contained in:
parent
a92bd2c4fa
commit
247bc3b6eb
2 changed files with 0 additions and 47 deletions
|
|
@ -1,47 +0,0 @@
|
||||||
#!/usr/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
|
||||||
____ ____ ______ __ __ __ _____
|
|
||||||
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
|
|
||||||
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
|
|
||||||
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
|
|
||||||
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
|
|
||||||
German BOS Information Script
|
|
||||||
by Bastian Schroll
|
|
||||||
"""
|
|
||||||
|
|
||||||
from boswatch.processManager import ProcessManager
|
|
||||||
from boswatch.decoder.decoder import Decoder
|
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig("config/logger_client.ini")
|
|
||||||
|
|
||||||
|
|
||||||
# #### RTL_FM configuration
|
|
||||||
sdrProc = ProcessManager("/usr/bin/rtl_fm")
|
|
||||||
sdrProc.addArgument("-f 85M")
|
|
||||||
# sdrProc.addArgument("-M fm")
|
|
||||||
if not sdrProc.start():
|
|
||||||
exit(0)
|
|
||||||
sdrProc.skipLines(20)
|
|
||||||
|
|
||||||
|
|
||||||
# #### MULTIMON configuration
|
|
||||||
mmProc = ProcessManager("/opt/multimon/multimon-ng", textMode=True)
|
|
||||||
# mmProc.addArgument("-i")
|
|
||||||
mmProc.addArgument("-a FMSFSK -a POCSAG512 -a POCSAG1200 -a POCSAG2400 -a ZVEI1")
|
|
||||||
# mmProc.addArgument("-f alpha")
|
|
||||||
mmProc.addArgument("-t raw -")
|
|
||||||
mmProc.setStdin(sdrProc.stdout)
|
|
||||||
if not mmProc.start():
|
|
||||||
exit(0)
|
|
||||||
# mmProc.skipLines(5)
|
|
||||||
|
|
||||||
|
|
||||||
while 1:
|
|
||||||
if not mmProc.isRunning:
|
|
||||||
logging.warning("multimon was down - try to restart")
|
|
||||||
mmProc.start()
|
|
||||||
# mmProc.skipLines(5)
|
|
||||||
line = mmProc.readline()
|
|
||||||
if line:
|
|
||||||
print(line)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue