minor server updates

This commit is contained in:
Neythen 2021-11-29 15:20:54 +00:00
parent f1bd12885c
commit faf5a4acdc
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -1,9 +1,9 @@
# Copyright (C) 2020 Daniel Richardson richardson.daniel@hotmail.co.uk
# Copyright (C) 2021 Neythen Treloar neythen@fintic.io
#
# This file is part of stockTicker project for justinodunn.
#
# stockTicker can not be copied and/or distributed without the express
# permission of Daniel Richardson
# permission of Neythen Treloar
from flask import Flask, render_template, request
from stockTicker import StockTicker
@ -20,7 +20,7 @@ from subprocess import Popen, PIPE
import numpy as np
#stock_ticker = StockTicker()
#print('API CALLER NOT STARTED')
api_caller = pexpect.spawn("sudo -E python3 api_caller.py")
api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py")
displaying_screensaver = False
screensaver_p = None
professional = json.load(open('csv/display_settings.json', 'r'))[0] == "Professional"
@ -35,7 +35,7 @@ LOGO_FOLDER = 'logos/'
CSV_FOLDER = 'csv/new/'
ALLOWED_EXTENSIONS = {'csv', 'png'}
ticker = pexpect.spawn("sudo -E taskset -c 3 python3 stockTicker.py")
ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
ticker.sendline('*') # run by default
ticker.sendline('A') # run by default