Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: net 1-wire lpc1768 crypto clock web fram log
web-boiler-html.c
00001 #include "http.h" 00002 #include "web-nav-this.h" 00003 #include "web-add.h" 00004 00005 void WebBoilerHtml() 00006 { 00007 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); 00008 WebAddHeader("Boiler", "settings.css", "boiler.js"); 00009 WebAddNav(BOILER_PAGE); 00010 WebAddH1("Boiler"); 00011 00012 WebAddH2("Tank outputs"); 00013 WebAddAjaxLed("Boiler call", "ajax-blr-call-toggle"); 00014 00015 WebAddH2("Tank inputs"); 00016 WebAddAjaxLabelledSuffix("Tank", "ajax-tank-html", "°C"); 00017 00018 WebAddH2("Tank parameters"); 00019 WebAddAjaxInput("Tank 'off' setpoint (deg)", 2, "ajax-tank-set-point", "tanksetpoint" ); 00020 WebAddAjaxInput("Tank 'on' temp drop (deg)", 2, "ajax-tank-hysteresis", "tankhysteresis" ); 00021 00022 WebAddH2("Pump outputs"); 00023 WebAddAjaxLed("Boiler pump", "ajax-blr-pump-toggle"); 00024 WebAddAjaxLabelledSuffix("Boiler pump speed (<span id='ajax-min-speed-text'></span>-100)", "ajax-blr-pump-speed-html", "%"); 00025 WebAddAjaxLabelledSuffix("Boiler pump pwm (84-10)", "ajax-blr-pump-pwm-html" , "%"); 00026 00027 WebAddH2("Pump inputs"); 00028 WebAddAjaxLabelledSuffix("Boiler output", "ajax-blr-out-html", "°C"); 00029 WebAddAjaxLabelledSuffix("Boiler input", "ajax-blr-rtn-html", "°C"); 00030 WebAddAjaxLabelledSuffix("Boiler input aligned", "ajax-blr-aln-html", "°C"); 00031 WebAddAjaxLabelledSuffix("Boiler ΔT", "ajax-blr-rise-html", "°C"); 00032 00033 WebAddH2("Pump parameters"); 00034 WebAddAjaxInput("Full speed circuit time (sec)" , 2, "ajax-full-speed-secs" , "fullspeedsecs" ); 00035 WebAddAjaxInput("Minimum speed (%)" , 2, "ajax-min-speed-value" , "blrriseat0" ); 00036 WebAddAjaxInput("Mid speed pwm" , 2, "ajax-pump-rise-at-50" , "blrriseat50" ); 00037 00038 WebAddH2("Pump parameters during boiler call"); 00039 WebAddAjaxInputToggle("Boiler call enable", "ajax-blr-enable-toggle", "boilercallenable"); 00040 WebAddAjaxInput("Calling pump speed (%, A or T)", 2, "ajax-pump-speed-calling", "pumpspeedcalling" ); 00041 WebAddAjaxInput("Boiler output target (deg)" , 2, "ajax-blr-output-target" , "boileroutputtarget"); 00042 WebAddAjaxInput("Full speed ΔT" , 3, "ajax-pump-rise-at-100" , "blrriseat100" ); 00043 00044 WebAddH2("Pump parameters during run on"); 00045 WebAddAjaxInput("Run on min ΔT" , 3, "ajax-blr-run-on-deg", "boilerresidual" ); 00046 WebAddAjaxInput("Run on max time (sec)" , 2, "ajax-blr-run-on-time", "boilerrunon" ); 00047 WebAddAjaxInput("Ramp down time (sec)" , 2, "ajax-pump-speed-run-on", "pumpspeedrunon" ); 00048 00049 WebAddEnd(); 00050 00051 }
Generated on Tue Jul 12 2022 18:50:15 by
