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

Enable initial installation leveraging ESP web tools #275

Closed
amandel opened this issue Nov 5, 2021 · 2 comments
Closed

Enable initial installation leveraging ESP web tools #275

amandel opened this issue Nov 5, 2021 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@amandel
Copy link
Member

amandel commented Nov 5, 2021

With the ESP web tools we can allow initial installation (aka flashing) via web browser. This can even be extended to include WiFi configuration once improv is released working via serial.

Problem is that the installation needs a rather static web page with some options, a manifest file, and the needed binaries. The binaries can be external (url reachable) resources but the urls must be part of the manifest.yaml.

{
  "name": "OpenBikeSensor",
  "builds": [
    {
      "chipFamily": "ESP32",
      "improv": false,
      "parts": [
        { "path": "0x01000.bin", "offset": 4096 },
        { "path": "0x08000.bin", "offset": 32768 },
        { "path": "0x0e000.bin", "offset": 57344 },
        { "path": "0x10000.bin", "offset": 65536 },
        { "path": "https://github.com/openbikesensor/OpenBikeSensorFlash/releases/download/v0.1.22/flash.bin", "offset": 3735552 }
      ]
    }
  ]
}

I tried to put all in the release page, but it seems we can not add script content into the GitHub rendered page. So we might add the page to the documentation area. Adding all *.bin and the manifest.yaml as release of the OpenBikeSensorFirmware artifact would allow us to create a static page that uses JavaScript to select the intended download version (latest). I need to mention that we also need to set some cors HTTP headers for this setup to work.

A static sample for WLED can be found at https://github.com/Aircoookie/WLED-WebFlasher.

@amandel amandel added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 5, 2021
@amandel amandel self-assigned this Nov 29, 2021
amandel added a commit that referenced this issue Dec 1, 2021
- todos in obsimprov.h
- protocol documentation at https://www.improv-wifi.com/serial/
- implements 7 supports #275
@opatut
Copy link
Member

opatut commented Dec 2, 2021

See also openbikesensor/portal#125.

@amandel
Copy link
Member Author

amandel commented Dec 8, 2021

See https://github.com/openbikesensor/OpenBikeSensorFlasher for the imlementation

@amandel amandel closed this as completed Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants