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:
Fri Mar 08 18:48:26 2019 +0000
Revision:
36:07c7e4d197f2
Parent:
35:bb8a6d1c034c
Child:
41:6413522ed343
Updated libraries

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 24:e3ed1b52c6e6 6 #include "http-server.h"
andrewboyson 24:e3ed1b52c6e6 7
andrewboyson 24:e3ed1b52c6e6 8 void HttpBoilerHtml()
andrewboyson 24:e3ed1b52c6e6 9 {
andrewboyson 24:e3ed1b52c6e6 10 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 35:bb8a6d1c034c 11 PageAddHeader(PageSite, "Boiler", "settings.css", "heating.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 36:07c7e4d197f2 16 PageAddAjaxLed(12, "Boiler call", "ajax-blr-call-toggle");
andrewboyson 36:07c7e4d197f2 17 PageAddAjaxLed(12, "Boiler pump", "ajax-blr-pump-toggle");
andrewboyson 36:07c7e4d197f2 18
andrewboyson 35:bb8a6d1c034c 19 PageAddH2("Inputs");
andrewboyson 35:bb8a6d1c034c 20 PageAddAjaxLabelled(11, "Tank", "ajax-tank-html", "°C");
andrewboyson 35:bb8a6d1c034c 21 PageAddAjaxLabelled(11, "Boiler output", "ajax-blr-out-html", "°C");
andrewboyson 35:bb8a6d1c034c 22 PageAddAjaxLabelled(11, "Boiler return", "ajax-blr-rtn-html", "°C");
andrewboyson 35:bb8a6d1c034c 23
andrewboyson 24:e3ed1b52c6e6 24 PageAddH2("Parameters");
andrewboyson 36:07c7e4d197f2 25 PageAddInputInt(12, "Tank 'off' setpoint (deg)", 2, BoilerGetTankSetPoint(), "/boiler", "tanksetpoint" );
andrewboyson 36:07c7e4d197f2 26 PageAddInputInt(12, "Tank 'on' temp drop (deg)", 2, BoilerGetTankHysteresis(), "/boiler", "tankhysteresis");
andrewboyson 36:07c7e4d197f2 27 PageAddInputInt(12, "Boiler run on (deg)", 2, BoilerGetRunOnResidual(), "/boiler", "boilerresidual");
andrewboyson 36:07c7e4d197f2 28 PageAddInputInt(12, "Boiler run on (sec)", 2, BoilerGetRunOnTime(), "/boiler", "boilerrunon" );
andrewboyson 24:e3ed1b52c6e6 29
andrewboyson 24:e3ed1b52c6e6 30 PageAddEnd();
andrewboyson 24:e3ed1b52c6e6 31
andrewboyson 24:e3ed1b52c6e6 32 }