Virtuino Forum

Full Version: Change font color based on displayed value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I am displaying temperatures, coming from MQTT broker, and using the "text display" widget (virtuino iot) for that purpose. I would like to modify the text color based on the displayed value (mainly used to show a warning). So far,  I did not find a way to do it. 
Is there any way, using scripts or js,  to do that functionality ?? or maybe I am missing something?

Thank you in advance for any hints or comments.

Jose Zapico
Hi,

you have to use more than one "Value displays" on the same position. Use the copy paste option to do it
Then on the "Value Display" settings click the tab "More"
Configure the visibility of each "Value display".

This technique is used on this tutorial for the leds: https://www.youtube.com/watch?v=YzvpJKYg8tQ
Go to the minute 4:00
(06-13-2023, 10:58 PM)iliaslamprou Wrote: [ -> ]Hi,

you have to use more than one "Value displays" on the same position. Use the copy paste option to do it
Then on the "Value Display" settings click the tab "More"
Configure the visibility of each "Value display".

This technique is used on this tutorial for the leds: https://www.youtube.com/watch?v=YzvpJKYg8tQ
Go to the minute 4:00

Hi,
Thank you for your reply. 
I will watch the tutorial and try the solution.

(06-14-2023, 07:20 AM)zapicoj Wrote: [ -> ]
(06-13-2023, 10:58 PM)iliaslamprou Wrote: [ -> ]Hi,

you have to use more than one "Value displays" on the same position. Use the copy paste option to do it
Then on the "Value Display" settings click the tab "More"
Configure the visibility of each "Value display".

This technique is used on this tutorial for the leds: https://www.youtube.com/watch?v=YzvpJKYg8tQ
Go to the minute 4:00

Hi,
Thank you for your reply. 
I will watch the tutorial and try the solution.

Hi,
Perfect, It works fine.
Thank you again

?