ddtabase caller bugfix

This commit is contained in:
Neythen Treloar
2022-02-28 16:38:24 +00:00
parent 6ceb2e3645
commit 8a535249b4
2 changed files with 57 additions and 49 deletions

View File

@@ -21,15 +21,21 @@ from subprocess import Popen, PIPE
import numpy as np
import copy
import urllib.request
import sys
#stock_ticker = StockTicker()
#print('API CALLER NOT STARTED')
#open('log.txt', 'w').close() #wipe logs
os.system("sudo ./check_update.sh")
#api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py")
api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 database_caller.py")
api_caller.sendline('A')
time.sleep(3)
api_caller.sendline('s')
#api_caller.sendline('A')
sys.exit()
os.system("sudo ./check_update.sh")
displaying_screensaver = False
uploading = False
screensaver_p = None