mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-01-04 21:08:38 +01:00
MycroftOS: Show wifisetup FB visual when starting the wifisetup.
This commit is contained in:
parent
e1a4e0c4de
commit
dc7396e46e
@ -27,7 +27,7 @@ def save_credentials():
|
|||||||
wifi_key = request.form['wifi_key']
|
wifi_key = request.form['wifi_key']
|
||||||
|
|
||||||
create_wpa_supplicant(ssid, wifi_key)
|
create_wpa_supplicant(ssid, wifi_key)
|
||||||
|
|
||||||
# Call reboot_device() in a thread otherwise the reboot will prevent
|
# Call reboot_device() in a thread otherwise the reboot will prevent
|
||||||
# the response from getting to the browser
|
# the response from getting to the browser
|
||||||
def sleep_and_reboot():
|
def sleep_and_reboot():
|
||||||
@ -108,4 +108,5 @@ def reboot_device():
|
|||||||
os.system('reboot')
|
os.system('reboot')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
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')
|
app.run(host = '0.0.0.0', port = '88')
|
||||||
|
BIN
buildroot-external/rootfs-overlay/opt/mycroft/wifisetup/static/images/wifi.png
Executable file
BIN
buildroot-external/rootfs-overlay/opt/mycroft/wifisetup/static/images/wifi.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 122 KiB |
Loading…
Reference in New Issue
Block a user