Is it possible to get data from 1 block, but change the colour of another block.
What i like to have is a message or color change of a block on the standby screen when a value reached a high value.
Since the standby screen is almost always on you will not see the alarms. Espacially when they are on page 2 or 3
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Is it possible to get data from 1 block, but change the colour of another block.
What i like to have is a message or color change of a block on the standby screen when a value reached a high value.
Since the standby screen is almost always on you will not see the alarms. Espacially when they are on page 2 or 3
// geeft alarm melding van andere sensor
function getStatus_262(block) {
var Data = block.device.Data;
var idx = block.idx;
var device = block.device;
if(parseFloat(Data) <1.5){
Dashticz.setBlock('regen', {addClass: 'warning'});
block.addClass = 'warning'; // set the addClass parameter for block 262
}
else {
Dashticz.setBlock('regen', {addClass: 'none'});
block.addClass = ''; // reset the addClass parameter for block 262
}
}
Need you support again.
When i want to use more sensors in the script, theupdate of block "regen" doesn't work any more.
Only the applicable sensors gets a warning.
/ geeft alarm melding sensor
function getStatus_262(block) {
var Data = block.device.Data;
var idx = block.idx;
var device = block.device;
if(parseFloat(Data) <1.5){
Dashticz.setBlock('regen', {addClass: 'warning'});
block.addClass = 'warning'; // set the addClass parameter for block 262
}
else {
Dashticz.setBlock('regen', {addClass: 'none'});
block.addClass = ''; // reset the addClass parameter for block 262
}
}
// geeft alarm melding sensor
function getStatus_25(block) {
var Data = block.device.Data;
var idx = block.idx;
var device = block.device;
if(parseFloat(Data) >80){
Dashticz.setBlock('regen', {addClass: 'warning'});
block.addClass = 'warning'; // set the addClass parameter for block
}
else {
Dashticz.setBlock('regen', {addClass: 'none'});
block.addClass = ''; // reset the addClass parameter for block
}
}
The trick is that i want to set this up for a the sensors and when the alarm of one of the is triggered i see this also on the main screen (block "regen")
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
madpatrick wrote: ↑Tuesday 13 October 2020 16:48
Guys,
Need you support again.
When i want to use more sensors in the script, theupdate of block "regen" doesn't work any more.
Only the applicable sensors gets a warning.
/ geeft alarm melding sensor
function getStatus_262(block) {
var Data = block.device.Data;
var idx = block.idx;
var device = block.device;
if(parseFloat(Data) <1.5){
Dashticz.setBlock('regen', {addClass: 'warning'});
block.addClass = 'warning'; // set the addClass parameter for block 262
}
else {
Dashticz.setBlock('regen', {addClass: 'none'});
block.addClass = ''; // reset the addClass parameter for block 262
}
}
// geeft alarm melding sensor
function getStatus_25(block) {
var Data = block.device.Data;
var idx = block.idx;
var device = block.device;
if(parseFloat(Data) >80){
Dashticz.setBlock('regen', {addClass: 'warning'});
block.addClass = 'warning'; // set the addClass parameter for block
}
else {
Dashticz.setBlock('regen', {addClass: 'none'});
block.addClass = ''; // reset the addClass parameter for block
}
}
The trick is that i want to set this up for a the sensors and when the alarm of one of the is triggered i see this also on the main screen (block "regen")