openevse_esp32_firmware
openevse_esp32_firmware copied to clipboard
Support upgrade directly from GitHub
In the UI download the latest release info (https://api.github.com/repos/OpenEVSE/ESP32_WiFi_V4.x/releases/latest) and then use the new HTTP client upgrade (#258) to download/upgrade from the release assets.
This will probably need support for upgrading from a Zip file and/or eventing the upgrade state.
Good idea 👍
With the merge of #266 the binaries are now uploaded to GitHub in a format we should be able to directly download on the WiFi module. I did some experiments on jeremypoulter/issue259 branch.
- The link that you get from the GitHub API redirects to the actual download location, so we need to support 302 redirects either in ArduinoMongoose or the app
- Looks to be an issue downloading the binary on the ESP32, ArduinoMongose looks to get the redirect message but not parse it as HTTP so just exits, works fine in the streaming example.
requires #502
Looking at doing this directly in the HTTP OTA module, should be possible, but looks like there could be bugs in Mongoose :(
works great 👍 For now on new UI it only propose to install the current stable. Does it has sense to propose nightlies ?
Probably, but a little harder to work out if there is a newer version
comparing short hash should be sufficient
This would need to have the daily builds tagged with current short hash on github