A GPS disciplined clock
Dependencies: net lpc1768 crypto clock web log
web-this/home/web-home-html.c@87:5052e316994a, 2020-02-20 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Feb 20 15:25:34 2020 +0000
- Revision:
- 87:5052e316994a
- Parent:
- 61:d4bacff13381
Found that NMEA messages could be out by up to 5 seconds so adjusted the confidence value to ten minutes.; Modified home web page to show the GPS module status.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 27:eb5728b9052b | 1 | |
andrewboyson | 55:a1bd0572c8b6 | 2 | #include "http.h" |
andrewboyson | 57:2d54e570de60 | 3 | #include "web-add.h" |
andrewboyson | 59:d2d25c2265f8 | 4 | #include "web-nav-this.h" |
andrewboyson | 27:eb5728b9052b | 5 | |
andrewboyson | 55:a1bd0572c8b6 | 6 | void WebHomeHtml() |
andrewboyson | 27:eb5728b9052b | 7 | { |
andrewboyson | 27:eb5728b9052b | 8 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 57:2d54e570de60 | 9 | WebAddHeader("Home", "settings.css", "home.js"); |
andrewboyson | 57:2d54e570de60 | 10 | WebAddNav(HOME_PAGE); |
andrewboyson | 57:2d54e570de60 | 11 | WebAddH1("Home"); |
andrewboyson | 27:eb5728b9052b | 12 | |
andrewboyson | 87:5052e316994a | 13 | WebAddH2("GPS Messages"); |
andrewboyson | 87:5052e316994a | 14 | WebAddAjaxLed("Messages seen" , "ajax-msgs-ok" ); |
andrewboyson | 87:5052e316994a | 15 | WebAddAjaxLed("Fix messages seen" , "ajax-fix-msgs-ok" ); |
andrewboyson | 87:5052e316994a | 16 | WebAddAjaxLed("Time messages seen" , "ajax-time-msgs-ok" ); |
andrewboyson | 87:5052e316994a | 17 | |
andrewboyson | 87:5052e316994a | 18 | WebAddH2("GPS Time"); |
andrewboyson | 87:5052e316994a | 19 | WebAddAjaxLed("PPS is stable" , "ajax-pps-stable" ); |
andrewboyson | 87:5052e316994a | 20 | WebAddAjaxLed("NMEA time is stable" , "ajax-nmea-stable" ); |
andrewboyson | 87:5052e316994a | 21 | |
andrewboyson | 87:5052e316994a | 22 | WebAddH2("Clock Status"); |
andrewboyson | 87:5052e316994a | 23 | WebAddAjaxLed("RTC is set" , "ajax-rtc-set" ); |
andrewboyson | 87:5052e316994a | 24 | WebAddAjaxLed("Clock is set" , "ajax-clock-set" ); |
andrewboyson | 87:5052e316994a | 25 | WebAddAjaxLed("External source is ok", "ajax-source-ok" ); |
andrewboyson | 87:5052e316994a | 26 | WebAddAjaxLed("Rate synchronised" , "ajax-rate-locked" ); |
andrewboyson | 87:5052e316994a | 27 | WebAddAjaxLed("Time synchronised" , "ajax-time-locked" ); |
andrewboyson | 27:eb5728b9052b | 28 | |
andrewboyson | 57:2d54e570de60 | 29 | WebAddH2("Server UTC time"); |
andrewboyson | 61:d4bacff13381 | 30 | HttpAddText("<div id='ajax-date-utc'></div>\r\n"); |
andrewboyson | 27:eb5728b9052b | 31 | |
andrewboyson | 57:2d54e570de60 | 32 | WebAddH2("Server local time"); |
andrewboyson | 61:d4bacff13381 | 33 | HttpAddText("<div id='ajax-date-pc'></div>\r\n"); |
andrewboyson | 27:eb5728b9052b | 34 | |
andrewboyson | 57:2d54e570de60 | 35 | WebAddH2("Server - PC (ms)"); |
andrewboyson | 61:d4bacff13381 | 36 | HttpAddText("<div id='ajax-date-diff'></div>\r\n"); |
andrewboyson | 27:eb5728b9052b | 37 | |
andrewboyson | 57:2d54e570de60 | 38 | WebAddEnd(); |
andrewboyson | 27:eb5728b9052b | 39 | } |