mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 03:57:07 +03:00
Firmware update UI revamp with support for local proxy
This commit is contained in:
@@ -1,51 +1,123 @@
|
||||
[{
|
||||
[
|
||||
{
|
||||
"message": "Save Success",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_SYSTEM",
|
||||
"sent_time": 14084,
|
||||
"current_time": 16958
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Initializing...\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119203,
|
||||
"current_time": 121837
|
||||
"sent_time": 14110,
|
||||
"current_time": 16958
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Starting OTA...\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
"sent_time": 14146,
|
||||
"current_time": 16958
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Erasing...\",\"ota_pct\":0}",
|
||||
"message": "{\"ota_dsc\":\"Downloading firmware\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Erasing...\",\"ota_pct\":10}",
|
||||
"sent_time": 15208,
|
||||
"current_time": 16958
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Download success\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
"sent_time": 18825,
|
||||
"current_time": 22219
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Erasing...\",\"ota_pct\":100}",
|
||||
"message": "{\"ota_dsc\":\"New version is : mock version \",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
"sent_time": 18849,
|
||||
"current_time": 22220
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Flashing...\",\"ota_pct\":10}",
|
||||
"message": "{\"ota_dsc\":\"Formatting OTA partition\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
"sent_time": 18850,
|
||||
"current_time": 22220
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Erasing...\",\"ota_pct\":90}",
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (1/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
"sent_time": 22217,
|
||||
"current_time": 22220
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (5/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 29896,
|
||||
"current_time": 29902
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (7/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 33395,
|
||||
"current_time": 33408
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (9/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 36843,
|
||||
"current_time": 54597
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Erasing flash complete.\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 39463,
|
||||
"current_time": 54597
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":5}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 41862,
|
||||
"current_time": 54597
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":10}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 44003,
|
||||
"current_time": 54597
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":40}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 56678,
|
||||
"current_time": 65185
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":70}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 69407,
|
||||
"current_time": 77858
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":95}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 80010,
|
||||
"current_time": 82592
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":100}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 82084,
|
||||
"current_time": 82592
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Success!\",\"ota_pct\":100}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
}
|
||||
|
||||
|
||||
]
|
||||
117
components/wifi-manager/webapp/mock/messages_ota_flash.json
Normal file
117
components/wifi-manager/webapp/mock/messages_ota_flash.json
Normal file
@@ -0,0 +1,117 @@
|
||||
[
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Initializing...\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 14110,
|
||||
"current_time": 16958
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Starting OTA...\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 14146,
|
||||
"current_time": 16958
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"New version is : mock version \",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 18849,
|
||||
"current_time": 22220
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Formatting OTA partition\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 18850,
|
||||
"current_time": 22220
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (1/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 22217,
|
||||
"current_time": 22220
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (5/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 29896,
|
||||
"current_time": 29902
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (7/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 33395,
|
||||
"current_time": 33408
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Erasing flash (9/11)\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 36843,
|
||||
"current_time": 54597
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Erasing flash complete.\",\"ota_pct\":0}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 39463,
|
||||
"current_time": 54597
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":5}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 41862,
|
||||
"current_time": 54597
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":25}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 50307,
|
||||
"current_time": 54598
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":30}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 52455,
|
||||
"current_time": 54598
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":35}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 54603,
|
||||
"current_time": 65184
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":55}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 63042,
|
||||
"current_time": 65185
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":60}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 65190,
|
||||
"current_time": 77858
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":95}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 80010,
|
||||
"current_time": 82592
|
||||
}, {
|
||||
"message": "{\"ota_dsc\":\"Writing binary file\",\"ota_pct\":100}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 82084,
|
||||
"current_time": 82592
|
||||
},
|
||||
{
|
||||
"message": "{\"ota_dsc\":\"Success!\",\"ota_pct\":100}",
|
||||
"type": "MESSAGING_INFO",
|
||||
"class": "MESSAGING_CLASS_OTA",
|
||||
"sent_time": 119255,
|
||||
"current_time": 121838
|
||||
}
|
||||
]
|
||||
@@ -18,6 +18,9 @@
|
||||
"lms_cport": 9090,
|
||||
"lms_port": 9100,
|
||||
"lms_ip": "127.0.0.1",
|
||||
"platform_name": "SqueezeAmp",
|
||||
"mock_plugin_has_proxy": "x",
|
||||
"platform_name": "SqueezeAmp"
|
||||
"mock_fail_fw_update":"",
|
||||
"mock_fail_recovery":"",
|
||||
"mock_old_recovery":""
|
||||
}
|
||||
Reference in New Issue
Block a user