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
web-derived/boiler/web-boiler-html.c@52:76254a967391, 2019-05-01 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed May 01 07:17:24 2019 +0000
- Revision:
- 52:76254a967391
- Parent:
- 51:c7c6ce0d57ad
Updated web library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 24:e3ed1b52c6e6 | 1 | #include "http.h" |
andrewboyson | 52:76254a967391 | 2 | #include "web-nav-derived.h" |
andrewboyson | 51:c7c6ce0d57ad | 3 | #include "web-add.h" |
andrewboyson | 24:e3ed1b52c6e6 | 4 | |
andrewboyson | 49:9491c966dc60 | 5 | void WebBoilerHtml() |
andrewboyson | 24:e3ed1b52c6e6 | 6 | { |
andrewboyson | 24:e3ed1b52c6e6 | 7 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 51:c7c6ce0d57ad | 8 | WebAddHeader("Boiler", "settings.css", "boiler.js"); |
andrewboyson | 51:c7c6ce0d57ad | 9 | WebAddNav(BOILER_PAGE); |
andrewboyson | 51:c7c6ce0d57ad | 10 | WebAddH1("Boiler"); |
andrewboyson | 24:e3ed1b52c6e6 | 11 | |
andrewboyson | 51:c7c6ce0d57ad | 12 | WebAddH2("Outputs"); |
andrewboyson | 51:c7c6ce0d57ad | 13 | WebAddAjaxLed("Boiler call", "ajax-blr-call-toggle"); |
andrewboyson | 51:c7c6ce0d57ad | 14 | WebAddAjaxLed("Boiler pump", "ajax-blr-pump-toggle"); |
andrewboyson | 36:07c7e4d197f2 | 15 | |
andrewboyson | 51:c7c6ce0d57ad | 16 | WebAddH2("Inputs"); |
andrewboyson | 51:c7c6ce0d57ad | 17 | WebAddAjaxLabelledSuffix("Tank", "ajax-tank-html", "°C"); |
andrewboyson | 51:c7c6ce0d57ad | 18 | WebAddAjaxLabelledSuffix("Boiler output", "ajax-blr-out-html", "°C"); |
andrewboyson | 51:c7c6ce0d57ad | 19 | WebAddAjaxLabelledSuffix("Boiler return", "ajax-blr-rtn-html", "°C"); |
andrewboyson | 35:bb8a6d1c034c | 20 | |
andrewboyson | 51:c7c6ce0d57ad | 21 | WebAddH2("Parameters"); |
andrewboyson | 51:c7c6ce0d57ad | 22 | WebAddAjaxInput("Tank 'off' setpoint (deg)", 2, "ajax-tank-set-point", "tanksetpoint" ); |
andrewboyson | 51:c7c6ce0d57ad | 23 | WebAddAjaxInput("Tank 'on' temp drop (deg)", 2, "ajax-tank-hysteresis", "tankhysteresis"); |
andrewboyson | 51:c7c6ce0d57ad | 24 | WebAddAjaxInput("Boiler run on (deg)", 2, "ajax-blr-run-on-deg", "boilerresidual"); |
andrewboyson | 51:c7c6ce0d57ad | 25 | WebAddAjaxInput("Boiler run on (sec)", 2, "ajax-blr-run-on-time", "boilerrunon" ); |
andrewboyson | 24:e3ed1b52c6e6 | 26 | |
andrewboyson | 51:c7c6ce0d57ad | 27 | WebAddEnd(); |
andrewboyson | 24:e3ed1b52c6e6 | 28 | |
andrewboyson | 24:e3ed1b52c6e6 | 29 | } |