Andrew Boyson / oldheating

Dependencies:   net 1-wire lpc1768 crypto clock web fram log

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers web-boiler-html.c Source File

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 &nbsp;(84-10)",  "ajax-blr-pump-pwm-html"  , "%");
00026     
00027     WebAddH2("Pump inputs");
00028     WebAddAjaxLabelledSuffix("Boiler output",        "ajax-blr-out-html",  "&deg;C");
00029     WebAddAjaxLabelledSuffix("Boiler input",         "ajax-blr-rtn-html",  "&deg;C");
00030     WebAddAjaxLabelledSuffix("Boiler input aligned", "ajax-blr-aln-html",  "&deg;C");
00031     WebAddAjaxLabelledSuffix("Boiler &Delta;T",      "ajax-blr-rise-html", "&deg;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 &Delta;T"           , 3, "ajax-pump-rise-at-100"  , "blrriseat100"      );
00043 
00044     WebAddH2("Pump parameters during run on");
00045     WebAddAjaxInput("Run on min &Delta;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 }