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-10
Revision:
104:46ce1aaf8be7
Parent:
91:8b192efd0288
Child:
105:1899f7ed17ec

File content as of revision 104:46ce1aaf8be7:

#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 (0-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 ΔT",    "ajax-blr-rise-html",   "°C");

    WebAddH2("Pump calling parameters");
    WebAddAjaxInput("Pump speed calling (% or -1)",2, "ajax-pump-speed-calling", "pumpspeedcalling"  );
    WebAddAjaxInput("Boiler output target (deg)",  2, "ajax-blr-output-target",  "boileroutputtarget");
    WebAddAjaxInput("Boiler ΔT at pump 0",   3, "ajax-pump-rise-at-0"    , "blrriseat0"        );
    WebAddAjaxInput("Boiler ΔT at pump 50",  3, "ajax-pump-rise-at-50"   , "blrriseat50"       );
    WebAddAjaxInput("Boiler ΔT at pump 100", 3, "ajax-pump-rise-at-100"  , "blrriseat100"      );

    WebAddH2("Pump run on parameters");
    WebAddAjaxInput("Run on residual heat (deg)",  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();
    
}