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/program/http-program-script.c@47:229338b3adcb, 2019-04-23 (annotated)
- Committer:
- andrewboyson
- Date:
- Tue Apr 23 18:47:47 2019 +0000
- Revision:
- 47:229338b3adcb
- Child:
- 48:6eac12df3ad5
Provided individual scripts per page and moved most inputs to ajax.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 47:229338b3adcb | 1 | #include "http.h" |
andrewboyson | 47:229338b3adcb | 2 | #include "http-server-derived.h" |
andrewboyson | 47:229338b3adcb | 3 | #include "http-server.h" |
andrewboyson | 47:229338b3adcb | 4 | |
andrewboyson | 47:229338b3adcb | 5 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
andrewboyson | 47:229338b3adcb | 6 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
andrewboyson | 47:229338b3adcb | 7 | |
andrewboyson | 47:229338b3adcb | 8 | static const char* script = |
andrewboyson | 47:229338b3adcb | 9 | #include "../../http-base/base/http-ajax-class.inc" |
andrewboyson | 47:229338b3adcb | 10 | #include "../1-wire/http-1wire-class.inc" |
andrewboyson | 47:229338b3adcb | 11 | #include "http-program-script.inc" |
andrewboyson | 47:229338b3adcb | 12 | ; |
andrewboyson | 47:229338b3adcb | 13 | const char* HttpProgramScriptDate = __DATE__; |
andrewboyson | 47:229338b3adcb | 14 | const char* HttpProgramScriptTime = __TIME__; |
andrewboyson | 47:229338b3adcb | 15 | |
andrewboyson | 47:229338b3adcb | 16 | void HttpProgramScript() |
andrewboyson | 47:229338b3adcb | 17 | { |
andrewboyson | 47:229338b3adcb | 18 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", HttpProgramScriptDate, HttpProgramScriptTime); |
andrewboyson | 47:229338b3adcb | 19 | HttpAddText(script); |
andrewboyson | 47:229338b3adcb | 20 | } |