
0
Answered
Question on chart widget
For example If I take the last example of chart widget (Boiler room) in a new dashboard,
In the list of aritmetic operation in java script syntaxs I can show only the variable in available data device choose
(for example d.T1 ecc.)
Can I insert some virtual data more other the data device choose?
Customer support service by UserEcho
Hello Franco,
You are right, in the widget settings in Arithmetic operation you can select data only from this device.
https://support.smart-maic.com/en/knowledge-bases/2/articles/104-complicated-functions-in-the-widget-settings
But you can create a virtual value in the Virtual menu.
There you can do arithmetic operations between different devices.
Then add this new virtual value to the widget as usual.
Ok
I anderstand and I tryed it but I haven't a good
Can you make an example same this
">Temp. '+(d.T2 || "--")+' °С<div>' ------>variable is d.T2 on list Available data on device
var pr = (d.ADC>0.5 ? (d.ADC-0.5)*3 : 0).toFixed(1) ------>variable is pr definite on data java programer
risc1PdxT2 is virtual data -------->wich is the sintax for show the value
What arithmetic operation between devices do you want to do?
I wish show a data of another devide
I can create a arithmetic operation that include the data of a diferent device
If I select a virtual values in device I have only one variable on the list Available Data d.xxxxxxx and i can't use ather value
See example on demo Dashboard
https://dash.smart-maic.com/demo
Virtual value "Total Cost" calculates expenses from two different devices.
The sequence is as follows:
- Create an arithmetic operation for device 1.
- Then select ( + - * / ) and add device 2.
- Create an arithmetic operation for device 2.
- and so on for device 3 and more