You are here:

After you’ve set up your WebUI its time to integrate it into LightAct. We’ll do that in Layer layouts with dedicated WebUI nodes.

webUI nodes

You can see them by right-clicking in an empty area of a layout and hovering over WebUI category. There’s 4 of them and we are going to explain them one by one.

Read command

read command node

Read command node reads from WebUIs Command stack and outputs a 2-dimensional array of strings. On index 0 there’s the actual command and on index 1 there’s the timestamp and you can get the individual values with Get string array item node. Success boolean tells whether the command has been successfully fetched. If it hasn’t the Error output tells the reason. After a successful read that command will be deleted from the Command stack so it is not read twice. You can see the current contents of Command stack by enabling Default sidebar in WebUI Builder.

Read variable

read variable node

Read variable node reads the value of Name variable from the database. Similarly to Read command node, it outputs a 2-dimensional array of strings. On index 0 there’s the value of the variable and on index 1 there’s the timestamp. You can get individual values with Get string array item node. Success boolean tells whether the value has been successfully fetched. If it hasn’t the Error output tells the reason.

Read scheduled reader

read scheduled reader

Read scheduled reader node reads the value of a scheduled reader from the database. Similarly to Read command node, it outputs a 2-dimensional array of strings. On index 0 there’s the value of the reader and on index 1 there’s the timestamp. You can get individual values with Get string array item node. Success boolean tells whether the value has been successfully fetched. If it hasn’t the Error output tells the reason.

Previous WebUI Overview
Next Create a new WebUI