Hello i'm a node-red newbe. This is my first post in thes forum ...
I found a discription to use weather-icons in the 'old' dashboard ... Flow showing Node-red ui OpenweatherMap ...
I try to transform this to 'dashboard 2.0'.
It seems to me thats not possebile to put 'msg.payload' to a 'class' entry of a dashboard 2.0 'template' ...
My code in the Template node looks like this:
<template>
<div class="condition_icon">
<i class="fa-4x wi {{msg.payload}}"></i>
</div>
</template>
<style>
@import "/weather-icons/mycss/weather-icons.min.css";
.condition_icon {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
}
</style>
If i look in the HTML inside the Browser the result looks like:
<div class="condition_icon" state="[object Object]" style="grid-row-end: span 2;">
<i class="fa-4x wi {{msg.payload}}"></i>
</div>
But i need ther the 'payload'.