Controls the central heating system and the lights.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
Diff: web-this/home/web-home-html.c
- Revision:
- 0:22b158d3c76f
- Child:
- 8:8ac076ce51af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-this/home/web-home-html.c Mon May 10 10:23:48 2021 +0000 @@ -0,0 +1,30 @@ +#include "http.h" +#include "web-add.h" + +void WebHomeHtml() +{ + HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); + WebAddHeader("Home", NULL, "radiator.js"); + + HttpAddText("<a href='/program' class='hamburger'>\r\n"); + HttpAddText("<div class='bar' ></div>\r\n"); + HttpAddText("<div class='space'></div>\r\n"); + HttpAddText("<div class='bar' ></div>\r\n"); + HttpAddText("<div class='space'></div>\r\n"); + HttpAddText("<div class='bar' ></div>\r\n"); + HttpAddText("</a>\r\n"); + HttpAddText("<br/>\r\n"); + HttpAddText("<br/>\r\n"); + + HttpAddText("<div id='ajax-date-local'></div>\r\n"); + HttpAddText("<br/>\r\n"); + WebAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "°C"); + HttpAddText("<br/>\r\n"); + WebAddAjaxInputToggle("Winter mode", "ajax-mode-toggle" , "htg-chg-mode" ); + HttpAddText("<br/>\r\n"); + WebAddAjaxInputToggle("Radiators" , "ajax-radiator-toggle", "htg-chg-override"); + HttpAddText("<br/>\r\n"); + + WebAddEnd(); +} +