Update server.py
This commit is contained in:
@@ -169,6 +169,7 @@ def save_displaying(input_settings):
|
|||||||
|
|
||||||
@app.route ("/start", methods = ['PUT', 'POST'])
|
@app.route ("/start", methods = ['PUT', 'POST'])
|
||||||
def start():
|
def start():
|
||||||
|
|
||||||
global displaying_screensaver
|
global displaying_screensaver
|
||||||
global ticker
|
global ticker
|
||||||
global api_caller
|
global api_caller
|
||||||
@@ -178,6 +179,7 @@ def start():
|
|||||||
ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
|
ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
|
||||||
api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py")
|
api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py")
|
||||||
displaying_screensaver = False
|
displaying_screensaver = False
|
||||||
|
api_caller.sendline('A')
|
||||||
|
|
||||||
ticker.sendline('K')
|
ticker.sendline('K')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user