openHASP icon indicating copy to clipboard operation
openHASP copied to clipboard

Handle HTTPS requests

Open sgruby opened this issue 1 year ago • 6 comments

This adds the ability for img.src to use https requests. It ignores certificates validation, but allows those using Home Assistant with https to get images delivered to the boards.

Note that https requires

platform = [email protected]

or similar to work properly.

sgruby avatar Feb 16 '24 21:02 sgruby

There is no room on the partition to install [email protected], more investigation is needed.

fvanroie avatar Feb 17 '24 14:02 fvanroie

I suspect TLS/SSL doesn't work in other parts of the code (I.e. mqtt or the update from a URL) without either moving forward with the platform or moving backwards. The 2023.07.00 tasmota release appears to be the last one that HTTPS worked for me.

sgruby avatar Feb 17 '24 15:02 sgruby

Moving forward likely means dropping OTA support for 4MB boards. Moving backwards is hardly an option since it just makes the problem and work to be done worse.

fvanroie avatar Feb 17 '24 18:02 fvanroie

It’s too bad that boards are still being made with 4MB of flash. Some of the Elecrow devices only have that.

Could one option be to not allow OTA updates for devices with 4MB of flash or does the web flasher work in the same manner requiring twice the app size for flashing?

sgruby avatar Feb 17 '24 19:02 sgruby

@sgruby Great feature! At some point in time we have to leave the older, smaller configurations (4MB etc) in order to move onwards. This feature is important, and will extend the versatility of OpenHASP by a lot!

hmorkemo avatar Mar 21 '24 22:03 hmorkemo

Dropping support for 4MB devices isn't really an option as some of the popular devices have 4MB and new products are still being launched with 4MB...

fvanroie avatar Apr 16 '24 21:04 fvanroie