Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
web-this/radiator/web-radiator-html.c@5:3579001bea1b, 2021-05-20 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu May 20 14:34:51 2021 +0000
- Revision:
- 5:3579001bea1b
- Parent:
- 0:22b158d3c76f
- Child:
- 6:0164a06f25e7
Added ability for the user to prioritise hot water for showers by allowing a limit on the tank temperature below which the radiator pump stops
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 0:22b158d3c76f | 1 | #include "http.h" |
| andrewboyson | 0:22b158d3c76f | 2 | #include "web-nav-this.h" |
| andrewboyson | 0:22b158d3c76f | 3 | #include "web-add.h" |
| andrewboyson | 0:22b158d3c76f | 4 | |
| andrewboyson | 0:22b158d3c76f | 5 | void WebRadiatorHtml() |
| andrewboyson | 0:22b158d3c76f | 6 | { |
| andrewboyson | 0:22b158d3c76f | 7 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
| andrewboyson | 0:22b158d3c76f | 8 | WebAddHeader("Radiator", "settings.css", "radiator.js"); |
| andrewboyson | 0:22b158d3c76f | 9 | WebAddNav(RADIATOR_PAGE); |
| andrewboyson | 0:22b158d3c76f | 10 | WebAddH1("Radiator"); |
| andrewboyson | 0:22b158d3c76f | 11 | |
| andrewboyson | 0:22b158d3c76f | 12 | WebAddH2("Output"); |
| andrewboyson | 0:22b158d3c76f | 13 | WebAddAjaxLed ("Radiator pump", "ajax-radiator-toggle"); |
| andrewboyson | 0:22b158d3c76f | 14 | |
| andrewboyson | 0:22b158d3c76f | 15 | WebAddH2("Inputs"); |
| andrewboyson | 0:22b158d3c76f | 16 | WebAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "°C"); |
| andrewboyson | 5:3579001bea1b | 17 | WebAddAjaxLabelledSuffix("Tank temperature", "ajax-tank-html", "°C"); |
| andrewboyson | 0:22b158d3c76f | 18 | WebAddAjaxLed ("Programmer output", "ajax-program-toggle"); |
| andrewboyson | 0:22b158d3c76f | 19 | |
| andrewboyson | 0:22b158d3c76f | 20 | WebAddH2("Parameters"); |
| andrewboyson | 5:3579001bea1b | 21 | WebAddAjaxInputToggle ("Mode Summer|Winter", "ajax-mode-toggle" , "htg-chg-mode" ); |
| andrewboyson | 5:3579001bea1b | 22 | WebAddAjaxInput ("Winter (night)", 2, "ajax-night-set-point" , "nighttemp"); |
| andrewboyson | 5:3579001bea1b | 23 | WebAddAjaxInput ("Summer (frost)", 2, "ajax-frost-set-point" , "frosttemp"); |
| andrewboyson | 5:3579001bea1b | 24 | WebAddAjaxInputToggle ("Override", "ajax-override-toggle" , "htg-chg-override"); |
| andrewboyson | 5:3579001bea1b | 25 | WebAddAjaxInput ("Override cancel time", 4, "ajax-override-cancel-minute", "overridecancelminute"); |
| andrewboyson | 5:3579001bea1b | 26 | WebAddAjaxInputToggle ("Hot water protection", "ajax-hw-prot-toggle" , "htg-chg-hw-prot" ); |
| andrewboyson | 5:3579001bea1b | 27 | WebAddAjaxInput ("Hot water protection (tank min)", 2, "ajax-hw-prot-temp" , "hwprotecttemp"); |
| andrewboyson | 0:22b158d3c76f | 28 | |
| andrewboyson | 0:22b158d3c76f | 29 | WebAddEnd(); |
| andrewboyson | 0:22b158d3c76f | 30 | |
| andrewboyson | 0:22b158d3c76f | 31 | } |