openevse_esp32_firmware icon indicating copy to clipboard operation
openevse_esp32_firmware copied to clipboard

Support upgrade directly from GitHub

Open jeremypoulter opened this issue 4 years ago • 2 comments

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.

jeremypoulter avatar Oct 28 '21 22:10 jeremypoulter

Good idea 👍

glynhudson avatar Oct 28 '21 23:10 glynhudson

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.

jeremypoulter avatar Nov 09 '21 23:11 jeremypoulter

requires #502

jeremypoulter avatar Feb 07 '23 20:02 jeremypoulter

Looking at doing this directly in the HTTP OTA module, should be possible, but looks like there could be bugs in Mongoose :(

jeremypoulter avatar Mar 08 '23 11:03 jeremypoulter

works great 👍 For now on new UI it only propose to install the current stable. Does it has sense to propose nightlies ?

KipK avatar Mar 08 '23 23:03 KipK

Probably, but a little harder to work out if there is a newer version

jeremypoulter avatar Mar 09 '23 07:03 jeremypoulter

comparing short hash should be sufficient

KipK avatar Mar 09 '23 07:03 KipK

This would need to have the daily builds tagged with current short hash on github

KipK avatar Mar 09 '23 09:03 KipK