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
- Committer:
- andrewboyson
- Date:
- 2021-04-23
- Revision:
- 106:41ed3ea0bbba
- Parent:
- 99:84c3273dc77f
File content as of revision 106:41ed3ea0bbba:
#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(); }