Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change font color based on displayed value
#1
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
Reply
#2
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
Reply
#3
(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

?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)