Auto Update (tried and discarded) #1007
Closed
duckaxe
started this conversation in
Show and tell
Replies: 1 comment
-
Interesting experiment. However, one of the hard requirements of the firmware is that it will not connect to anything other that the configured pool without user interaction. Not GitHub, not an NTP server, nothing. Having said that, is the website trying to download the firmware? Because I would think the firmware would have no problem downloading an artifact from GitHub. It should be possible to have it download in the firmware and flash the update directly from GitHub. But of course, with the same constraint: don't do it automatically, and I'm not sure if that's something we would want in the firmware. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From a user's perspective, it would be useful to be able to update the device with just one click. No manual version checking, downloading, or uploading necessary. Of course, experienced users should still have the option to upload their own firmware. However, a function that allows beginners to update their device without having to do it themselves would be useful. There would also be fewer problems with incorrect
.bin
files.I experimented with the update function. This is how I imagined it:
If there is a new version, the update button appears. The user clicks on it.
.bin
files from GitHub and passes them to theota(WWW)Update
functions. Thus, the script performs the same actions that the user would perform manually.I was almost done. Unfortunately, GitHub has a CORS restriction for asset downloads. End of the road. I temporarily used a CORS proxy to finish my idea. However, it's not production-ready.
This is my commit. Maybe we can use some of it.
Tested it locally <- thats the reason for the 404 toaster warning in the video.
Screen.Recording.2025-06-05.at.17.39.44.mov
Beta Was this translation helpful? Give feedback.
All reactions