Hello everyone
i want to make a tank level of water animation in dashboard
first i made rectangle with SVG editor (selector) after that i made a function node where i put my command:
</>
'const msgInput = msg.payload; //input
const msgOutput =
{ payload:
{
command:"set_attribute", // "update_style" means update CSS
selector:"#eau", // id's string
attributeName:"height",// Width
attributeValue: msgInput // parameter's new value
}
};
return msgOutput; //output
</>
all i want to know what i should make in attribute name to have the right aniamtion of water because by this code i couldn't get what i want
please can anyone help me and thank you