added first boot screeen

This commit is contained in:
Your Name
2022-02-14 18:48:27 +00:00
parent 801916adb5
commit fc2273a85b
4 changed files with 36 additions and 6 deletions

View File

@@ -48,6 +48,17 @@ ALLOWED_EXTENSIONS = {'csv', 'png'}
ticker = pexpect.spawn("sudo -E python3 stockTicker.py")
ticker.sendline('*') # run by default
time.sleep(8)
system_info = json.load(open('csv/system_info.json'))
if system_info['first_boot']: # let startup message display
time.sleep(10)
system_info['first_boot'] = False
json.dump(system_info, open('csv/system_info.json', 'w'))
ticker.sendline('A') # run by default
def allowed_file(filename):