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

Revision:
24:e3ed1b52c6e6
Child:
34:18a3fc737899
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/http-derived/boiler/http-boiler-html.c	Thu Jan 17 13:42:54 2019 +0000
@@ -0,0 +1,33 @@
+#include "http.h"
+#include "page.h"
+#include "page-derived.h"
+#include "boiler.h"
+#include "ds18b20.h"
+#include "http-server.h"
+
+void HttpBoilerHtml()
+{
+    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
+    PageAddHeader(PageSite, "Boiler", "settings.css", NULL);
+    PageAddNav(BOILER_PAGE);
+    PageAddH1(PageSite, "Boiler");
+    
+    int16_t temp;
+    char text[DS18B20_VALUE_STRING_LENGTH];
+    temp = DS18B20ValueFromRom(BoilerGetTankRom());    DS18B20ValueToString(temp, text); PageAddLabelledValue("Tank",          10, text);
+    temp = DS18B20ValueFromRom(BoilerGetOutputRom());  DS18B20ValueToString(temp, text); PageAddLabelledValue("Boiler output", 10, text);
+    temp = DS18B20ValueFromRom(BoilerGetReturnRom());  DS18B20ValueToString(temp, text); PageAddLabelledValue("Boiler return", 10, text);
+    
+    PageAddH2("Parameters");
+    PageAddIntInput("/boiler", 0, "Tank set point",         10, "tanksetpoint",   2, BoilerGetTankSetPoint());
+    PageAddIntInput("/boiler", 0, "Tank hysteresis",        10, "tankhysteresis", 2, BoilerGetTankHysteresis());
+    PageAddIntInput("/boiler", 0, "Boiler run on residual", 10, "boilerresidual", 2, BoilerGetRunOnResidual());
+    PageAddIntInput("/boiler", 0, "Boiler run on time",     10, "boilerrunon",    2, BoilerGetRunOnTime());
+    
+    PageAddH2("Outputs");
+    PageAddLabelledOnOff("Boiler call", 10, BoilerCall);
+    PageAddLabelledOnOff("Boiler pump", 10, BoilerPump);
+
+    PageAddEnd();
+    
+}
\ No newline at end of file