Hardware Reference
In-Depth Information
except db.Error, e:
print "<!DOCTYPE html><head><meta http-equiv='refresh' content='15'></
head>Error %s:</html>" % e.args[0]
sys.exit(1)
finally:
if con:
con.close()
template = "<!DOCTYPE html>\n"
template += "<html><head><meta http-equiv='refresh' content='5'><ti
tle>First Library in Space</title>\n" # EDIT REFRESH TIME HERE
template += "<link href='styles.css' rel='stylesheet' type='text/css'>\n"
template += "</head><body>\n"
template += '<div id="content">\n'
# ENTER CALL SIGN HERE:
template += '<div id="page-header"><h2>First Library in Space/July 10,
2013</h2></div>'
template += '<img id="idimage" src="latest.jpg">'
template += '<div id="statbox">'
template += '<p>AK4CH</p>'
template += "<br>\n"
template += '<p>'
template += (rows[0][3])[11:19] # Chopping off date
template += "</p>\n"
template += '<p>N '
template += (str(rows[0][0]))[:7] # Truncating
template += "</p>\n"
template += '<p> W '
template += (str(abs(rows[0][1])))[:7] # Truncating
template += "</p>\n"
template += '<p>A: '
template += str(int(rows[0][2]))[:10]
template += "'</p>\n"
Search WWH ::




Custom Search