Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
web-this/radiator/web-radiator-html.c
- Committer:
- andrewboyson
- Date:
- 2021-05-20
- Revision:
- 5:3579001bea1b
- Parent:
- 0:22b158d3c76f
- Child:
- 6:0164a06f25e7
File content as of revision 5:3579001bea1b:
#include "http.h"
#include "web-nav-this.h"
#include "web-add.h"
void WebRadiatorHtml()
{
HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
WebAddHeader("Radiator", "settings.css", "radiator.js");
WebAddNav(RADIATOR_PAGE);
WebAddH1("Radiator");
WebAddH2("Output");
WebAddAjaxLed ("Radiator pump", "ajax-radiator-toggle");
WebAddH2("Inputs");
WebAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "°C");
WebAddAjaxLabelledSuffix("Tank temperature", "ajax-tank-html", "°C");
WebAddAjaxLed ("Programmer output", "ajax-program-toggle");
WebAddH2("Parameters");
WebAddAjaxInputToggle ("Mode Summer|Winter", "ajax-mode-toggle" , "htg-chg-mode" );
WebAddAjaxInput ("Winter (night)", 2, "ajax-night-set-point" , "nighttemp");
WebAddAjaxInput ("Summer (frost)", 2, "ajax-frost-set-point" , "frosttemp");
WebAddAjaxInputToggle ("Override", "ajax-override-toggle" , "htg-chg-override");
WebAddAjaxInput ("Override cancel time", 4, "ajax-override-cancel-minute", "overridecancelminute");
WebAddAjaxInputToggle ("Hot water protection", "ajax-hw-prot-toggle" , "htg-chg-hw-prot" );
WebAddAjaxInput ("Hot water protection (tank min)", 2, "ajax-hw-prot-temp" , "hwprotecttemp");
WebAddEnd();
}