I’m trying to figure out how to show a image from an external url. ChatGPT is some help but only comes with a pretty complicated iframe construction, same goes for a image as background.
Last time I worked with html it was a simple img scr=”img-url” and body background=”img-url” but can’t get it to work.
No, not useing the gallery app. The Ftp/Http server app. But a http://myhomeyip:8000/image.jpg should work also ? It does when I enter the url in firefox…
Strange indeed. As a test, are you able to get the widget to show a random image from the internet (via its URL)? And what if you try a local PNG image instead of a JPG?
I don’t think that is necessary. I am just following good practices for building HTML pages. If you don’t have separate styling, you can start directly with the table definition:
The image is displayed, but the colors are inverted (as I use dark mode). In my prior example I corrected the inversion, but since I removed the styling code, this is the effect.
Maybe Homey leaves the contents of iframes untouched. Icons and images used directly in the status widget are inverted when switching between light and dark mode (at least in my case). Similar like the device icons (black when in light mode, white when in dark mode).
The ‘Stooklijn’ for my heatpump visualised. Now if I change settings I can see in Homey what the effects are, instead of needing my excelsheet with graf…
*Need to figure out how to switch, depending on light or dark theme.
I noticed that there is a trailing space in the image name. Could that be the reason you could not get the image displayed in the table (without iframe) in your prior attempt?
Well, not sure whether you want to use it, but the Gallery app I mentioned before does work. It just stores images locally on your Homey. And you can use them in the status widget.