HTML Special Characters
Complete HTML special characters reference. Use these HTML codes to display special characters on your website or blog.
Hello @cancacao.
You don't say what the problem is so I will assume it's the ) characters rather than misalignment, lack of units or something else.
Thank you for your reply sir,
Below is current flow
inject (interval 1 minute) -> TCP node -> function read data -> function Read weigh value -> ui_text to display
This is code of "read" function"
msg.topic='read';
return msg;
This is code of "Read WB1 v2":
var weight1=flow.get('weigh1') ||0;
if (msg.topic=="read"){
var val=parseInt(msg.payload.substring(5,10));
if (!isNaN(val)) {
flow.set('weigh1',val);
msg.payload=val;
msg.topic='weigh1';
return msg;
}
}
This is value format of ui_text: {{msg.payload}}
The system has been running smoothly for almost a year, but recently it has encountered some issues.
In 1 minute cycle, ui_text displays 0 for 40 seconds, and 20 seconds for )0 00 00
value format of ui_text
What does a debug node after "IND1" show?
What does a debug node after "Read WB1 v2" show?
Are these debug nodes triggered exactly once per minute or more often?
Change "weigh1->weigh4" to "weigh1->weigh4"
Umm what does that mean Steve?
I just turned on a debug again after "Read WB1 v2". The msg.payload is always a number (as expected). I have redeployed and it seems to be functioning normally again.
I will monitor it further and update information in this post. Thank you very much, sirs.
>
is a reserved characters & must be encoded before it can be displayed as text inside a html element.
Complete HTML special characters reference. Use these HTML codes to display special characters on your website or blog.
Using triple {{{ }}}
might do the same (not sure if the value format supports triple curlies but do know that >
will definitely will work
@Steve-Mcl
this is configuration of a ui_text. I'm using {{ }}.
input data/msg.payload is Number (0-99999)
I suspect we are differently interpreting @cancacao's statement
Data is being sent to ui_text is weigh1->weigh4
.I read it as "There are 4 text nodes, displaying weigh1, weigh2, weigh3 or weigh4 respectively"
I want to explain in details
"weigh1->weigh4" means 4 variables weigh1, weigh2, weigh3, weigh4 for 4 ui_text nodes,
weigh1, weigh2, weigh3, weigh4 is storing in global context
example:
msg.payload = global.get("weigh1") -> value will be displayed in ui_text "WB1"
I suspect we are differently interpreting @cancacao's statement
Looks that way.
Data is being sent to ui_text is weigh1->weigh4
.I read it as "There are 4 text nodes, displaying weigh1, weigh2, weigh3 or weigh4 respectively"
I read it literally "Data is being sent to ui_text is weigh1->weigh4"