infrafast / piwebpool

The first full open source Raspberry PI PHP web-based application that automates the control of swimming pool
https://infrafast.github.io/piwebpool/
3 stars 1 forks source link

webGUI to use db parameters for t°, Ph and OPR threshold #16

Closed infrafast closed 8 years ago

infrafast commented 8 years ago

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

infrafast commented 8 years ago

done. consign are stored in settings table