Changing the content of a template

Hi everyone I created a small dashboard I inserted an image on a group using the ned dashboard template

<img src="/fan r.png" align="middle" style="width: 485px;
                           height:auto;
                           max-height: 100%;
                           max-width: 100%;
                           display:block">

the images in question is a fan it must be displayed in green if it is on and in red it is off How to change images on the template according to my needs

There was a thread only today which shows one possible approach https://discourse.nodered.org/t/how-to-change-background-image-of-a-div-based-on-a-switch-state/60124

Thanks for your help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.