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:
Thu Mar 07 15:17:26 2019 +0000
Revision:
35:bb8a6d1c034c
Parent:
34:18a3fc737899
Child:
36:07c7e4d197f2
Updated libraries and added ajax to web pages

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 35:bb8a6d1c034c 15 PageAddH2("Inputs");
andrewboyson 35:bb8a6d1c034c 16 PageAddAjaxLabelled(11, "Tank", "ajax-tank-html", "°C");
andrewboyson 35:bb8a6d1c034c 17 PageAddAjaxLabelled(11, "Boiler output", "ajax-blr-out-html", "°C");
andrewboyson 35:bb8a6d1c034c 18 PageAddAjaxLabelled(11, "Boiler return", "ajax-blr-rtn-html", "°C");
andrewboyson 35:bb8a6d1c034c 19
andrewboyson 24:e3ed1b52c6e6 20 PageAddH2("Parameters");
andrewboyson 35:bb8a6d1c034c 21 PageAddIntInput("/boiler", 0, "Tank 'off' setpoint (deg)", 12, "tanksetpoint", 2, BoilerGetTankSetPoint());
andrewboyson 35:bb8a6d1c034c 22 PageAddIntInput("/boiler", 0, "Tank 'on' temp drop (deg)", 12, "tankhysteresis", 2, BoilerGetTankHysteresis());
andrewboyson 35:bb8a6d1c034c 23 PageAddIntInput("/boiler", 0, "Boiler run on (deg)", 12, "boilerresidual", 2, BoilerGetRunOnResidual());
andrewboyson 35:bb8a6d1c034c 24 PageAddIntInput("/boiler", 0, "Boiler run on (sec)", 12, "boilerrunon", 2, BoilerGetRunOnTime());
andrewboyson 24:e3ed1b52c6e6 25
andrewboyson 24:e3ed1b52c6e6 26 PageAddH2("Outputs");
andrewboyson 35:bb8a6d1c034c 27 PageAddAjaxToggle(12, "Boiler call", "ajax-blr-call-toggle", "htg-chg-blr-call");
andrewboyson 35:bb8a6d1c034c 28 PageAddAjaxToggle(12, "Boiler pump", "ajax-blr-pump-toggle", "htg-chg-blr-pump");
andrewboyson 24:e3ed1b52c6e6 29
andrewboyson 24:e3ed1b52c6e6 30 PageAddEnd();
andrewboyson 24:e3ed1b52c6e6 31
andrewboyson 24:e3ed1b52c6e6 32 }