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:
Sat Apr 27 09:27:11 2019 +0000
Revision:
49:9491c966dc60
Parent:
http-derived/boiler/http-boiler-html.c@47:229338b3adcb
Child:
51:c7c6ce0d57ad
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 24:e3ed1b52c6e6 1 #include "http.h"
andrewboyson 24:e3ed1b52c6e6 2 #include "page.h"
andrewboyson 24:e3ed1b52c6e6 3 #include "page-derived.h"
andrewboyson 24:e3ed1b52c6e6 4 #include "boiler.h"
andrewboyson 24:e3ed1b52c6e6 5 #include "ds18b20.h"
andrewboyson 49:9491c966dc60 6 #include "web-base.h"
andrewboyson 24:e3ed1b52c6e6 7
andrewboyson 49:9491c966dc60 8 void WebBoilerHtml()
andrewboyson 24:e3ed1b52c6e6 9 {
andrewboyson 24:e3ed1b52c6e6 10 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 47:229338b3adcb 11 PageAddHeader(PageSite, "Boiler", "settings.css", "boiler.js");
andrewboyson 24:e3ed1b52c6e6 12 PageAddNav(BOILER_PAGE);
andrewboyson 24:e3ed1b52c6e6 13 PageAddH1(PageSite, "Boiler");
andrewboyson 24:e3ed1b52c6e6 14
andrewboyson 36:07c7e4d197f2 15 PageAddH2("Outputs");
andrewboyson 41:6413522ed343 16 PageAddAjaxLed("Boiler call", "ajax-blr-call-toggle");
andrewboyson 41:6413522ed343 17 PageAddAjaxLed("Boiler pump", "ajax-blr-pump-toggle");
andrewboyson 36:07c7e4d197f2 18
andrewboyson 35:bb8a6d1c034c 19 PageAddH2("Inputs");
andrewboyson 41:6413522ed343 20 PageAddAjaxLabelledSuffix("Tank", "ajax-tank-html", "°C");
andrewboyson 41:6413522ed343 21 PageAddAjaxLabelledSuffix("Boiler output", "ajax-blr-out-html", "°C");
andrewboyson 41:6413522ed343 22 PageAddAjaxLabelledSuffix("Boiler return", "ajax-blr-rtn-html", "°C");
andrewboyson 35:bb8a6d1c034c 23
andrewboyson 24:e3ed1b52c6e6 24 PageAddH2("Parameters");
andrewboyson 47:229338b3adcb 25 PageAddAjaxInput("Tank 'off' setpoint (deg)", 2, "ajax-tank-set-point", "tanksetpoint" );
andrewboyson 47:229338b3adcb 26 PageAddAjaxInput("Tank 'on' temp drop (deg)", 2, "ajax-tank-hysteresis", "tankhysteresis");
andrewboyson 47:229338b3adcb 27 PageAddAjaxInput("Boiler run on (deg)", 2, "ajax-blr-run-on-deg", "boilerresidual");
andrewboyson 47:229338b3adcb 28 PageAddAjaxInput("Boiler run on (sec)", 2, "ajax-blr-run-on-time", "boilerrunon" );
andrewboyson 24:e3ed1b52c6e6 29
andrewboyson 24:e3ed1b52c6e6 30 PageAddEnd();
andrewboyson 24:e3ed1b52c6e6 31
andrewboyson 24:e3ed1b52c6e6 32 }