Page 1 of 1
Beta 3.8.8
Posted: Sunday 19 December 2021 23:06
by Krenstik
Hi,
well, I download last beta and I get a new colours, or it do not takes my one...
before:

- beforea.jpg (189.36 KiB) Viewed 642 times
new beta:

- after.png (344.75 KiB) Viewed 642 times
Re: Beta 3.8.8
Posted: Monday 20 December 2021 9:46
by Lokonli
I was a bit late my release notes.
There are two changes in 3.8.8.
The dial ring coloring now by default starts at 0, instead at the lower left.
You can see that in your dial in the lower left (Balkon)
If you want to have the old behavior, add the following block parameter to the block definition in CONFIG.js:
The second change is in the coloring for some dial rings. This is in fact a bug fix: intended coloring was not applied correctly.
The side effect is that you have to add !important to the custom color definitions in custom.css. For instance like:
Code: Select all
.dial .bar.primary,
.dial .fill.primary {
border-color: #d81b90 !important;
}
.dial .bar.secondary,
.dial .fill.secondary {
border-color: #15ca33 !important;
}
Re: Beta 3.8.8
Posted: Monday 20 December 2021 10:20
by Krenstik
HI,
regarding: The dial ring coloring now by default starts at 0, instead at the lower left.
May they start also with other value?
Rest I will try during next days....
Re: Beta 3.8.8
Posted: Monday 20 December 2021 11:42
by Lokonli
Krenstik wrote: ↑Monday 20 December 2021 10:20
HI,
regarding: The dial ring coloring now by default starts at 0, instead at the lower left.
May they start also with other value?
Rest I will try during next days....
Current behavior:
Normally the ring coloring will start from the min value, except 'splitdial' is set to true.
If splitdial is set to true then the start value of the ring coloring is 0.
If min<0 then splitdial is set to true by default.
On you question for another start value:
Currently you can start the ring coloring from the min value or from 0. Can you describe a use case for which you would like to see a different start value?
Re: Beta 3.8.8
Posted: Monday 20 December 2021 11:59
by Krenstik
It was just idea, for the temp or CO2 meter....
For ex. ppm under 1400 green, up to 1400 red.
Or temp under 21 blue, up to 21 green and over 24 red

Re: Beta 3.8.8
Posted: Monday 20 December 2021 14:32
by Lokonli
Changing the color based on passing a certain threshold value already is supported via the 'setpoint' block parameter.
More fancy coloring can be achieved via deviceHook functionality.