Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate esp-web-flasher to install firmware #125

Open
opatut opened this issue Dec 2, 2021 · 0 comments
Open

Integrate esp-web-flasher to install firmware #125

opatut opened this issue Dec 2, 2021 · 0 comments
Labels
do later enhancement New feature or request good first issue Good for newcomers

Comments

@opatut
Copy link
Member

opatut commented Dec 2, 2021

In the simplest form we provide a little UI to flash the USB device with the standard firmware. We can follow the logic of esp-web-tools, but use the same library esp-web-flasher directly, building a new UI with our UI toolkit directly into the frontend. That won't be much work.

For the flashing content, we can then have the API download the latest firmware images from github and re-expose them (to circumvent CORS issues). Possibly allow choosing the firmware version to install.

In the future, we can also go crazy here:

  • Have the API generate a custom SPIFFS image for flashing configuration directly from the Web UI, alongside the firmware or after flashing the firmware, containing the api key, api url, and potentially wifi credentials. See this gist I made a while ago for generating a SPIFFS image in Python.
  • Allow the portal instance maintainers to
    • enable or disable parts of these features
    • provide a preset for certain configuration options
    • pin the firmware version or choose a custom image with support for other features maybe
  • Integrate improv-wifi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do later enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant