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

web-this/boiler/web-boiler-html.c

Committer:
andrewboyson
Date:
2021-02-23
Revision:
105:1899f7ed17ec
Parent:
104:46ce1aaf8be7
Child:
106:41ed3ea0bbba

File content as of revision 105:1899f7ed17ec:

#include "http.h"
#include "web-nav-this.h"
#include "web-add.h"

void WebBoilerHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    WebAddHeader("Boiler", "settings.css", "boiler.js");
    WebAddNav(BOILER_PAGE);
    WebAddH1("Boiler");
    
    WebAddH2("Tank outputs");
    WebAddAjaxLed("Boiler call", "ajax-blr-call-toggle");
    
    WebAddH2("Tank inputs");
    WebAddAjaxLabelledSuffix("Tank",               "ajax-tank-html",       "°C");

    WebAddH2("Tank parameters");
    WebAddAjaxInput("Tank 'off' setpoint (deg)", 2, "ajax-tank-set-point",     "tanksetpoint"    );
    WebAddAjaxInput("Tank 'on' temp drop (deg)", 2, "ajax-tank-hysteresis",    "tankhysteresis"  );

    WebAddH2("Pump outputs");
    WebAddAjaxLed("Boiler pump", "ajax-blr-pump-toggle");
    WebAddAjaxLabelledSuffix("Boiler pump speed (10-100)",     "ajax-blr-pump-speed-html", "%");
    WebAddAjaxLabelledSuffix("Boiler pump pwm  (84-10)",  "ajax-blr-pump-pwm-html"  , "%");
    
    WebAddH2("Pump inputs");
    WebAddAjaxLabelledSuffix("Boiler output",        "ajax-blr-out-html",  "°C");
    WebAddAjaxLabelledSuffix("Boiler input",         "ajax-blr-rtn-html",  "°C");
    WebAddAjaxLabelledSuffix("Boiler input aligned", "ajax-blr-aln-html",  "°C");
    WebAddAjaxLabelledSuffix("Boiler ΔT",      "ajax-blr-rise-html", "°C");

    WebAddH2("Pump parameters");
    WebAddAjaxInput("Full speed circuit time (sec)" , 2, "ajax-full-speed-secs"   , "fullspeedsecs"     );
    
    WebAddH2("Pump parameters during boiler call");
    WebAddAjaxInputToggle("Boiler call enable", "ajax-blr-enable-toggle",      "boilercallenable");
    WebAddAjaxInput("Calling pump speed (%, A or T)", 2, "ajax-pump-speed-calling", "pumpspeedcalling"  );
    WebAddAjaxInput("Boiler output target (deg)"    , 2, "ajax-blr-output-target" , "boileroutputtarget");
    WebAddAjaxInput("Minimum flow (%)"              , 3, "ajax-pump-rise-at-0"    , "blrriseat0"        );
    WebAddAjaxInput("Mid flow speed"                , 3, "ajax-pump-rise-at-50"   , "blrriseat50"       );
    WebAddAjaxInput("Full speed ΔT"           , 3, "ajax-pump-rise-at-100"  , "blrriseat100"      );

    WebAddH2("Pump parameters during run on");
    WebAddAjaxInput("Run on min ΔT"           , 2, "ajax-blr-run-on-deg",     "boilerresidual"    );
    WebAddAjaxInput("Run on max time (sec)"         , 2, "ajax-blr-run-on-time",    "boilerrunon"       );
    WebAddAjaxInput("Run on pump speed (%)"         , 2, "ajax-pump-speed-run-on",  "pumpspeedrunon"    );

    WebAddEnd();
    
}