OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
https://openepaperlink.de
Apache License 2.0
159 stars 35 forks source link

drawcustom extension to include image information directly in the request #135

Closed gil04 closed 7 months ago

gil04 commented 7 months ago

I would like to pass the image used in 'drawcustom' directly in the request. At the moment, I always have to store this image temporarily under a URL so that it can be used here. I would like to avoid this.

Would it be possible to extend 'drawcustom' to transfer images directly in the request. E.g. Base64 encoded in a ‘Data URL’.

I already tried to use the Data URL für the dlimg url like 'data:image/png;base64,data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...' but I just got the following error message: "HomeAssistantError: [Errno 36] Filename too long: ...."

gil04 commented 7 months ago

I implemented this in #136