piwebescript.js is currently rendering the measures colors (green/yellow/red) based on triggers which are hard-coded.
see function refreshValue() function
if(action=='Ph'){
icon="";
median=7.24;
}
else if (action=='ORP'){
icon="";
median=700;
}
else{
icon="";
median=28;
}
ther script should retrive parameters value
ORPConsign
PHConsign
TempConsign
stored in the db and use them as reference
piwebescript.js is currently rendering the measures colors (green/yellow/red) based on triggers which are hard-coded.
see function refreshValue() function if(action=='Ph'){ icon=""; median=7.24;
} else if (action=='ORP'){ icon=""; median=700;
} else{ icon=""; median=28;
}
ther script should retrive parameters value ORPConsign
PHConsign
TempConsign stored in the db and use them as reference