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:
Mon Apr 29 14:46:58 2019 +0000
Revision:
51:c7c6ce0d57ad
Parent:
49:9491c966dc60
Child:
52:76254a967391
Updated libraries

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 24:e3ed1b52c6e6 1 #include "http.h"
andrewboyson 49:9491c966dc60 2 #include "web-base.h"
andrewboyson 51:c7c6ce0d57ad 3 #include "web-page-derived.h"
andrewboyson 51:c7c6ce0d57ad 4 #include "web-add.h"
andrewboyson 24:e3ed1b52c6e6 5
andrewboyson 49:9491c966dc60 6 void WebRadiatorHtml()
andrewboyson 24:e3ed1b52c6e6 7 {
andrewboyson 24:e3ed1b52c6e6 8 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 51:c7c6ce0d57ad 9 WebAddHeader("Radiator", "settings.css", "radiator.js");
andrewboyson 51:c7c6ce0d57ad 10 WebAddNav(RADIATOR_PAGE);
andrewboyson 51:c7c6ce0d57ad 11 WebAddH1("Radiator");
andrewboyson 35:bb8a6d1c034c 12
andrewboyson 51:c7c6ce0d57ad 13 WebAddH2("Output");
andrewboyson 51:c7c6ce0d57ad 14 WebAddAjaxLed ("Radiator pump", "ajax-radiator-toggle");
andrewboyson 36:07c7e4d197f2 15
andrewboyson 51:c7c6ce0d57ad 16 WebAddH2("Inputs");
andrewboyson 51:c7c6ce0d57ad 17 WebAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "°C");
andrewboyson 51:c7c6ce0d57ad 18 WebAddAjaxLed ("Programmer output", "ajax-program-toggle");
andrewboyson 24:e3ed1b52c6e6 19
andrewboyson 51:c7c6ce0d57ad 20 WebAddH2("Parameters");
andrewboyson 51:c7c6ce0d57ad 21 WebAddAjaxInputToggle ("Mode Summer|Winter", "ajax-mode-toggle" , "htg-chg-mode" );
andrewboyson 51:c7c6ce0d57ad 22 WebAddAjaxInput ("Winter (night)", 2, "ajax-night-set-point", "nighttemp");
andrewboyson 51:c7c6ce0d57ad 23 WebAddAjaxInput ("Summer (frost)", 2, "ajax-frost-set-point", "frosttemp");
andrewboyson 51:c7c6ce0d57ad 24 WebAddAjaxInputToggle ("Override", "ajax-override-toggle", "htg-chg-override");
andrewboyson 24:e3ed1b52c6e6 25
andrewboyson 51:c7c6ce0d57ad 26 WebAddEnd();
andrewboyson 24:e3ed1b52c6e6 27
andrewboyson 24:e3ed1b52c6e6 28 }