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/radiator/web-radiator-script.inc
- Revision:
- 91:8b192efd0288
- Parent:
- 53:c1bf7d9db507
- Child:
- 92:2d1ca4dcbca7
--- a/web-this/radiator/web-radiator-script.inc Thu Jun 04 16:37:59 2020 +0000 +++ b/web-this/radiator/web-radiator-script.inc Wed Jun 10 10:08:06 2020 +0000 @@ -12,7 +12,7 @@ "function parse()\n" "{\n" " let lines = Ajax.response.split('\\n');\n" -" hallTemperature = OneWire.DS18B20ToString (lines[0]);\n" +" hallTemperature = OneWire.parseDS18B20 (lines[0]);\n" " programTimerOutput = Ajax.hexToBit (lines[1], 0);\n" " radiatorMode = Ajax.hexToBit (lines[1], 1);\n" " radiatorOverride = Ajax.hexToBit (lines[1], 2);\n" @@ -23,7 +23,7 @@ "function display()\n" "{\n" " let elem;\n" -" elem = Ajax.getElementOrNull('ajax-hall-html' ); if (elem) elem.textContent = hallTemperature;\n" +" elem = Ajax.getElementOrNull('ajax-hall-html' ); if (elem) elem.textContent = hallTemperature.toFixed(1);\n" " 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"