add files for web flash

This commit is contained in:
technyon
2022-04-24 18:11:37 +02:00
parent 097604f6d0
commit 764915a2f1
6 changed files with 52 additions and 0 deletions

37
index.html Normal file
View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<title>NUKI Hub web installer</title>
<html>
<body>
<h1>NUKI Hub</h1>
<div id="main" style="display: none;">
<br>
<script
type="module"
src="https://unpkg.com/esp-web-tools@8.0.1/dist/web/install-button.js?module">
</script>
<esp-web-install-button id="installButton" manifest="webflash/manifest.json"></esp-web-install-button>
<br><br><br><br>
Note: If flashing doesn't work, press and hold the "BOOT" switch, then click "Install".
</div>
<div id="notSupported" style="display: none;">
Your browser does not support the Web Serial API. Try Chrome
</div>
<script>
if(navigator.serial){
document.getElementById("notSupported").style.display = 'none';
document.getElementById("main").style.display = 'block';
} else {
document.getElementById("notSupported").style.display = 'block';
document.getElementById("main").style.display = 'none';
}
</script>
</body>
</html>

BIN
webflash/boot_app0.bin Executable file

Binary file not shown.

BIN
webflash/bootloader_qio_80m.bin Executable file

Binary file not shown.

15
webflash/manifest.json Normal file
View File

@@ -0,0 +1,15 @@
{
"name": "enocean",
"new_install_prompt_erase": true,
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{ "path": "boot_app0.bin", "offset": 57344 },
{ "path": "bootloader_qio_80m.bin", "offset": 4096 },
{ "path": "nuki_hub.bin", "offset": 65536 },
{ "path": "nuki_hub.partitions.bin", "offset": 32768 }
]
}
]
}

BIN
webflash/nuki_hub.bin Normal file

Binary file not shown.

Binary file not shown.