var xzero = 20, yzero = 20;
var cold_d = [], hot_d = [];
+ function showdate(utime) {
+ var dt = new Date(utime*1000);
+ return dt.toLocaleDateString() + " " + dt.toLocaleTimeString();
+ }
+
function getcomb(lo, hi) {
var comb = [], lb = [];
var d = hi - lo;
(data.current.hot / 100).toFixed(2);
tmin = data.range.lo;
tmax = data.range.hi;
+ dbg.innerHTML = "from " + tmin + " to " + tmax
+ + "<br>from " + showdate(tmin) + " to " + showdate(tmax);
/* differetiate() updates hmax */
hmax = 0;
cold_d = differentiate(data.cold);
}
function sendquery(lo, hi) {
- var url = "query.cgi" + "?lo=" + iso2qu(lo) + "&" + iso2qu(hi);
+ var url = "query.cgi" + "?lo=" + iso2qu(lo) + "&hi=" + iso2qu(hi);
//dbg.innerHTML = url;
xmlhttp.onreadystatechange = function() {
}
</script>
<style>
+@font-face {
+ font-family: PipeDream;
+ src: url('PIPED.TTF') format('truetype');
+ /* Free to use font from http://www.mlink.net/~paterson/jpfonts.htm */
+}
h1 {
+ margin-top: 5px;
text-align: center;
+ font-family: PipeDream;
+ font-size: 64px;
+ font-weight: normal;
+ background-color: lightgray;
}
br {
clear: both;
</style>
<title>Water Meters</title>
</head><body>
-<h1>Water Meters</h1>
+<h1>WATER METERS</h1>
<div id="currentvals">
Current Values
<div class="current" id="cold">cold</div>