Exemplo n.º 1
0
def restartFldigi():
    global app
    app.kill()
    time.sleep(3)
    app = pyfldigi.ApplicationMonitor()
    app.start()
    client = pyfldigi.Client()
    client.modem.carrier = 2500
    time.sleep(2)
Exemplo n.º 2
0
def restartFldigi():
    global app
    app.kill()
    time.sleep(3)
    app = pyfldigi.ApplicationMonitor()
    app.start()
    client = pyfldigi.Client()
    client.modem.carrier = 2500
    time.sleep(2)
    client.main.send("de restart successful k/n", timeout=15)
Exemplo n.º 3
0
 def __init__(
         self,
         no_proxy=False,
         host=host_ip,
         xml_port=xml_port,
         proxy_in=None,
         proxy_out=None,
 ):
     self.host_ip = host
     if xml_port is not None:
         self.xml_port = xml_port
     if not no_proxy:
         self.proxy_in = proxy_in
         self.proxy_out = proxy_out
     self.fl_client = pyfldigi.Client(hostname=self.host_ip, port=self.xml_port)
     self.fl_app = pyfldigi.ApplicationMonitor(
         hostname=self.host_ip, port=self.xml_port
     )
     self.last_recv = time.time()
     self.last_send = time.time()
Exemplo n.º 4
0
 def __init__(
     self,
     no_daemon=False,
     no_proxy=False,
     host=host_ip,
     xml_port=xml_port,
     proxy_port=proxy_port,
     headless=False,
     wfall_only=False,
     start_delay=start_delay,
 ):
     self.host_ip = host
     if xml_port is not None:
         self.xml_port = xml_port
     if not no_proxy:
         self.proxy_port = proxy_port
     self.start_delay = start_delay
     self.fl_client = pyfldigi.Client(hostname=self.host_ip,
                                      port=self.xml_port)
     self.fl_app = pyfldigi.ApplicationMonitor(hostname=self.host_ip,
                                               port=self.xml_port)
     if not no_daemon:
         self.fl_app.start(headless=headless, wfall_only=wfall_only)
     sleep(self.start_delay)
Exemplo n.º 5
0
    baseGPS.py
    Andrew L
    competition gps for basestation
********************************************************************'''
import pyfldigi
import time
import webbrowser

'''
Standard into box into laptop
Green into insulator into nuc
https://maps.googleapis.com/maps/api/staticmap?center=51.453444,-112.714806&zoom=19&size=2000x1000&maptype=satellite&markers=size:tiny|51.453444,%20-112.714806&key=AIzaSyD-yP3nNmaVoY-GSmxF7xenPg4x_TywtLU
AIzaSyD-yP3nNmaVoY-GSmxF7xenPg4x_TywtLU
'''

app = pyfldigi.ApplicationMonitor()
app.start()     # starts fldigi
client = pyfldigi.Client()
client.modem.name = 'BPSK63'    # sets op mode
client.modem.carrier = 2500 #sets cursor frequency

CALL_SIGN = "KD9JTB"
startString = "IDevice:"
endString = ";"
''' ideal message would be like "Idevice:5B:print('wow');"
    
    Recieving Functions:
    opMode(modeName) - changes the op mode to modeName (send as string)
    changeFrequency(frequency) - changes the operating frequency in MHz
    restartFldigi() - restarts the app and client
'''