Update server.py
This commit is contained in:
parent
830ea41e8f
commit
3bfd896fa0
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user