Logic Machine Forum
Mosaic Co2/humidity/temp sensor - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Mosaic Co2/humidity/temp sensor (/showthread.php?tid=5021)



Mosaic Co2/humidity/temp sensor - Novodk - 11.10.2023

I'm trying to use the Mosaic widget for air quality, but I'm unable to add my humidity since it is 2 byte floating point, does it only accept 1 byte unsigned integer?

[Image: 8ANbn0s.png]


RE: Mosaic Co2/humidity/temp sensor - admin - 12.10.2023

Create a virtual object with 5.001 data type (32/0/1 in this example) and attach an event script to the 9.007 humidity object:
Code:
value = event.getvalue()
grp.checkupdate('32/0/1', value)