Monitor motorhome leisure battery and provide simple control of habitation
Dependencies: net lpc1768 crypto clock web fram log
web-this/boiler/web-boiler-script.c@0:b843d647695c, 2021-01-14 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Jan 14 16:05:55 2021 +0000
- Revision:
- 0:b843d647695c
Creation (mostly a copy of heating at the moment)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:b843d647695c | 1 | #include "http.h" |
andrewboyson | 0:b843d647695c | 2 | |
andrewboyson | 0:b843d647695c | 3 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
andrewboyson | 0:b843d647695c | 4 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
andrewboyson | 0:b843d647695c | 5 | |
andrewboyson | 0:b843d647695c | 6 | static const char* script = |
andrewboyson | 0:b843d647695c | 7 | #include "../../web/common/web-ajax-class.inc" |
andrewboyson | 0:b843d647695c | 8 | #include "../../1-wire/web/web-1wire-class.inc" |
andrewboyson | 0:b843d647695c | 9 | #include "web-boiler-script.inc" |
andrewboyson | 0:b843d647695c | 10 | ; |
andrewboyson | 0:b843d647695c | 11 | const char* WebBoilerScriptDate = __DATE__; |
andrewboyson | 0:b843d647695c | 12 | const char* WebBoilerScriptTime = __TIME__; |
andrewboyson | 0:b843d647695c | 13 | |
andrewboyson | 0:b843d647695c | 14 | void WebBoilerScript() |
andrewboyson | 0:b843d647695c | 15 | { |
andrewboyson | 0:b843d647695c | 16 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebBoilerScriptDate, WebBoilerScriptTime); |
andrewboyson | 0:b843d647695c | 17 | HttpAddText(script); |
andrewboyson | 0:b843d647695c | 18 | } |