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:
Fri Apr 23 08:36:42 2021 +0000
Revision:
106:41ed3ea0bbba
Parent:
96:18a3813bb4b5
Not working, crashes.

Who changed what in which revision?

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