'0';}
if (isset($_REQUEST['solar'])) {$haveSolar = $_REQUEST['solar'] <> '0';}
?>
Trends as of
| TIME |
TEMP |
WIND SPEED |
WIND GUST |
WIND DIR |
HUMIDITY % |
PRESSURE |
RAIN |
| Current |
11.8 |
4.6 |
6.9 |
S |
86 |
1009.0 |
15.4 |
| 5 minutes ago |
11.9 |
4.6 |
6.9 |
SSE |
88 |
1009.0 |
15.4 |
| 10 minutes ago |
11.8 |
4.6 |
4.6 |
SSE |
89 |
1009.0 |
15.4 |
| 15 minutes ago |
11.7 |
4.6 |
4.6 |
SSE |
89 |
1009.0 |
15.4 |
| 20 minutes ago |
11.8 |
3.5 |
4.6 |
SSE |
89 |
1009.0 |
15.4 |
| 30 minutes ago |
11.8 |
4.6 |
8.1 |
SSE |
91 |
1009.0 |
15.4 |
| 45 minutes ago |
11.7 |
3.5 |
8.1 |
S |
92 |
1009.0 |
15.4 |
| 60 minutes ago |
11.6 |
4.6 |
5.8 |
S |
92 |
1009.0 |
15.4 |
| 75 minutes ago |
11.2 |
5.8 |
8.1 |
SSE |
95 |
1009.0 |
15.4 |
| 90 minutes ago |
11.0 |
4.6 |
5.8 |
SSW |
96 |
1008.0 |
15.4 |
| 105 minutes ago |
10.9 |
4.6 |
8.1 |
SE |
98 |
1008.0 |
15.4 |
| 120 minutes ago |
10.8 |
4.6 |
5.8 |
SSE |
98 |
1008.0 |
15.4 |
Records and Stats
| RAIN |
RAIN HISTORY |
| Today |
( last hour) |
Today |
0 day(s) since last rain on
|
| Yest. |
|
Week |
over last 7 days. |
| Month |
(8 rain day(s) this month) |
Month |
last month. |
| Year |
(57 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 |
-1 W/m2 at |
Today |
2.0 index at |
| Yest. |
-1.0 W/m2 at |
Yest. |
3.0 index at |
Wind Data
| CURRENT |
 |
| Now |
SW |
| Gust |
SW |
| Gust/hr |
|
| WIND GUST HIGHS |
| Today |
SE at |
| Yest. |
at |
| Month |
on
|
| Year |
on
|
| WIND GUST AVERAGE HIGHS |
| Today |
S 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);
}
?>