Page 1 of 1

Dial - termostat - colour of the ring

Posted: Monday 12 December 2022 15:56
by Krenstik
Hi,

I play with my current screen and I add also a thermostat to the dial, but it can show some colour?

For example blue for temp under 20 and red over?
Snímek obrazovky 2022-12-12 155452.jpg
Snímek obrazovky 2022-12-12 155452.jpg (91.66 KiB) Viewed 301 times

Re: Dial - termostat - clour of the ring

Posted: Monday 12 December 2022 17:28
by willemd
The manual shows a "setpoint" definition as well as "slice.primary", "slice.secondary" for dials. Does that work for thermostat?

Re: Dial - termostat - clour of the ring

Posted: Monday 12 December 2022 19:31
by Krenstik
If I update blocks:

blocks['tt'] = { idx: '147', type: 'dial', width: 1, title: 'Pracovna', subtype: 'updown', setpoint: 15, };

it looks same,

when I remove subtype, I get a normal thermostat:
Snímek obrazovky 2022-12-12 192854.jpg
Snímek obrazovky 2022-12-12 192854.jpg (33.56 KiB) Viewed 289 times

Re: Dial - termostat - clour of the ring

Posted: Saturday 28 January 2023 19:00
by Krenstik
so i change color of the selectors, but any idea how to change a dial, subtype up-down outer ring ?
dial heating.png
dial heating.png (42.38 KiB) Viewed 250 times
In the first case, just simple under and over 20 °C ? :-)