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-this/home/web-home-html.c@106:41ed3ea0bbba, 2021-04-23 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri Apr 23 08:36:42 2021 +0000
- Revision:
- 106:41ed3ea0bbba
- Parent:
- 99:84c3273dc77f
Not working, crashes.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 24:e3ed1b52c6e6 | 1 | #include "http.h" |
andrewboyson | 51:c7c6ce0d57ad | 2 | #include "web-add.h" |
andrewboyson | 24:e3ed1b52c6e6 | 3 | |
andrewboyson | 49:9491c966dc60 | 4 | void WebHomeHtml() |
andrewboyson | 24:e3ed1b52c6e6 | 5 | { |
andrewboyson | 24:e3ed1b52c6e6 | 6 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 51:c7c6ce0d57ad | 7 | WebAddHeader("Home", NULL, "radiator.js"); |
andrewboyson | 24:e3ed1b52c6e6 | 8 | |
andrewboyson | 24:e3ed1b52c6e6 | 9 | HttpAddText("<a href='/program' class='hamburger'>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 10 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 11 | HttpAddText("<div class='space'></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 12 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 13 | HttpAddText("<div class='space'></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 14 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 15 | HttpAddText("</a>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 16 | HttpAddText("<br/>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 17 | HttpAddText("<br/>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 18 | |
andrewboyson | 47:229338b3adcb | 19 | HttpAddText("<div id='ajax-date-local'></div>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 20 | HttpAddText("<br/>\r\n"); |
andrewboyson | 51:c7c6ce0d57ad | 21 | WebAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "°C"); |
andrewboyson | 24:e3ed1b52c6e6 | 22 | HttpAddText("<br/>\r\n"); |
andrewboyson | 61:b7513ca034b8 | 23 | WebAddAjaxInputToggle("Winter mode", "ajax-mode-toggle" , "htg-chg-mode" ); |
andrewboyson | 24:e3ed1b52c6e6 | 24 | HttpAddText("<br/>\r\n"); |
andrewboyson | 99:84c3273dc77f | 25 | WebAddAjaxInputToggle("Radiators" , "ajax-radiator-toggle", "htg-chg-override"); |
andrewboyson | 24:e3ed1b52c6e6 | 26 | HttpAddText("<br/>\r\n"); |
andrewboyson | 24:e3ed1b52c6e6 | 27 | |
andrewboyson | 51:c7c6ce0d57ad | 28 | WebAddEnd(); |
andrewboyson | 24:e3ed1b52c6e6 | 29 | } |
andrewboyson | 24:e3ed1b52c6e6 | 30 |