MycroftOS: Show wifisetup FB visual when starting the wifisetup.

This commit is contained in:
Peter Steenbergen 2020-01-06 11:41:32 +01:00
parent e1a4e0c4de
commit dc7396e46e
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def save_credentials():
wifi_key = request.form['wifi_key']
create_wpa_supplicant(ssid, wifi_key)
# Call reboot_device() in a thread otherwise the reboot will prevent
# the response from getting to the browser
def sleep_and_reboot():
@ -108,4 +108,5 @@ def reboot_device():
os.system('reboot')
if __name__ == '__main__':
os.system("fbv -f -d 1 /opt/mycroft/wifisetup/static/images/wifi.png > /dev/null 2>&1")
app.run(host = '0.0.0.0', port = '88')

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB