OTA Update via HTTP Request add option headers #3451
Unanswered
DJJo14
asked this question in
Component enhancements
Replies: 1 comment
-
|
I currently trying but i think the http update with ota from github is to much for a esp8266. but i get: I can also be an other error, i see similar bug reports. the github://DJJo14/esphome@ota_http_add_header has currently extra debug code and the buffers are lager |
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.
-
Component name
ota, http
Link to component documentation on our website
https://esphome.io/components/ota/http_request/
Describe the enhancement
Add the option headers for this http(s) request
Use cases
Sinds i am using a raspberry pi 4 for my home assistant and esphome, compiling takes a lot of time.
so I am working that the firmware gets build by github actions.
the github actions in a private repo (of course) create a release with the firmware files in it. but when you want to download the firmware you need to set the header: "Accept: application/octet-stream" else you get an overview the downloadable assets. and not the download it self.
example url:
https://api.github.com/repos/<username>/<repo>/releases/assets/<number>headers you can set request_headers in the http but not in the http_request ota.
Anything else?
https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#get-a-release-asset
Beta Was this translation helpful? Give feedback.
All reactions