[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

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


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.


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