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

Committer:
andrewboyson
Date:
Sun May 12 17:21:43 2019 +0000
Revision:
61:b7513ca034b8
Parent:
53:c1bf7d9db507
Child:
99:84c3273dc77f
Updated libraries

Who changed what in which revision?

UserRevisionLine numberNew 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", "&deg;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 61:b7513ca034b8 25 WebAddAjaxInputToggle("Radiators" , "ajax-override-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