'0';}
if (isset($_REQUEST['solar'])) {$haveSolar = $_REQUEST['solar'] <> '0';}
?>
Trends as of
TIME |
TEMP |
WIND SPEED |
WIND GUST |
WIND DIR |
HUMIDITY % |
PRESSURE |
RAIN |
Current |
42.0 |
9.2 |
12.7 |
NW |
73 |
30.143 |
0.00 |
5 minutes ago |
42.1 |
10.4 |
11.5 |
NW |
75 |
30.139 |
0.00 |
10 minutes ago |
42.0 |
11.5 |
12.7 |
NW |
74 |
30.135 |
0.00 |
15 minutes ago |
42.0 |
9.2 |
11.5 |
NW |
77 |
30.138 |
0.00 |
20 minutes ago |
41.9 |
8.1 |
11.5 |
NW |
76 |
30.139 |
0.00 |
30 minutes ago |
42.0 |
8.1 |
11.5 |
NW |
75 |
30.139 |
0.00 |
45 minutes ago |
42.2 |
9.2 |
12.7 |
NW |
75 |
30.135 |
0.00 |
60 minutes ago |
42.4 |
10.4 |
13.8 |
NW |
73 |
30.133 |
0.00 |
75 minutes ago |
42.4 |
11.5 |
13.8 |
NW |
75 |
30.132 |
0.00 |
90 minutes ago |
42.1 |
15.0 |
17.3 |
NW |
77 |
30.125 |
0.00 |
105 minutes ago |
41.7 |
15.0 |
17.3 |
NW |
77 |
30.123 |
0.00 |
120 minutes ago |
41.4 |
15.0 |
18.4 |
NW |
80 |
30.122 |
0.00 |
Records and Stats
RAIN |
RAIN HISTORY |
Today |
( last hour) |
Today |
4 day(s) since last rain on
|
Yest. |
|
Week |
over last 7 days. |
Month |
(0 rain day(s) this month) |
Month |
last month. |
Year |
(20 rain day(s) this year) |
Year |
total last year at this time. |
TEMPERATURE HIGHS |
HOT DAYS THIS MONTH |
Today |
at |
Max > |
0 day(s) |
Yest. |
at |
Max > |
0 day(s) |
Month |
on
|
Warmest day |
|
Year |
on
|
Warmest night |
|
TEMPERATURE LOWS |
COLD DAYS THIS MONTH |
Today |
at |
Min < |
0 day(s) |
Yest. |
at |
Min < |
0 day(s) |
Month |
on
|
Coldest day |
|
Year |
on
|
Coldest night |
|
BAROMETER HIGHS |
WIND CHILL LOWS |
Today |
at |
Today |
at |
Yest. |
at |
Yest. |
at |
Month |
on
|
Month |
on
|
Year |
on
|
Year |
on
|
EVAPOTRANSPIRATION |
RAIN |
Today |
|
Today |
|
Yest. |
|
Yest. |
|
Month |
|
Month |
|
SOLAR HIGHS |
UV HIGHS |
Today |
0 W/m2 at |
Today |
0.0 index at |
Yest. |
0.0 W/m2 at |
Yest. |
0.0 index at |
Wind Data
CURRENT |
 |
Now |
NW |
Gust |
NW |
Gust/hr |
|
WIND GUST HIGHS |
Today |
NW at |
Yest. |
at |
Month |
on
|
Year |
on
|
WIND GUST AVERAGE HIGHS |
Today |
NW at
|
Yest. |
at |
Month |
on
|
Year |
on
|
WIND RUN |
Today |
|
Month |
|
Year |
|
23) {$t[0] = 12; }
if (preg_match('/^12.*am/i',$WDtime)) { $t[0] = 0; }
$t2 = join(':',$t); // put time back to gether;
$t2 = preg_replace('/[^\d\:]/is','',$t2); // strip out the am/pm if any
$r = date($timeOnlyFormat , strtotime($t2));
if ($DebugMode) {
$r = "" . $r;
$r = '' . $r . '';
}
return ($r);
}
//=========================================================================
// strip trailing units from a measurement
// i.e. '30.01 in. Hg' becomes '30.01'
function unUnit ($data) {
global $DebugMode;
preg_match('/([\d\.\,\+\-]+)/',$data,$t);
$r = $t[1];
if ($DebugMode) {
$r = "" . $r;
$r = '' . $r . '';
}
return ($r);
}
//=========================================================================
// adjust WD date to desired format
//
function adjustWDdate ($WDdate) {
global $timeFormat,$timeOnlyFormat,$dateOnlyFormat,$WDdateMDY,$DebugMode;
$d = split('/',$WDdate);
if ($d[2] > 70 and $d[2] <= 99) {$d[2] += 1900;} // 2 digit dates 70-99 are 1970-1999
if ($d[2] < 99) {$d[2] += 2000; } // 2 digit dates (left) are assumed 20xx dates.
if ($WDdateMDY) {
$new = sprintf('%04d-%02d-%02d',$d[2],$d[0],$d[1]); // M/D/YYYY -> YYYY-MM-DD
} else {
$new = sprintf('%04d-%02d-%02d',$d[2],$d[1],$d[0]); // D/M/YYYY -> YYYY-MM-DD
}
$r = date($dateOnlyFormat,strtotime($new));
if ($DebugMode) {
$r = "" . $r;
$r = '' . $r . '';
}
return ($r);
}
//=========================================================================
// formatDate from Y, M, D
//
function formatDateYMD ( $Y, $M, $D) {
global $timeFormat,$timeOnlyFormat,$dateOnlyFormat,$WDdateMDY,$DebugMode;
$t = mktime(0,0,0,$M,$D,$Y);
$r = date($dateOnlyFormat,$t);
if ($DebugMode) {
$r = "" . $r;
$r = '' . $r . '';
}
return ($r);
}
//=========================================================================
// format weather record like:
// '56.1°F on: Mar 01 2008'
// '22.5°C on: 01 Mar 2008'
// to using the uom values and date format
//
function reformatRecord ( $record ) {
global $uomTemp,$timeFormat,$timeOnlyFormat,$dateOnlyFormat,$WDdateMDY,$DebugMode;
// old: preg_match('|(.*?)\°(.*)\s+on\:\s+(\S+) (\S+) (\S+)|is',$record,$vals);
preg_match('|([\d\,\.\-]+)[\°]*(.*)\s+on\:\s+(\S+) (\S+) (\S+)|is',$record,$vals);
/*
[0] => 62.3°F on: Mar 03 2008
[1] => 62.3
[2] => F
[3] => Mar
[4] => 03
[5] => 2008
*/
$t = '';
if ($DebugMode) {
$t = "\n";
}
$d = $vals[3] . ' ' . $vals[4] . ' ' . $vals[5];
$d = date($dateOnlyFormat,strtotime($d));
$r = $t . $vals[1] . ' ' . $uomTemp . ' on ' . $d;
if ($DebugMode) {
$r = '' . $r . '';
}
return ($r);
}
?>