I’m sorry but my memory of that project is fading fast. I gave it up as a bad job because the quality on the display just was not good enough. I mention this because I’m not sure I can help any more than by saying this:
Convert is the ImageMagick command that I used to convert myImage.jpg (which is the only format that Home Assistant HA Camera snapshot service produces) to myImage.png (which is the only format that the ESPHome display will accept). So, no, the names refer to files and not folders.
But as I say, the whole project was a “rabbit hole” - one hurdle after another. In the end I solved my problem with an AS5600 Magnetic Position sensor instead of trying to remotely viewing the LPG cylinder gauge.
Can you give an example of how to do this? I am struggling to figure it out.
I think I’m on the right track by creating a text_sensor that gets the URL, but I am not sure how to use that URL in an online_image.
text_sensor:
- id: cover_image_url
platform: homeassistant
entity_id: image.cover_image
attribute: entity_picture
on_value:
- online_image.set_url:
id: cover_image
url: cover_image_url # <-- how do I properly set this
- component.update: cover_image
online_image:
- id: cover_image
url: cover_image_url # <-- as well as this
format: png
I feel like I’m missing something super basic here.
The thing I was missing was the lambda to set the URL as well as lvgl.image.update to have the widget actually display the image. Unfortunately this setup doesn’t work well as my devices all crash and reboot if more than one image is downloaded at once, so instead I have my widgets setup to download the image only when tapped, which isn’t ideal.
In my setup I have a yaml file with the sensors in it as well as another with the widget in it, and they get included n times as Packages. Because of that, I can’t hard-code it so that one download finishing triggers another to start and chain it all.
This small program allows you to convert images into png and replace the name of the image that you have chosen in advance, you will choose a folder so that online image can recover the image