Nenhuma descrição

Paulus Schoutsen b5f82ff461 Update version in manifest.json 3 anos atrás
.devcontainer fc4df1c8bb Drop yarn in favor of npm 4 anos atrás
.github 7e36700b82 Bump actions/checkout from 2 to 3 (#188) 3 anos atrás
script 74187d9f44 v4.0.0 - Next Gen (#87) 3 anos atrás
src 9eca2c2c2c Scan for SSIDs (#192) 3 anos atrás
static b5f82ff461 Update version in manifest.json 3 anos atrás
.gitignore fc4df1c8bb Drop yarn in favor of npm 4 anos atrás
.npmignore 7cf91fa76b Prepare release 4 anos atrás
.prettierignore 43ef1358f3 Add prettier ignore 4 anos atrás
README.md e7fbbd0a19 correct manifest.json example (#146) 3 anos atrás
index.html 0fc225990e Bump website to 7.2.0 3 anos atrás
package-lock.json f5bde3d02c 7.2.0 3 anos atrás
package.json f5bde3d02c 7.2.0 3 anos atrás
rollup.config.js 357b5f9303 Rewrite log element 4 anos atrás
tsconfig.json e95f421db1 Update tsconfig.json 3 anos atrás

README.md

ESP Web Tools

Allow flashing ESPHome or other ESP-based firmwares via the browser. Will automatically detect the board type and select a supported firmware.

<esp-web-install-button
  manifest="firmware_esphome/manifest.json"
></esp-web-install-button>

Manifest definition:

{
  "name": "ESPHome",
  "version": "2021.10.3",
  "home_assistant_domain": "esphome",
  "builds": [
    {
      "chipFamily": "ESP32",
      "parts": [
        { "path": "bootloader_dout_40m.bin", "offset": 4096 },
        { "path": "partitions.bin", "offset": 32768 },
        { "path": "boot_app0.bin", "offset": 57344 },
        { "path": "esp32.bin", "offset": 65536 }
      ]
    },
    {
      "chipFamily": "ESP32-C3",
      "parts": [
        { "path": "bootloader_dout_40m.bin", "offset": 0 },
        { "path": "partitions.bin", "offset": 32768 },
        { "path": "boot_app0.bin", "offset": 57344 },
        { "path": "esp32-c3.bin", "offset": 65536 }
      ]
    },
    {
      "chipFamily": "ESP32-S2",
      "parts": [
        { "path": "bootloader_dout_40m.bin", "offset": 4096 },
        { "path": "partitions.bin", "offset": 32768 },
        { "path": "boot_app0.bin", "offset": 57344 },
        { "path": "esp32-s2.bin", "offset": 65536 }
      ]
    },
    {
      "chipFamily": "ESP8266",
      "parts": [
        { "path": "esp8266.bin", "offset": 0 }
      ]
    }
  ]
}

Styling

Attributes

The following attributes are automatically added to <esp-web-install-button> and can be used for styling:

| Attribute | Description | | -- | -- | | install-supported | Added if installing firmware is supported | install-unsupported | Added if installing firmware is not supported

CSS custom properties (variables)

The following variables can be used to change the colors of the default UI elements:

  • --esp-tools-button-color
  • --esp-tools-button-text-color

Slots

The following slots are available:

| Slot name | Description | | -- | -- | | activate | Button to start the flash progress | unsupported | Message to show when the browser is not supported | not-allowed | Message to show when not a secure context

Development

Run script/develop. This starts a server. Open it on http://localhost:5001.