How can i bold this?


#1

this set a piston I like it to be bold

$currentEventDevice " last run on " datetime({sumpTriggerTime}) " for "{sumpDuration}


#2

Change it to the following.
[b, black|your statement above.]
Should work.


#3

no matter how i do it it brakes datetime({sumpTriggerTime})


#4

[b,black|{$currentEventDevice} last run on {sumpTriggerTime} for {sumpDuration}.]

Does the above work?


#5

that does not work


#6

Can you post your piston so we can see what you are doing.


#7

the last line is what i went bold


#8

I got this to work by changing the sumpTriggerTime variable to a Date ans Time variable.
I then put this statement into the value field not the expression field.

[b,black|{$currentEventDevice} last run on {sumpTriggerTime} for {sumpDuration}]

It now shows this.


#9

i got it working but it not bold in dashboard


#10

Does this work for you.
Have 2 sumpTriggerTime variables.
One dynamic one date and time.
The break out the 3rd line into its own if.
Like this. Copy it if you wish and see if it works.


#11

if i look at this in dashboard it super bold that what I was hoping for


#12

The instructions given above ( [b, color | …] ) will get you what you are looking for. There is no ‘super bold.’

It probably looks ‘super bold’ in the image I posted as it was enlarged from actual.


#13

This might not be what you are looking for @beau76, but just as a reminder:

On the Dashboard, you can do (Ctrl Mouse Wheel Up) -OR- (Ctrl +) a couple of times to enlarge the text and tiles. Most browsers will remember this setting the next time you return.

(Ctrl zero) will return it to the normal size


#14

i had it in my dashboard and it was nice dark black but im not get that in my code


#15

I’m not following you. Are you saying it does not show bold in the code/piston itself? It won’t. It only renders the bold for the dashboard view.


#16

if I look at yours in dashboard vew it bold my code is not


#17

I’m sorry, I really don’t understand what you are saying. In one statement you say it is showing bold in your dashboard. What do you mean by ‘my code is not’?

I suspect your coding is not correct but at this time I cannot tell exactly what problem you are reporting.


#18

if i run your gauge code it is bold
if i use this image that is not showing in bold


#19

Okay, now I understand what you are reporting. Please post a screen image of your dashboard showing the piston state line.


#20

image