Monitor motorhome leisure battery and provide simple control of habitation
Dependencies: net lpc1768 crypto clock web fram log
web-this/home/web-home-html.c@10:a97a7cb7aa82, 2022-06-10 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri Jun 10 18:32:21 2022 +0000
- Revision:
- 10:a97a7cb7aa82
- Parent:
- 9:d957af50fdc2
Corrected amp second count in html
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 | #include "web-add.h" |
andrewboyson | 0:b843d647695c | 3 | |
andrewboyson | 0:b843d647695c | 4 | void WebHomeHtml() |
andrewboyson | 0:b843d647695c | 5 | { |
andrewboyson | 0:b843d647695c | 6 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 9:d957af50fdc2 | 7 | WebAddHeader("Home", NULL, "battery.js"); |
andrewboyson | 0:b843d647695c | 8 | |
andrewboyson | 9:d957af50fdc2 | 9 | HttpAddText("<a href='/battery' class='hamburger'>\r\n"); |
andrewboyson | 0:b843d647695c | 10 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 0:b843d647695c | 11 | HttpAddText("<div class='space'></div>\r\n"); |
andrewboyson | 0:b843d647695c | 12 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 0:b843d647695c | 13 | HttpAddText("<div class='space'></div>\r\n"); |
andrewboyson | 0:b843d647695c | 14 | HttpAddText("<div class='bar' ></div>\r\n"); |
andrewboyson | 0:b843d647695c | 15 | HttpAddText("</a>\r\n"); |
andrewboyson | 0:b843d647695c | 16 | HttpAddText("<br/>\r\n"); |
andrewboyson | 0:b843d647695c | 17 | HttpAddText("<br/>\r\n"); |
andrewboyson | 0:b843d647695c | 18 | |
andrewboyson | 0:b843d647695c | 19 | HttpAddText("<div id='ajax-date-local'></div>\r\n"); |
andrewboyson | 0:b843d647695c | 20 | HttpAddText("<br/>\r\n"); |
andrewboyson | 9:d957af50fdc2 | 21 | WebAddAjaxLabelled("Battery capacity %", "txt-battery-counted-capacity-percent"); |
andrewboyson | 9:d957af50fdc2 | 22 | WebAddAjaxLabelled("Battery current mA", "txt-battery-current-ma"); |
andrewboyson | 9:d957af50fdc2 | 23 | WebAddAjaxLabelled("Battery mode" , "txt-battery-output-state"); |
andrewboyson | 0:b843d647695c | 24 | |
andrewboyson | 0:b843d647695c | 25 | WebAddEnd(); |
andrewboyson | 0:b843d647695c | 26 | } |
andrewboyson | 0:b843d647695c | 27 |