commit 5a52f49b1b30e5ff53bde9f2f6ade049d350612e
Author: dsorber <david.sorber@gmail.com>
Date:   Sun Apr 28 16:25:25 2013 -0400

    It would help if I spelled the acronym right...

diff --git a/525.743/code/web/README b/525.743/code/web/README
index 5857634..b5dc383 100644
--- a/525.743/code/web/README
+++ b/525.743/code/web/README
@@ -1,6 +1,6 @@
 1. Install apache and mod_wsgi.
 2. Add this line to your apache config file
 
-WSGIScriptAlias /bcfs /path/to/web/folder/app.wsgi
+WSGIScriptAlias /bfcs /path/to/web/folder/app.wsgi
 
-3. Restart apache and you should be able to see BCFS web display at "/bcfs".
\ No newline at end of file
+3. Restart apache and you should be able to see BCFS web display at "/bfcs".
\ No newline at end of file
diff --git a/525.743/code/web/app.wsgi b/525.743/code/web/app.wsgi
index 596a3a8..f9a80ed 100644
--- a/525.743/code/web/app.wsgi
+++ b/525.743/code/web/app.wsgi
@@ -1,9 +1,12 @@
+import os
 import sqlite3
 
 from genshi.template import TemplateLoader
 from genshi.template.base import Context
 
-DB_PATH = '/home/dsorber/bcfs/beer_temps.db'
+BASE_PATH = '/home/dsorber/bfcs'
+DB_PATH = os.path.join(BASE_PATH, 'beer_temps.db')
+TEMPLATE_PATH = os.path.join(BASE_PATH, 'templates')
 
 # It accepts two arguments:
 # environ points to a dictionary containing CGI like environment variables
@@ -13,11 +16,7 @@ DB_PATH = '/home/dsorber/bcfs/beer_temps.db'
 
 def application(environ, start_response):
 
-    loader = TemplateLoader('/home/dsorber/bcfs/templates',
-                            auto_reload=True)
-
-    # Testing purposes only -- REMOVE BEFORE SHIPPING
-    response_body = 'The environ dict: %s' % environ['PATH_INFO']
+    loader = TemplateLoader(TEMPLATE_PATH, auto_reload=True)
 
     if not environ['PATH_INFO']:
         # Load the index template
@@ -65,7 +64,7 @@ def application(environ, start_response):
         # grab the results, then close the DB connection.
         db_conn = sqlite3.connect(DB_PATH)
         db = db_conn.cursor()
-        db.execute("select strftime('%m/%d/%Y %H:%M:%S', ts, 'unixepoch'), "
+        db.execute("select strftime('%H:%M:%S', ts, 'unixepoch'), "
                    "       temp1, temp2, temp3, temp4, relay_status "
                    "from temp_data "
                    "where date(ts, 'unixepoch') is date('2013-04-22')"
diff --git a/525.743/code/web/templates/day.html b/525.743/code/web/templates/day.html
index ebe4371..c7bf23f 100644
--- a/525.743/code/web/templates/day.html
+++ b/525.743/code/web/templates/day.html
@@ -37,7 +37,7 @@
 <h1>${title}</h1>
 <table>
 	<tr>
-		<th>Datetime</th>
+		<th>Time</th>
 		<th class="sensor1">Sensor 1</th>
 		<th class="sensor2">Sensor 2</th>
 		<th class="sensor3">Sensor 3</th>
@@ -45,7 +45,7 @@
 		<th class="max">Relay Status</th>
 	</tr>
 	<tr py:for="ctr, row in enumerate(results)" class="${ctr % 2 and 'odd' or 'even'}">
-		<td><a href="bcfs/day/${row[0][3:5] + row[0][0:2] + row[0][6:10]}">${row[0]}</a></td>
+		<td>${row[0]}</td>
 		<td class="center">${row[1]}</td>
 		<td class="center">${row[2]}</td>
 		<td class="center">${row[3]}</td>
diff --git a/525.743/code/web/templates/index.html b/525.743/code/web/templates/index.html
index 971d587..9d724b8 100644
--- a/525.743/code/web/templates/index.html
+++ b/525.743/code/web/templates/index.html
@@ -59,7 +59,7 @@
 		<th class="min">Min</th>
 	</tr>
 	<tr py:for="ctr, row in enumerate(results)" class="${ctr % 2 and 'odd' or 'even'}">
-		<td><a href="bcfs/day/${row[0][3:5] + row[0][0:2] + row[0][6:10]}">${row[0]}</a></td>
+		<td><a href="bfcs/day/${row[0][3:5] + row[0][0:2] + row[0][6:10]}">${row[0]}</a></td>
 		<td class="center">${row[1]}</td>
 		<td class="center">${round(float(row[2]), 3)}</td>
 		<td class="center">${row[3]}</td>
