Commit Graph

39 Commits

Author SHA1 Message Date
01fdac5338 Add banner background image everywhere, rename index template to location. 2016-07-07 08:29:57 -04:00
0dfb9b300f Finally remembered how to use Bootstrap grid to make home.hbs look right; use it as landing page for root URL. 2016-07-03 11:37:29 -04:00
9cb8094694 Some progress on landing page template...I'm exhausted and don't understand Bootstrap layout or CSS at all! 2016-07-02 14:47:00 -04:00
0245cd9fd1 New landing page template is improving, checking in new static assets and changes for favicon; favicon still not showing in chrome though. 2016-07-02 10:00:38 -04:00
550ab5605b S#1tty first draft of home page template. 2016-06-29 19:05:19 -04:00
f4052e5bb0 Re-order routes so '/' doesn't take precendence over /home; this bug fix was highly non-obvious to me. 2016-06-29 15:37:29 -04:00
dac79d3562 Move /home route to be first and now it works???...must research this. 2016-06-29 08:26:32 -04:00
06fcae38ef Try to load /home template for testing, but broken; can't even get a log entry generated for the route/endpoint. 2016-06-29 08:16:21 -04:00
c2c8624baa Add no-cache meta tags to default.hbs template; hoping to avoid issue I spotted where /tt and /tt/status were briefly showing different status values. 2016-02-05 12:09:18 -05:00
840be38dcf Hard code coreid to device don plans to use at rec center. 2016-02-05 10:19:53 -05:00
32f1d28eca Add done() calls to post handler so connection is returned to pool. Trying to fix 504 timeout errors from nginx. Initial testing looks good. 2016-02-02 08:28:05 -05:00
522c83b1db Add content-type header and JSON.stringify to JSON responder. 2016-01-13 18:44:33 -05:00
566dae354d Minimum functional handlers for /tt/ to return index.hbs and /tt/status/ to return JSON. 2016-01-13 14:49:54 -05:00
6099fbd24a Remove remaining sqlite code; do all logging thru winston. 2015-12-11 10:17:55 -05:00
fd746d5523 Fix dead-man check, postgres returns a rowCount of 0, unlike sqlite which returns an undefined object if no rows returned. 2015-12-10 12:54:47 -05:00
92adabcd47 Fix field names on index.hbs; removed rows w/NULL published_at values from DB (showed year=1969 on home page); update email code to be postgres-compliant. 2015-12-10 12:37:05 -05:00
11b4c05830 Change over to PostgreSQL; I think it's all working, still need to test POST/INSERT. 2015-12-09 22:48:31 -05:00
610dfd9cd6 Set max size for log files; move logs into folder; ignore logs folder. 2015-12-09 13:44:33 -05:00
1a6f5d39c4 Correct gmail pw; fix undefined check if dead-man query returns 0 rows. 2015-12-07 12:53:35 -05:00
a277177fb5 Fix setInterval timer function to send email if no messages received from device for given time threshold; this was really a bug with switching to the winston logging package; winston was needed since console.log not available outside of docker container; I was naively logging to the debug level which is below the level logged by winston by default :(. 2015-11-29 22:25:09 -05:00
e1c49bd4e8 Add winston for logging; ignore log files; setInterval still not working. 2015-11-20 11:04:36 -05:00
23c269dc79 Add 204 response to POST request. 2015-10-19 12:45:08 -04:00
5077b1436d Test curl data in format to be sent from cell modem now going into DB. 2015-10-18 17:18:03 -04:00
31a7cc6517 Enable email setup, even though most email code still commented out; at least server still runs. 2015-09-24 18:55:11 -04:00
17a701ea5f Fix Check Again button in Firefox (but found by Don); apparently window.history.go(0) doesn't behave the same in chrome and FF. 2015-09-20 14:39:35 -04:00
cf8a9cd6b2 Add 15min buffer to avoid false positives, got an alert email when allOk messages were 6hrs9min apart. 2015-09-17 11:24:43 -04:00
fed4ef6624 Clean up bash comments. 2015-09-15 11:02:57 -04:00
a160499506 Add bash script to be called by cron to send alert when it's been more than 6hrs since last POST from device. Still need comments in script, and to figure out how to get cron sending external emails. 2015-09-14 18:16:52 -04:00
a3990d708f Fix qry for open/closed statuses, allOk msgs ignored, hard-code on 'Open' and 'Closed' apparently sqlite is case-sensitive by default. 2015-09-12 12:30:14 -04:00
df881fa389 Add refresh button to index.hbs, closes #14. 2015-09-05 15:22:08 -04:00
eb679b8898 Add js timer with 1min interval to refresh page, relates to issue #14. 2015-09-03 11:34:47 -04:00
e90141a070 Add visual cues suggested by Don. 2015-08-28 13:08:36 -04:00
7c8c3c0189 Remove extra server endpoints, closes #13. 2015-08-27 13:35:18 -04:00
81ed5d154f Remove un-needed templates; add color styles to status messages, closes #12. 2015-08-27 13:31:17 -04:00
ccfdce32b0 Convert UTC dates/times to local times. 2015-08-25 17:32:05 -04:00
f43d6a9d19 Basic GET listener at root in server.js; basic index.hbs template. 2015-08-25 14:02:23 -04:00
5595dd474f Copied files from alertmon, replaced names where needed; runs but doesn't yet make sense for courtsopen project. 2015-08-23 16:55:15 -04:00
5363542936 Add some real text to README. 2015-08-20 14:47:05 -04:00
880f270825 Initial commit, add README. 2015-08-20 14:45:16 -04:00