Update server.py

This commit is contained in:
Neythen Treloar 2022-02-15 19:50:20 +00:00 committed by GitHub
parent 830ea41e8f
commit 3bfd896fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,7 @@ def save_displaying(input_settings):
@app.route ("/start", methods = ['PUT', 'POST'])
def start():
global displaying_screensaver
global ticker
global api_caller
@ -178,6 +179,7 @@ def start():
ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py")
displaying_screensaver = False
api_caller.sendline('A')
ticker.sendline('K')