Controls the central heating system and the lights.

Dependencies:   1-wire clock crypto fram log lpc1768 net web wiz mbed

Committer:
andrewboyson
Date:
Sat Nov 12 10:03:38 2022 +0000
Revision:
8:8ac076ce51af
Parent:
0:22b158d3c76f
Updated LPC1768 library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:22b158d3c76f 1 #include "http.h"
andrewboyson 0:22b158d3c76f 2 #include "web-add.h"
andrewboyson 0:22b158d3c76f 3
andrewboyson 0:22b158d3c76f 4 void WebHomeHtml()
andrewboyson 0:22b158d3c76f 5 {
andrewboyson 0:22b158d3c76f 6 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 0:22b158d3c76f 7 WebAddHeader("Home", NULL, "radiator.js");
andrewboyson 0:22b158d3c76f 8
andrewboyson 8:8ac076ce51af 9 HttpAddText("<a href='/radiator' class='hamburger'>\r\n");
andrewboyson 0:22b158d3c76f 10 HttpAddText("<div class='bar' ></div>\r\n");
andrewboyson 0:22b158d3c76f 11 HttpAddText("<div class='space'></div>\r\n");
andrewboyson 0:22b158d3c76f 12 HttpAddText("<div class='bar' ></div>\r\n");
andrewboyson 0:22b158d3c76f 13 HttpAddText("<div class='space'></div>\r\n");
andrewboyson 0:22b158d3c76f 14 HttpAddText("<div class='bar' ></div>\r\n");
andrewboyson 0:22b158d3c76f 15 HttpAddText("</a>\r\n");
andrewboyson 0:22b158d3c76f 16 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 17 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 18
andrewboyson 0:22b158d3c76f 19 HttpAddText("<div id='ajax-date-local'></div>\r\n");
andrewboyson 0:22b158d3c76f 20 HttpAddText("<br/>\r\n");
andrewboyson 8:8ac076ce51af 21 WebAddAjaxLabelledSuffix("Hall temperature" , "ajax-hall-html", "&deg;C");
andrewboyson 8:8ac076ce51af 22 HttpAddText("<br/>\r\n");
andrewboyson 8:8ac076ce51af 23 WebAddAjaxInputToggle ("Radiators" , "ajax-radiators-on-toggle", "htg-chg-override");
andrewboyson 0:22b158d3c76f 24 HttpAddText("<br/>\r\n");
andrewboyson 8:8ac076ce51af 25 WebAddAjaxInputToggle ("Hot water priority", "ajax-hw-prot-toggle" , "htg-chg-hw-prot" );
andrewboyson 0:22b158d3c76f 26 HttpAddText("<br/>\r\n");
andrewboyson 8:8ac076ce51af 27 WebAddAjaxInputToggle ("Winter mode" , "ajax-mode-toggle" , "htg-chg-mode" );
andrewboyson 0:22b158d3c76f 28 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 29
andrewboyson 0:22b158d3c76f 30 WebAddEnd();
andrewboyson 0:22b158d3c76f 31 }
andrewboyson 0:22b158d3c76f 32