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/radiator/web-radiator-html.c@49:9491c966dc60, 2019-04-27 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Apr 27 09:27:11 2019 +0000
- Revision:
- 49:9491c966dc60
- Parent:
- http-derived/radiator/http-radiator-html.c@47:229338b3adcb
- Child:
- 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 | 24:e3ed1b52c6e6 | 2 | #include "page.h" |
andrewboyson | 24:e3ed1b52c6e6 | 3 | #include "page-derived.h" |
andrewboyson | 24:e3ed1b52c6e6 | 4 | #include "ds18b20.h" |
andrewboyson | 24:e3ed1b52c6e6 | 5 | #include "radiator.h" |
andrewboyson | 24:e3ed1b52c6e6 | 6 | #include "program.h" |
andrewboyson | 49:9491c966dc60 | 7 | #include "web-base.h" |
andrewboyson | 49:9491c966dc60 | 8 | #include "web-derived.h" |
andrewboyson | 24:e3ed1b52c6e6 | 9 | |
andrewboyson | 49:9491c966dc60 | 10 | void WebRadiatorHtml() |
andrewboyson | 24:e3ed1b52c6e6 | 11 | { |
andrewboyson | 24:e3ed1b52c6e6 | 12 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 47:229338b3adcb | 13 | PageAddHeader(PageSite, "Radiator", "settings.css", "radiator.js"); |
andrewboyson | 35:bb8a6d1c034c | 14 | PageAddNav(RADIATOR_PAGE); |
andrewboyson | 35:bb8a6d1c034c | 15 | PageAddH1(PageSite, "Radiator"); |
andrewboyson | 35:bb8a6d1c034c | 16 | |
andrewboyson | 36:07c7e4d197f2 | 17 | PageAddH2("Output"); |
andrewboyson | 41:6413522ed343 | 18 | PageAddAjaxLed ("Radiator pump", "ajax-radiator-toggle"); |
andrewboyson | 36:07c7e4d197f2 | 19 | |
andrewboyson | 35:bb8a6d1c034c | 20 | PageAddH2("Inputs"); |
andrewboyson | 41:6413522ed343 | 21 | PageAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "°C"); |
andrewboyson | 41:6413522ed343 | 22 | PageAddAjaxLed ("Programmer output", "ajax-program-toggle"); |
andrewboyson | 24:e3ed1b52c6e6 | 23 | |
andrewboyson | 24:e3ed1b52c6e6 | 24 | PageAddH2("Parameters"); |
andrewboyson | 41:6413522ed343 | 25 | PageAddAjaxInputToggle ("Mode Summer|Winter", "ajax-mode-toggle" , "htg-chg-mode" ); |
andrewboyson | 47:229338b3adcb | 26 | PageAddAjaxInput ("Winter (night)", 2, "ajax-night-set-point", "nighttemp"); |
andrewboyson | 47:229338b3adcb | 27 | PageAddAjaxInput ("Summer (frost)", 2, "ajax-frost-set-point", "frosttemp"); |
andrewboyson | 41:6413522ed343 | 28 | PageAddAjaxInputToggle ("Override", "ajax-override-toggle", "htg-chg-override"); |
andrewboyson | 24:e3ed1b52c6e6 | 29 | |
andrewboyson | 24:e3ed1b52c6e6 | 30 | PageAddEnd(); |
andrewboyson | 24:e3ed1b52c6e6 | 31 | |
andrewboyson | 24:e3ed1b52c6e6 | 32 | } |