From 96b88ffa19bc6eeca30065ab9e14c0f370c34e3e Mon Sep 17 00:00:00 2001 From: Robert Strouse Date: Thu, 19 Oct 2023 15:59:45 -0700 Subject: [PATCH] Force backup prior to firmware install from Github --- SomfyController.littlefs.bin | Bin 1441792 -> 1441792 bytes data/index.js | 27 +++++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/SomfyController.littlefs.bin b/SomfyController.littlefs.bin index 91e25ceccadd1468203564b848f694c3dc94261f..522edf38e30bef65e180e0dd7c9424c5786b7a69 100644 GIT binary patch delta 688 zcmZ9}O-NKx6bEo$zBj(nnfLB-oUgv-N!W)9j+>Oy9HLE&S}8~oGm+LJm5D4WDxL&W z(TqKv=r5*~eF&9`i|A1cdqE2qkrpVq2$Td{RJdr7Eu=HKbMb?F5BHvP?zyJfY?{sE zH~gNJOnzRnVX=1DS(waz5|vrUFMH0ttZqFOUyQz+p!Td}M0*2kv6EGc(U#Sk*SXlW zSm1grAh8WBpUF&NE>^%)=4OSghXdymI{P#f}r`NYgfa7@;!6IyDcJ zQ7T2|83l1@l*%D)XiU%pp1!IW(_;^rL?e+|9mei1xmltH{xlKE< z-=Z+~nY7jZ-c2D1)@QGRzugqK+bnu7;cXqMsL$sDBBBfY`mMR_crUFeaK^ZnHLJ^* z9pUFK`$Zw<&+zu^0DZ&sB~8u6xc3<$V?3$5@Z~;LVs(&S+@0b0@*6FLM4cX7cg*Hv zZVBa$v}rBrm_<$Nt0m?{2$Lp1z#P(jn2L~6R2wZbDvX-sgw*8Rm-TsZ7B9|sNPakVfwzYPm`iKZ%dAnDJ)u#t-{?J*)7UT59osETK SDTh){amw+foRVS3ANvR1;_I{k delta 365 zcmXBOKS%;`6bEomJyW~%_p&?xAgK}5PJ~z2W>6Y5)_RNEs@n8J!$wXU%v0lD-<$?LZ-1ROCKeNO`mLzj+u)`#uFPd zEZHf29*^Xgb4@ipv9@OjakZ-aXG_VZ`o1}rYiB!}QqmNG*olKUiAY?egSd%@cu6Ob zNEh)DKVe)`Ai06-`_PB!H|E8a1oYy9?vwB|0e*~E-~{KV{XYI(0iS^E5C*w=05gI+ zB-m_0!nY{1W2&D;u$2YI9}M^vu_e=5G{oFET!lP;slkANKiiPQ@)=0DYC;TaHL9B? z=%O=BOZa6%3U4n!#``On#q2q__+1^wJ*br-h>x%S7@umuv&bS;Z=bXu2oN5 { if (err) ui.serviceError(err); else { + general.reloadApp = true; // Change the display and allow the percentage to be shown when the socket emits the progress. let html = `
Installing ${ver.name}
Please wait as the files are downloaded and installed.
`; html += `
`; @@ -4144,7 +4157,6 @@ class Firmware { html += ``; html += ``; div.innerHTML = html; - } }); } @@ -4173,9 +4185,20 @@ class Firmware { } html += ``; html += ''; + if (this.isMobile()) { + html += `
WARNING
`; + html += '
This browser does not support automatic backups. It is highly recommended that you back up your configuration using the backup button before proceeding.
'; + } + else { + html += '
A backup file for your configuration will be downloaded to your browser. If the firmware update process fails please restore this file using the restore button after going through the onboarding process.
' + } html += `
`; + if (this.isMobile()) { + html += ``; + } html += ``; html += ``; + html += `
`; div.innerHTML = html;