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/home/web-home-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/home/http-home-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 "radiator.h" |
andrewboyson | 24:e3ed1b52c6e6 | 4 | #include "ds18b20.h" |
andrewboyson | 24:e3ed1b52c6e6 | 5 | #include "program.h" |
andrewboyson | 49:9491c966dc60 | 6 | #include "web-base.h" |
andrewboyson | 24:e3ed1b52c6e6 | 7 | |
andrewboyson | 49:9491c966dc60 | 8 | void WebHomeHtml() |
andrewboyson | 24:e3ed1b52c6e6 | 9 | { |
andrewboyson | 24:e3ed1b52c6e6 | 10 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 47:229338b3adcb | 11 | PageAddHeader(PageSite, "Home", NULL, "radiator.js"); |
andrewboyson | 24:e3ed1b52c6e6 | 12 | |
andrewboyson | 24:e3ed1b52c6e6 | 13 | HttpAddText("<a href='/program' class='hamburger'>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 14 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 15 | HttpAddText("<div class='space'></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 16 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 17 | HttpAddText("<div class='space'></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 18 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 19 | HttpAddText("</a>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 20 | HttpAddText("<br/>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 21 | HttpAddText("<br/>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 22 | |
andrewboyson | 47:229338b3adcb | 23 | HttpAddText("<div id='ajax-date-local'></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 24 | HttpAddText("<br/>\r\n"); |
andrewboyson | 41:6413522ed343 | 25 | PageAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "°C"); |
andrewboyson | 24:e3ed1b52c6e6 | 26 | HttpAddText("<br/>\r\n"); |
andrewboyson | 41:6413522ed343 | 27 | PageAddAjaxInputToggle("Mode: Summer|Winter", "ajax-mode-toggle" , "htg-chg-mode" ); |
andrewboyson | 24:e3ed1b52c6e6 | 28 | HttpAddText("<br/>\r\n"); |
andrewboyson | 47:229338b3adcb | 29 | PageAddAjaxInputToggle("Radiators: Off|On" , "ajax-override-toggle", "htg-chg-override"); |
andrewboyson | 24:e3ed1b52c6e6 | 30 | HttpAddText("<br/>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 31 | |
andrewboyson | 24:e3ed1b52c6e6 | 32 | PageAddEnd(); |
andrewboyson | 24:e3ed1b52c6e6 | 33 | } |
andrewboyson | 24:e3ed1b52c6e6 | 34 |