UNPKG

1.93 kBMarkdownView Raw
1# ESP Web Tools
2
3Allow flashing ESPHome or other ESP-based firmwares via the browser. Will automatically detect the board type and select a supported firmware. [See website for full documentation.](https://esphome.github.io/esp-web-tools/)
4
5```html
6<esp-web-install-button
7 manifest="firmware_esphome/manifest.json"
8></esp-web-install-button>
9```
10
11Example manifest:
12
13```json
14{
15 "name": "ESPHome",
16 "version": "2021.10.3",
17 "home_assistant_domain": "esphome",
18 "funding_url": "https://esphome.io/guides/supporters.html",
19 "builds": [
20 {
21 "chipFamily": "ESP32",
22 "parts": [
23 { "path": "bootloader_dout_40m.bin", "offset": 4096 },
24 { "path": "partitions.bin", "offset": 32768 },
25 { "path": "boot_app0.bin", "offset": 57344 },
26 { "path": "esp32.bin", "offset": 65536 }
27 ]
28 },
29 {
30 "chipFamily": "ESP32-C3",
31 "parts": [
32 { "path": "bootloader_dout_40m.bin", "offset": 0 },
33 { "path": "partitions.bin", "offset": 32768 },
34 { "path": "boot_app0.bin", "offset": 57344 },
35 { "path": "esp32-c3.bin", "offset": 65536 }
36 ]
37 },
38 {
39 "chipFamily": "ESP32-S2",
40 "parts": [
41 { "path": "bootloader_dout_40m.bin", "offset": 4096 },
42 { "path": "partitions.bin", "offset": 32768 },
43 { "path": "boot_app0.bin", "offset": 57344 },
44 { "path": "esp32-s2.bin", "offset": 65536 }
45 ]
46 },
47 {
48 "chipFamily": "ESP32-S3",
49 "parts": [
50 { "path": "bootloader_dout_40m.bin", "offset": 4096 },
51 { "path": "partitions.bin", "offset": 32768 },
52 { "path": "boot_app0.bin", "offset": 57344 },
53 { "path": "esp32-s3.bin", "offset": 65536 }
54 ]
55 },
56 {
57 "chipFamily": "ESP8266",
58 "parts": [
59 { "path": "esp8266.bin", "offset": 0 }
60 ]
61 }
62 ]
63}
64```
65
66## Development
67
68Run `script/develop`. This starts a server. Open it on http://localhost:5001.