Controls the central heating system and the lights.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
Diff: web-this/radiator/web-radiator-script.inc
- Revision:
- 8:8ac076ce51af
- Parent:
- 5:3579001bea1b
--- a/web-this/radiator/web-radiator-script.inc Mon Jun 06 11:10:04 2022 +0000 +++ b/web-this/radiator/web-radiator-script.inc Sat Nov 12 10:03:38 2022 +0000 @@ -8,6 +8,7 @@ "let radiatorOverride = false;\n" "let radiatorPump = false;\n" "let hotWaterProtectOn = false;\n" +"let radiatorsOn = false;\n" "let overrideCancelHour = '';\n" "let overrideCancelMinute = '';\n" "let nightSetPoint = '';\n" @@ -24,6 +25,7 @@ " radiatorOverride = Ajax.hexToBit (lines[2], 2);\n" " radiatorPump = Ajax.hexToBit (lines[2], 3);\n" " hotWaterProtectOn = Ajax.hexToBit (lines[2], 4);\n" +" radiatorsOn = Ajax.hexToBit (lines[2], 5);\n" " overrideCancelHour = Ajax.hexToSignedInt8 (lines[3]);\n" " overrideCancelMinute = Ajax.hexToSignedInt8 (lines[4]);\n" " nightSetPoint = Ajax.hexToSignedInt16(lines[5]);\n" @@ -38,8 +40,9 @@ " elem = Ajax.getElementOrNull('ajax-program-toggle' ); if (elem) elem.setAttribute('dir', programTimerOutput ? 'rtl' : 'ltr');\n" " elem = Ajax.getElementOrNull('ajax-mode-toggle' ); if (elem) elem.setAttribute('dir', radiatorMode ? 'rtl' : 'ltr');\n" " elem = Ajax.getElementOrNull('ajax-override-toggle' ); if (elem) elem.setAttribute('dir', radiatorOverride ? 'rtl' : 'ltr');\n" -" elem = Ajax.getElementOrNull('ajax-radiator-toggle' ); if (elem) elem.setAttribute('dir', radiatorPump ? 'rtl' : 'ltr');\n" +" elem = Ajax.getElementOrNull('ajax-radiator-pump-toggle' ); if (elem) elem.setAttribute('dir', radiatorPump ? 'rtl' : 'ltr');\n" " elem = Ajax.getElementOrNull('ajax-hw-prot-toggle' ); if (elem) elem.setAttribute('dir', hotWaterProtectOn ? 'rtl' : 'ltr');\n" +" elem = Ajax.getElementOrNull('ajax-radiators-on-toggle' ); if (elem) elem.setAttribute('dir', radiatorsOn ? 'rtl' : 'ltr');\n" " elem = Ajax.getElementOrNull('ajax-override-cancel-minute'); if (elem)\n" " {\n" " elem.value = String(overrideCancelHour*100 + overrideCancelMinute).padStart(4, '0');\n"