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 Apr 23 08:36:42 2021 +0000
Revision:
106:41ed3ea0bbba
Parent:
105:1899f7ed17ec
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 WebBoilerHtml()
andrewboyson 24:e3ed1b52c6e6 6 {
andrewboyson 24:e3ed1b52c6e6 7 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 51:c7c6ce0d57ad 8 WebAddHeader("Boiler", "settings.css", "boiler.js");
andrewboyson 51:c7c6ce0d57ad 9 WebAddNav(BOILER_PAGE);
andrewboyson 51:c7c6ce0d57ad 10 WebAddH1("Boiler");
andrewboyson 24:e3ed1b52c6e6 11
andrewboyson 104:46ce1aaf8be7 12 WebAddH2("Tank outputs");
andrewboyson 51:c7c6ce0d57ad 13 WebAddAjaxLed("Boiler call", "ajax-blr-call-toggle");
andrewboyson 104:46ce1aaf8be7 14
andrewboyson 104:46ce1aaf8be7 15 WebAddH2("Tank inputs");
andrewboyson 104:46ce1aaf8be7 16 WebAddAjaxLabelledSuffix("Tank", "ajax-tank-html", "°C");
andrewboyson 104:46ce1aaf8be7 17
andrewboyson 104:46ce1aaf8be7 18 WebAddH2("Tank parameters");
andrewboyson 104:46ce1aaf8be7 19 WebAddAjaxInput("Tank 'off' setpoint (deg)", 2, "ajax-tank-set-point", "tanksetpoint" );
andrewboyson 104:46ce1aaf8be7 20 WebAddAjaxInput("Tank 'on' temp drop (deg)", 2, "ajax-tank-hysteresis", "tankhysteresis" );
andrewboyson 104:46ce1aaf8be7 21
andrewboyson 104:46ce1aaf8be7 22 WebAddH2("Pump outputs");
andrewboyson 51:c7c6ce0d57ad 23 WebAddAjaxLed("Boiler pump", "ajax-blr-pump-toggle");
andrewboyson 106:41ed3ea0bbba 24 WebAddAjaxLabelledSuffix("Boiler pump speed (<span id='ajax-min-speed-text'></span>-100)", "ajax-blr-pump-speed-html", "%");
andrewboyson 104:46ce1aaf8be7 25 WebAddAjaxLabelledSuffix("Boiler pump pwm &nbsp;(84-10)", "ajax-blr-pump-pwm-html" , "%");
andrewboyson 36:07c7e4d197f2 26
andrewboyson 104:46ce1aaf8be7 27 WebAddH2("Pump inputs");
andrewboyson 105:1899f7ed17ec 28 WebAddAjaxLabelledSuffix("Boiler output", "ajax-blr-out-html", "&deg;C");
andrewboyson 105:1899f7ed17ec 29 WebAddAjaxLabelledSuffix("Boiler input", "ajax-blr-rtn-html", "&deg;C");
andrewboyson 105:1899f7ed17ec 30 WebAddAjaxLabelledSuffix("Boiler input aligned", "ajax-blr-aln-html", "&deg;C");
andrewboyson 105:1899f7ed17ec 31 WebAddAjaxLabelledSuffix("Boiler &Delta;T", "ajax-blr-rise-html", "&deg;C");
andrewboyson 35:bb8a6d1c034c 32
andrewboyson 105:1899f7ed17ec 33 WebAddH2("Pump parameters");
andrewboyson 105:1899f7ed17ec 34 WebAddAjaxInput("Full speed circuit time (sec)" , 2, "ajax-full-speed-secs" , "fullspeedsecs" );
andrewboyson 106:41ed3ea0bbba 35 WebAddAjaxInput("Minimum speed (%)" , 2, "ajax-min-speed-value" , "blrriseat0" );
andrewboyson 106:41ed3ea0bbba 36 WebAddAjaxInput("Mid speed pwm" , 2, "ajax-pump-rise-at-50" , "blrriseat50" );
andrewboyson 105:1899f7ed17ec 37
andrewboyson 105:1899f7ed17ec 38 WebAddH2("Pump parameters during boiler call");
andrewboyson 105:1899f7ed17ec 39 WebAddAjaxInputToggle("Boiler call enable", "ajax-blr-enable-toggle", "boilercallenable");
andrewboyson 105:1899f7ed17ec 40 WebAddAjaxInput("Calling pump speed (%, A or T)", 2, "ajax-pump-speed-calling", "pumpspeedcalling" );
andrewboyson 105:1899f7ed17ec 41 WebAddAjaxInput("Boiler output target (deg)" , 2, "ajax-blr-output-target" , "boileroutputtarget");
andrewboyson 105:1899f7ed17ec 42 WebAddAjaxInput("Full speed &Delta;T" , 3, "ajax-pump-rise-at-100" , "blrriseat100" );
andrewboyson 104:46ce1aaf8be7 43
andrewboyson 105:1899f7ed17ec 44 WebAddH2("Pump parameters during run on");
andrewboyson 106:41ed3ea0bbba 45 WebAddAjaxInput("Run on min &Delta;T" , 3, "ajax-blr-run-on-deg", "boilerresidual" );
andrewboyson 105:1899f7ed17ec 46 WebAddAjaxInput("Run on max time (sec)" , 2, "ajax-blr-run-on-time", "boilerrunon" );
andrewboyson 106:41ed3ea0bbba 47 WebAddAjaxInput("Ramp down time (sec)" , 2, "ajax-pump-speed-run-on", "pumpspeedrunon" );
andrewboyson 24:e3ed1b52c6e6 48
andrewboyson 51:c7c6ce0d57ad 49 WebAddEnd();
andrewboyson 24:e3ed1b52c6e6 50
andrewboyson 24:e3ed1b52c6e6 51 }