Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file
Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
Diff: web-this/boiler/web-boiler-script.js
- Revision:
- 106:41ed3ea0bbba
- Parent:
- 105:1899f7ed17ec
diff -r 1899f7ed17ec -r 41ed3ea0bbba web-this/boiler/web-boiler-script.js --- a/web-this/boiler/web-boiler-script.js Tue Feb 23 20:35:07 2021 +0000 +++ b/web-this/boiler/web-boiler-script.js Fri Apr 23 08:36:42 2021 +0000 @@ -20,7 +20,7 @@ let pumpSpeedCalling = ''; let pumpSpeedRunOn = ''; let blrOutputTarget = ''; -let riseAt0 = ''; +let minSpeed = ''; let riseAt50 = ''; let riseAt100 = ''; @@ -47,7 +47,7 @@ if (pumpSpeedCalling == -2) pumpSpeedCalling = 'T'; pumpSpeedRunOn = Ajax.hexToSignedInt16(lines[14]); blrOutputTarget = Ajax.hexToSignedInt16(lines[15]); - riseAt0 = Ajax.hexToSignedInt16(lines[16]); + minSpeed = Ajax.hexToSignedInt16(lines[16]); riseAt50 = Ajax.hexToSignedInt16(lines[17]); riseAt100 = Ajax.hexToSignedInt16(lines[18]); } @@ -76,7 +76,8 @@ elem = Ajax.getElementOrNull('ajax-pump-speed-run-on' ); if (elem) elem.value = pumpSpeedRunOn; elem = Ajax.getElementOrNull('ajax-blr-output-target' ); if (elem) elem.value = blrOutputTarget; - elem = Ajax.getElementOrNull('ajax-pump-rise-at-0' ); if (elem) elem.value = riseAt0; + elem = Ajax.getElementOrNull('ajax-min-speed-value' ); if (elem) elem.value = minSpeed; + elem = Ajax.getElementOrNull('ajax-min-speed-text' ); if (elem) elem.textContent = minSpeed; elem = Ajax.getElementOrNull('ajax-pump-rise-at-50' ); if (elem) elem.value = riseAt50; elem = Ajax.getElementOrNull('ajax-pump-rise-at-100' ); if (elem) elem.value = OneWire.DS18B20ToString(riseAt100); }