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
Diff: web-this/radiator/web-radiator-html.c
- Revision:
- 0:22b158d3c76f
- Child:
- 5:3579001bea1b
diff -r 000000000000 -r 22b158d3c76f web-this/radiator/web-radiator-html.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-this/radiator/web-radiator-html.c Mon May 10 10:23:48 2021 +0000
@@ -0,0 +1,28 @@
+#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");
+ 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-overide-cancel-minute", "overridecancelminute");
+
+ WebAddEnd();
+
+}