[SOLVED] HabPanel Custom Widget show icon/image

  • Platform information:
    • Hardware: Raspberry PI3
    • OS: Linux raspberrypi 4.14.74-v7+ #1149 SMP Mon Oct 8 17:39:42 BST 2018 armv7l GNU/Linux
    • Java Runtime Environment: java version “1.8.0_191”
    • openHAB version: 2.3.0

Hello,
I’m using HabPanel with custom widgets. What I now want to do, is to show a .png file when teh content of a items is equals to a string.
The image will not shown, only a 404 error. How can i do it the correct way?

<div ng-if="itemValue('DWD_Warnung_level')== 'markantes Wetter'">
<img src='/icons/dwdwarnung-0.png'>

Thanks a lot

/static/dwdwarnung-0.png

Put the file in the html folder

1 Like

Hi Vincent,
thanks a lot, but where is the html folder? At the moment I have no separate apache webserver running on the PI.

Thanks
Tobias

In the openhab folder (where you have the rules and items folder) there is an html folder