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

Committer:
andrewboyson
Date:
Sat Apr 27 09:27:11 2019 +0000
Revision:
49:9491c966dc60
Child:
51:c7c6ce0d57ad
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 49:9491c966dc60 1 #include <stdio.h>
andrewboyson 49:9491c966dc60 2
andrewboyson 49:9491c966dc60 3 #include "http.h"
andrewboyson 49:9491c966dc60 4 #include "web-base.h"
andrewboyson 49:9491c966dc60 5 #include "page.h"
andrewboyson 49:9491c966dc60 6 #include "page-derived.h"
andrewboyson 49:9491c966dc60 7
andrewboyson 49:9491c966dc60 8 void WebSystemHtml()
andrewboyson 49:9491c966dc60 9 {
andrewboyson 49:9491c966dc60 10 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 49:9491c966dc60 11 PageAddHeader(PageSite, "System", "settings.css", "system.js");
andrewboyson 49:9491c966dc60 12 PageAddNav(SYSTEM_PAGE);
andrewboyson 49:9491c966dc60 13 PageAddH1(PageSite, "System");
andrewboyson 49:9491c966dc60 14
andrewboyson 49:9491c966dc60 15 PageAddH2("TFTP");
andrewboyson 49:9491c966dc60 16 PageAddAjaxInput ("Server url", 5, "ajax-server-name", "tftpserver" );
andrewboyson 49:9491c966dc60 17 PageAddAjaxInput ("File (strftime)", 11, "ajax-file-name", "tftpfilename" );
andrewboyson 49:9491c966dc60 18 PageAddAjaxInput ("Interval (secs) 0=no", 5, "ajax-read-interval", "tftpreadint" );
andrewboyson 49:9491c966dc60 19 PageAddAjaxInput ("Records per backup 0=no", 5, "ajax-write-size", "tftpwriteint" );
andrewboyson 49:9491c966dc60 20 PageAddAjaxLabelled("Count", "ajax-count" );
andrewboyson 49:9491c966dc60 21 PageAddAjaxLabelled("Started", "ajax-start-time" );
andrewboyson 49:9491c966dc60 22
andrewboyson 49:9491c966dc60 23 PageAddH2("FRAM");
andrewboyson 49:9491c966dc60 24 PageAddAjaxLabelled("Used", "ajax-fram-used" );
andrewboyson 49:9491c966dc60 25
andrewboyson 49:9491c966dc60 26 PageAddH2("Compiler");
andrewboyson 49:9491c966dc60 27 PageAddLabelledInt("Version Vvvbbbb", __ARMCC_VERSION);
andrewboyson 49:9491c966dc60 28
andrewboyson 49:9491c966dc60 29 PageAddEnd();
andrewboyson 49:9491c966dc60 30
andrewboyson 49:9491c966dc60 31 }