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
http-derived/boiler/http-boiler-html.c
- Committer:
- andrewboyson
- Date:
- 2019-03-07
- Revision:
- 35:bb8a6d1c034c
- Parent:
- 34:18a3fc737899
- Child:
- 36:07c7e4d197f2
File content as of revision 35:bb8a6d1c034c:
#include "http.h" #include "page.h" #include "page-derived.h" #include "boiler.h" #include "ds18b20.h" #include "http-server.h" void HttpBoilerHtml() { HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); PageAddHeader(PageSite, "Boiler", "settings.css", "heating.js"); PageAddNav(BOILER_PAGE); PageAddH1(PageSite, "Boiler"); PageAddH2("Inputs"); PageAddAjaxLabelled(11, "Tank", "ajax-tank-html", "°C"); PageAddAjaxLabelled(11, "Boiler output", "ajax-blr-out-html", "°C"); PageAddAjaxLabelled(11, "Boiler return", "ajax-blr-rtn-html", "°C"); PageAddH2("Parameters"); PageAddIntInput("/boiler", 0, "Tank 'off' setpoint (deg)", 12, "tanksetpoint", 2, BoilerGetTankSetPoint()); PageAddIntInput("/boiler", 0, "Tank 'on' temp drop (deg)", 12, "tankhysteresis", 2, BoilerGetTankHysteresis()); PageAddIntInput("/boiler", 0, "Boiler run on (deg)", 12, "boilerresidual", 2, BoilerGetRunOnResidual()); PageAddIntInput("/boiler", 0, "Boiler run on (sec)", 12, "boilerrunon", 2, BoilerGetRunOnTime()); PageAddH2("Outputs"); PageAddAjaxToggle(12, "Boiler call", "ajax-blr-call-toggle", "htg-chg-blr-call"); PageAddAjaxToggle(12, "Boiler pump", "ajax-blr-pump-toggle", "htg-chg-blr-pump"); PageAddEnd(); }