Monitor motorhome leisure battery and provide simple control of habitation
Dependencies: net lpc1768 crypto clock web fram log
Diff: web-this/boiler/web-boiler-html.c
- Revision:
- 0:b843d647695c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-this/boiler/web-boiler-html.c Thu Jan 14 16:05:55 2021 +0000 @@ -0,0 +1,30 @@ +#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("Outputs"); + WebAddAjaxLed("Boiler call", "ajax-blr-call-toggle"); + WebAddAjaxLed("Boiler pump", "ajax-blr-pump-toggle"); + + WebAddH2("Inputs"); + WebAddAjaxLabelledSuffix("Tank", "ajax-tank-html", "°C"); + WebAddAjaxLabelledSuffix("Boiler output", "ajax-blr-out-html", "°C"); + WebAddAjaxLabelledSuffix("Boiler return", "ajax-blr-rtn-html", "°C"); + WebAddAjaxLabelledSuffix("Boiler temp rise", "ajax-blr-rise-html", "°C"); + + WebAddH2("Parameters"); + WebAddAjaxInput("Tank 'off' setpoint (deg)", 2, "ajax-tank-set-point", "tanksetpoint" ); + WebAddAjaxInput("Tank 'on' temp drop (deg)", 2, "ajax-tank-hysteresis", "tankhysteresis"); + WebAddAjaxInput("Boiler run on (deg)", 2, "ajax-blr-run-on-deg", "boilerresidual"); + WebAddAjaxInput("Boiler run on (sec)", 2, "ajax-blr-run-on-time", "boilerrunon" ); + + WebAddEnd(); + +} \ No newline at end of file