phphtmllib-devel Mailing List for phpHtmlLib (Page 7)
Status: Beta
Brought to you by:
hemna
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(33) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
(3) |
Jun
(1) |
Jul
(10) |
Aug
(5) |
Sep
|
Oct
|
Nov
(2) |
Dec
(5) |
2004 |
Jan
(1) |
Feb
(8) |
Mar
(139) |
Apr
(65) |
May
(32) |
Jun
(55) |
Jul
(21) |
Aug
(60) |
Sep
(43) |
Oct
(1) |
Nov
(18) |
Dec
(34) |
2005 |
Jan
(25) |
Feb
(2) |
Mar
(49) |
Apr
(13) |
May
(40) |
Jun
(22) |
Jul
(21) |
Aug
(59) |
Sep
(178) |
Oct
(54) |
Nov
(3) |
Dec
(49) |
2006 |
Jan
(21) |
Feb
(1) |
Mar
(5) |
Apr
(29) |
May
(86) |
Jun
(79) |
Jul
(52) |
Aug
(127) |
Sep
(187) |
Oct
(90) |
Nov
(61) |
Dec
(48) |
2007 |
Jan
(79) |
Feb
(136) |
Mar
(58) |
Apr
(139) |
May
(293) |
Jun
(112) |
Jul
(138) |
Aug
(112) |
Sep
(148) |
Oct
(76) |
Nov
(29) |
Dec
(66) |
2008 |
Jan
(45) |
Feb
(60) |
Mar
(119) |
Apr
(169) |
May
(172) |
Jun
(136) |
Jul
(107) |
Aug
(114) |
Sep
(104) |
Oct
(26) |
Nov
(50) |
Dec
(48) |
2009 |
Jan
(9) |
Feb
(35) |
Mar
(22) |
Apr
(43) |
May
(83) |
Jun
(68) |
Jul
(58) |
Aug
(21) |
Sep
(23) |
Oct
(62) |
Nov
(36) |
Dec
(26) |
2010 |
Jan
(16) |
Feb
(83) |
Mar
(73) |
Apr
(51) |
May
(76) |
Jun
(96) |
Jul
(70) |
Aug
(33) |
Sep
(10) |
Oct
(1) |
Nov
(2) |
Dec
|
2011 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(12) |
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(3) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(1) |
2014 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
(2) |
Nov
(3) |
Dec
|
2015 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <he...@us...> - 2010-02-27 01:25:41
|
Revision: 3389 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3389&view=rev Author: hemna Date: 2010-02-27 00:56:51 +0000 (Sat, 27 Feb 2010) Log Message: ----------- make sure the title has something Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/WebCam.inc Modified: trunk/open2300/lib/modules/home/widgets/WebCam.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/WebCam.inc 2010-02-27 00:55:51 UTC (rev 3388) +++ trunk/open2300/lib/modules/home/widgets/WebCam.inc 2010-02-27 00:56:51 UTC (rev 3389) @@ -49,6 +49,8 @@ $cam_title_div->add(" "); $nowtime = date("H:i:s"); $cam_title_div->add(new SPANtag(array('id' => 'idWebCamFlasUpdate', 'style' => 'font-size: .7em'), "(Updated ".$filetime." )")); + } else { + $cam_title_div->add(" "); } //$cam_title_div->add($cal_div, $cam_calendar_icon); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 19:33:15
|
Revision: 3387 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3387&view=rev Author: hemna Date: 2010-02-26 19:33:08 +0000 (Fri, 26 Feb 2010) Log Message: ----------- fixed times for low/highs Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/TickerConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 18:05:07 UTC (rev 3386) +++ trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 19:33:08 UTC (rev 3387) @@ -51,7 +51,7 @@ //TEMPERATURE $sql = "select min(temp_out) as low, ". "(select max(datetime) from weather where temp_out=". - "(select max(temp_out) from weather where datetime like :date) and datetime like :date)". + "(select min(temp_out) from weather where datetime like :date) and datetime like :date)". " as datetime from weather where datetime like :date"; $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%'), 60); $this->temp_low_high["low"] = $stmt->low; @@ -80,7 +80,7 @@ $sql = "select min(rel_hum_out) as low, ". "(select max(datetime) from weather where rel_hum_out=". - "(select max(rel_hum_out) from weather where datetime like :date) and datetime like :date)". + "(select min(rel_hum_out) from weather where datetime like :date) and datetime like :date)". " as datetime from weather where datetime like :date"; $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%'), 60); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 19:11:46
|
Revision: 3386 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3386&view=rev Author: hemna Date: 2010-02-26 18:05:07 +0000 (Fri, 26 Feb 2010) Log Message: ----------- use new banner dirs and morning_rain.jpg Modified Paths: -------------- trunk/open2300/htdocs/css/main.css Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2010-02-26 18:04:35 UTC (rev 3385) +++ trunk/open2300/htdocs/css/main.css 2010-02-26 18:05:07 UTC (rev 3386) @@ -18,7 +18,7 @@ background-color: #AFB5FF; width: 100%; height:150px; - background: url('/images/banners/winter_sunset_partly.jpg') no-repeat top center; + background: url('/images/banners/winter/morning_rain.jpg') no-repeat top center; } #headtopleft { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 18:04:41
|
Revision: 3385 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3385&view=rev Author: hemna Date: 2010-02-26 18:04:35 +0000 (Fri, 26 Feb 2010) Log Message: ----------- renamed Added Paths: ----------- trunk/open2300/htdocs/images/banners/winter/morning_rain.jpg Removed Paths: ------------- trunk/open2300/htdocs/images/banners/winter/rain_morning.jpg Copied: trunk/open2300/htdocs/images/banners/winter/morning_rain.jpg (from rev 3381, trunk/open2300/htdocs/images/banners/winter/rain_morning.jpg) =================================================================== (Binary files differ) Deleted: trunk/open2300/htdocs/images/banners/winter/rain_morning.jpg =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 18:03:48
|
Revision: 3384 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3384&view=rev Author: hemna Date: 2010-02-26 18:03:42 +0000 (Fri, 26 Feb 2010) Log Message: ----------- moved Added Paths: ----------- trunk/open2300/htdocs/images/banners/summer/midday_partly.jpg Removed Paths: ------------- trunk/open2300/htdocs/images/banners/pano_cropped_banner1.jpg Deleted: trunk/open2300/htdocs/images/banners/pano_cropped_banner1.jpg =================================================================== (Binary files differ) Copied: trunk/open2300/htdocs/images/banners/summer/midday_partly.jpg (from rev 3370, trunk/open2300/htdocs/images/banners/pano_cropped_banner1.jpg) =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 18:02:29
|
Revision: 3383 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3383&view=rev Author: hemna Date: 2010-02-26 18:02:23 +0000 (Fri, 26 Feb 2010) Log Message: ----------- moved Added Paths: ----------- trunk/open2300/htdocs/images/banners/winter/sunrise_partly.jpg Removed Paths: ------------- trunk/open2300/htdocs/images/banners/pano_banner_winter2.jpg Deleted: trunk/open2300/htdocs/images/banners/pano_banner_winter2.jpg =================================================================== (Binary files differ) Copied: trunk/open2300/htdocs/images/banners/winter/sunrise_partly.jpg (from rev 3370, trunk/open2300/htdocs/images/banners/pano_banner_winter2.jpg) =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 18:01:32
|
Revision: 3382 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3382&view=rev Author: hemna Date: 2010-02-26 18:01:26 +0000 (Fri, 26 Feb 2010) Log Message: ----------- moved Added Paths: ----------- trunk/open2300/htdocs/images/banners/winter/sunset_partly.jpg Removed Paths: ------------- trunk/open2300/htdocs/images/banners/winter_sunset_partly.jpg Copied: trunk/open2300/htdocs/images/banners/winter/sunset_partly.jpg (from rev 3369, trunk/open2300/htdocs/images/banners/winter_sunset_partly.jpg) =================================================================== (Binary files differ) Deleted: trunk/open2300/htdocs/images/banners/winter_sunset_partly.jpg =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 18:00:41
|
Revision: 3381 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3381&view=rev Author: hemna Date: 2010-02-26 18:00:35 +0000 (Fri, 26 Feb 2010) Log Message: ----------- renamed Added Paths: ----------- trunk/open2300/htdocs/images/banners/winter/rain_morning.jpg Removed Paths: ------------- trunk/open2300/htdocs/images/banners/winter/pano_winter_rain.jpg Deleted: trunk/open2300/htdocs/images/banners/winter/pano_winter_rain.jpg =================================================================== (Binary files differ) Copied: trunk/open2300/htdocs/images/banners/winter/rain_morning.jpg (from rev 3380, trunk/open2300/htdocs/images/banners/winter/pano_winter_rain.jpg) =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 18:00:06
|
Revision: 3380 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3380&view=rev Author: hemna Date: 2010-02-26 18:00:00 +0000 (Fri, 26 Feb 2010) Log Message: ----------- moved Added Paths: ----------- trunk/open2300/htdocs/images/banners/winter/pano_winter_rain.jpg Removed Paths: ------------- trunk/open2300/htdocs/images/banners/fall/pano_winter_rain.jpg Deleted: trunk/open2300/htdocs/images/banners/fall/pano_winter_rain.jpg =================================================================== (Binary files differ) Copied: trunk/open2300/htdocs/images/banners/winter/pano_winter_rain.jpg (from rev 3379, trunk/open2300/htdocs/images/banners/fall/pano_winter_rain.jpg) =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 17:59:37
|
Revision: 3379 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3379&view=rev Author: hemna Date: 2010-02-26 17:59:31 +0000 (Fri, 26 Feb 2010) Log Message: ----------- added dirs Added Paths: ----------- trunk/open2300/htdocs/images/banners/fall/ trunk/open2300/htdocs/images/banners/fall/pano_winter_rain.jpg trunk/open2300/htdocs/images/banners/spring/ trunk/open2300/htdocs/images/banners/summer/ trunk/open2300/htdocs/images/banners/winter/ Added: trunk/open2300/htdocs/images/banners/fall/pano_winter_rain.jpg =================================================================== (Binary files differ) Property changes on: trunk/open2300/htdocs/images/banners/fall/pano_winter_rain.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 16:25:33
|
Revision: 3378 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3378&view=rev Author: hemna Date: 2010-02-26 16:25:22 +0000 (Fri, 26 Feb 2010) Log Message: ----------- fixed queries Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/TickerConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 07:24:25 UTC (rev 3377) +++ trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 16:25:22 UTC (rev 3378) @@ -49,26 +49,40 @@ $today = date("Y-m-d"); //TEMPERATURE - $stmt = $db->queryBindOneRowCache("Select min(temp_out) as low, datetime from weather where datetime like :date", - array(":date" => $today.'%'), 60*5); + $sql = "select min(temp_out) as low, ". + "(select max(datetime) from weather where temp_out=". + "(select max(temp_out) from weather where datetime like :date) and datetime like :date)". + " as datetime from weather where datetime like :date"; + $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%'), 60); $this->temp_low_high["low"] = $stmt->low; $this->temp_low_high["low_str"] = $colds.$stmt->low. "°F".$colde." at " . substr($stmt->datetime,10); - $stmt = $db->queryBindOneRowCache("Select max(temp_out) as high, datetime from weather where datetime like :date", - array(":date" => $today.'%'), 60*5); + + $sql = "select max(temp_out) as high, ". + "(select max(datetime) from weather where temp_out=". + "(select max(temp_out) from weather where datetime like :date) and datetime like :date)". + " as datetime from weather where datetime like :date"; + $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%'), 60); $this->temp_low_high["high"] = $stmt->high; $this->temp_low_high["high_str"] = $hots.$stmt->high . "°F".$hote." at " . substr($stmt->datetime,10); //HUMIDITY - $stmt = $db->queryBindOneRowCache("Select max(rel_hum_out) as high, datetime from weather where datetime like :date", - array(":date" => $today.'%'), 60*5); + $sql = "select max(rel_hum_out) as high, ". + "(select max(datetime) from weather where rel_hum_out=". + "(select max(rel_hum_out) from weather where datetime like :date) and datetime like :date)". + " as datetime from weather where datetime like :date"; + $stmt = $db->queryBindOneRowCache($sql, + array(":date" => $today.'%'), 60); $this->temp_low_high["high_hum"] = $stmt->high; $this->temp_low_high["high_hum_str"] = $hots.$stmt->high . "%".$hote." at " . substr($stmt->datetime,10); - $stmt = $db->queryBindOneRowCache("Select min(rel_hum_out) as low, datetime from weather where datetime like :date", - array(":date" => $today.'%'), 60*5); + $sql = "select min(rel_hum_out) as low, ". + "(select max(datetime) from weather where rel_hum_out=". + "(select max(rel_hum_out) from weather where datetime like :date) and datetime like :date)". + " as datetime from weather where datetime like :date"; + $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%'), 60); $this->temp_low_high["low_hum"] = $stmt->low; $this->temp_low_high["low_hum_str"] = $colds.$stmt->low . "%".$colde." at " . substr($stmt->datetime,10); @@ -85,7 +99,7 @@ //WIND $stmt = $db->queryBindOneRowCache("Select avg(wind_speed) as average from weather where datetime like :date", - array(":date" => $today.'%'), 60*5); + array(":date" => $today.'%'), 60); $this->wind['average'] = sprintf("%0.2f",$stmt->average); //get the peak winds @@ -93,7 +107,7 @@ $sql = "select datetime,wind_speed, wind_angle, wind_direction from weather where ". "wind_speed = (select max(wind_speed) from weather where datetime like :date) ". "and datetime like :date2"; - $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%',":date2" => $today.'%'), 60*5); + $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%',":date2" => $today.'%'), 60); $log->debug(var_export($stmt,true)); $this->peak_wind['speed'] = $stmt->wind_speed; $this->peak_wind['angle'] = $stmt->wind_angle; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:24:31
|
Revision: 3377 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3377&view=rev Author: hemna Date: 2010-02-26 07:24:25 +0000 (Fri, 26 Feb 2010) Log Message: ----------- fixed length access Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:22:43 UTC (rev 3376) +++ trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:24:25 UTC (rev 3377) @@ -23,7 +23,7 @@ clength = ticker_data.middle.length; rlength = ticker_data.right.length; - if (ci >= clength) { + if (ci >= clength-1) { ci = 0; } @@ -32,7 +32,7 @@ Effect.Appear('headtopcenter', {duration: 0.5}); }}); - if (ri >= rlength) { + if (ri >= rlength-1) { ri = 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:22:49
|
Revision: 3376 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3376&view=rev Author: hemna Date: 2010-02-26 07:22:43 +0000 (Fri, 26 Feb 2010) Log Message: ----------- js Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:22:16 UTC (rev 3375) +++ trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:22:43 UTC (rev 3376) @@ -55,5 +55,4 @@ ticker_data = eval('(' + req.responseText + ')'); } }); -} } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:22:26
|
Revision: 3375 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3375&view=rev Author: hemna Date: 2010-02-26 07:22:16 +0000 (Fri, 26 Feb 2010) Log Message: ----------- pulled time Modified Paths: -------------- trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc Modified: trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2010-02-26 07:17:15 UTC (rev 3374) +++ trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2010-02-26 07:22:16 UTC (rev 3375) @@ -74,7 +74,7 @@ $graph->Add($lineplot); $graph->Add($lineplot2); - $graph->title->Set("Temperature ".date("D, M d Y H:i:s", strtotime($this->date))); + $graph->title->Set("Temperature ".date("D, M d Y", strtotime($this->date))); //$graph->title->SetPos(300,100); $graph->yaxis->title->Set("Farhenheit"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:17:21
|
Revision: 3374 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3374&view=rev Author: hemna Date: 2010-02-26 07:17:15 +0000 (Fri, 26 Feb 2010) Log Message: ----------- fixed some small issues Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc trunk/open2300/lib/modules/home/widgets/TickerConditions.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-02-26 07:15:15 UTC (rev 3373) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-02-26 07:17:15 UTC (rev 3374) @@ -146,8 +146,8 @@ $table = TABLEtag::factory("1024",0,0,0,"center"); $table->add_row(new TDtag(array("id" => "headtopleft"), "Pilot Hill, CA Weather"), - new TDtag(array("id" => "headtopcenter"), "something"), - new TDtag(array("id" => "headtopright"), "nothing")); + new TDtag(array("id" => "headtopcenter"), ""), + new TDtag(array("id" => "headtopright"), "")); $table->add_row(new TDtag(array("id" => "pageheader", "colspan" => "3"), $header)); Modified: trunk/open2300/lib/modules/home/widgets/TickerConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 07:15:15 UTC (rev 3373) +++ trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 07:17:15 UTC (rev 3374) @@ -93,9 +93,7 @@ $sql = "select datetime,wind_speed, wind_angle, wind_direction from weather where ". "wind_speed = (select max(wind_speed) from weather where datetime like :date) ". "and datetime like :date2"; - $stmt = $db->queryBindOneRow($sql, - array(":date" => $today.'%', - ":date2" => $today.'%')); + $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%',":date2" => $today.'%'), 60*5); $log->debug(var_export($stmt,true)); $this->peak_wind['speed'] = $stmt->wind_speed; $this->peak_wind['angle'] = $stmt->wind_angle; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:15:24
|
Revision: 3373 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3373&view=rev Author: hemna Date: 2010-02-26 07:15:15 +0000 (Fri, 26 Feb 2010) Log Message: ----------- update now and 60 seconds from now Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:12:30 UTC (rev 3372) +++ trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:15:15 UTC (rev 3373) @@ -9,16 +9,11 @@ function start_ticker() { - set_orig_time(new Date()); + get_data(); + var data = new PeriodicalExecuter(function() { - new Ajax.Request("http://192.168.1.118/?target=ticker", - { method:'get', - asynchronous:true, - onSuccess: function(req,json) { - ticker_data = eval('(' + req.responseText + ')'); - } - }); - },5); + get_data(); + },60); var ticker = new PeriodicalExecuter(function() { @@ -49,6 +44,16 @@ ci++; ri++; } - },3); - + },3); +} + +function get_data() { + new Ajax.Request("http://wx.hemna.com/?target=ticker", + { method:'get', + asynchronous:true, + onSuccess: function(req,json) { + ticker_data = eval('(' + req.responseText + ')'); + } + }); +} } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:12:37
|
Revision: 3372 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3372&view=rev Author: hemna Date: 2010-02-26 07:12:30 +0000 (Fri, 26 Feb 2010) Log Message: ----------- ids for banner Modified Paths: -------------- trunk/open2300/htdocs/css/main.css Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2010-02-26 07:12:12 UTC (rev 3371) +++ trunk/open2300/htdocs/css/main.css 2010-02-26 07:12:30 UTC (rev 3372) @@ -18,9 +18,38 @@ background-color: #AFB5FF; width: 100%; height:150px; - background: url('/images/pano_banner_winter2.jpg') no-repeat top center; + background: url('/images/banners/winter_sunset_partly.jpg') no-repeat top center; } +#headtopleft { + font-size: 1em; + font-weight: bold; + padding-bottom:2px; + width:165px; +} + +#headtopcenter { + font-size: .8em; + font-weight: normal; + padding-bottom:2px; + text-align: left; + width:250px; +} + +#headtopright { + font-size: .9em; + font-weight: bold; + text-align: right; + padding-bottom:2px; + width: 100px; +} +.cold { + color: blue; +} +.hot { + color: red; +} + #idPageHeadText { width: 100%; text-align:center; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:12:18
|
Revision: 3371 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3371&view=rev Author: hemna Date: 2010-02-26 07:12:12 +0000 (Fri, 26 Feb 2010) Log Message: ----------- added ticker Modified Paths: -------------- trunk/open2300/htdocs/js/main.js Added Paths: ----------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2010-02-26 07:11:41 UTC (rev 3370) +++ trunk/open2300/htdocs/js/main.js 2010-02-26 07:12:12 UTC (rev 3371) @@ -4,7 +4,6 @@ function start_updates() { - //init_calendar_popup(); set_orig_time(new Date()); var counter = new PeriodicalExecuter(function() { Added: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js (rev 0) +++ trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:12:12 UTC (rev 3371) @@ -0,0 +1,54 @@ +/** + * This file manages updating and showing the ticker + * above the banner image. + */ + +var ticker_data; +var ci=0; +var ri=0; + +function start_ticker() { + + set_orig_time(new Date()); + var data = new PeriodicalExecuter(function() { + new Ajax.Request("http://192.168.1.118/?target=ticker", + { method:'get', + asynchronous:true, + onSuccess: function(req,json) { + ticker_data = eval('(' + req.responseText + ')'); + } + }); + },5); + + + var ticker = new PeriodicalExecuter(function() { + if (ticker_data != undefined) { + //console.log("update ticker "+ci); + //console.log(ticker_data.middle); + clength = ticker_data.middle.length; + rlength = ticker_data.right.length; + + if (ci >= clength) { + ci = 0; + } + + Effect.Fade('headtopcenter', {duration: 0.5, afterFinish: function() { + $("headtopcenter").innerHTML = ticker_data.middle[ci]; + Effect.Appear('headtopcenter', {duration: 0.5}); + }}); + + if (ri >= rlength) { + ri = 0; + } + + Effect.Fade('headtopright', {duration: 0.5, afterFinish: function() { + $("headtopright").innerHTML = ticker_data.right[ri]; + Effect.Appear('headtopright', {duration: 0.5}); + }}); + + ci++; + ri++; + } + },3); + +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:11:47
|
Revision: 3370 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3370&view=rev Author: hemna Date: 2010-02-26 07:11:41 +0000 (Fri, 26 Feb 2010) Log Message: ----------- moved Added Paths: ----------- trunk/open2300/htdocs/images/banners/pano_banner_winter.jpg trunk/open2300/htdocs/images/banners/pano_banner_winter2.jpg trunk/open2300/htdocs/images/banners/pano_cropped_banner1.jpg Removed Paths: ------------- trunk/open2300/htdocs/images/pano_banner_winter.jpg trunk/open2300/htdocs/images/pano_banner_winter2.jpg trunk/open2300/htdocs/images/pano_cropped_banner1.jpg Copied: trunk/open2300/htdocs/images/banners/pano_banner_winter.jpg (from rev 3361, trunk/open2300/htdocs/images/pano_banner_winter.jpg) =================================================================== (Binary files differ) Copied: trunk/open2300/htdocs/images/banners/pano_banner_winter2.jpg (from rev 3364, trunk/open2300/htdocs/images/pano_banner_winter2.jpg) =================================================================== (Binary files differ) Copied: trunk/open2300/htdocs/images/banners/pano_cropped_banner1.jpg (from rev 3329, trunk/open2300/htdocs/images/pano_cropped_banner1.jpg) =================================================================== (Binary files differ) Deleted: trunk/open2300/htdocs/images/pano_banner_winter.jpg =================================================================== (Binary files differ) Deleted: trunk/open2300/htdocs/images/pano_banner_winter2.jpg =================================================================== (Binary files differ) Deleted: trunk/open2300/htdocs/images/pano_cropped_banner1.jpg =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:10:51
|
Revision: 3369 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3369&view=rev Author: hemna Date: 2010-02-26 07:10:45 +0000 (Fri, 26 Feb 2010) Log Message: ----------- new location for banners Added Paths: ----------- trunk/open2300/htdocs/images/banners/ trunk/open2300/htdocs/images/banners/winter_sunset_partly.jpg Added: trunk/open2300/htdocs/images/banners/winter_sunset_partly.jpg =================================================================== (Binary files differ) Property changes on: trunk/open2300/htdocs/images/banners/winter_sunset_partly.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:10:19
|
Revision: 3368 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3368&view=rev Author: hemna Date: 2010-02-26 07:10:13 +0000 (Fri, 26 Feb 2010) Log Message: ----------- added new ticker at the top Modified Paths: -------------- trunk/open2300/lib/autoload.inc trunk/open2300/lib/core/page/open2300Page.inc Added Paths: ----------- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2010-02-26 07:09:14 UTC (rev 3367) +++ trunk/open2300/lib/autoload.inc 2010-02-26 07:10:13 UTC (rev 3368) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2010-02-21T20:41:36-08:00 by AutoloadGenerator + * Generated on 2010-02-25T19:54:06-08:00 by AutoloadGenerator * * @package open2300 */ @@ -154,6 +154,7 @@ 'InfoTable'=>'external/phphtmllib/src/widgets/InfoTable.inc', 'InfoTableCSS'=>'external/phphtmllib/src/widgets/css/InfoTableCSS.inc', 'IP'=>'external/phphtmllib/src/misc/IP.inc', +'JSONWidget'=>'external/phphtmllib/src/widgets/JSONWidget.inc', 'Log'=>'external/phphtmllib/src/logging/Log.inc', 'LogEvent'=>'external/phphtmllib/src/logging/LogEvent.inc', 'LogFormatter'=>'external/phphtmllib/src/logging/LogFormatter.inc', @@ -234,6 +235,7 @@ 'TextCurrentConditions'=>'modules/home/widgets/TextCurrentConditions.inc', 'TextNav'=>'external/phphtmllib/src/widgets/TextNav.inc', 'TextNavCSS'=>'external/phphtmllib/src/widgets/css/TextNavCSS.inc', +'TickerConditions'=>'modules/home/widgets/TickerConditions.inc', 'Timer'=>'external/phphtmllib/src/misc/Timer.inc', 'TreeItemWidget'=>'external/phphtmllib/src/widgets/TreeItemWidget.inc', 'Validator'=>'external/phphtmllib/src/validation/Validator.inc', @@ -314,6 +316,7 @@ 'text'=>'TextCurrentConditions', 'text-c-s-s-nav'=>'TextCSSNav', 'text-nav'=>'TextNav', +'ticker'=>'TickerConditions', 'tree-item-w'=>'TreeItemWidget', 'vertical-c-s-s-nav-table'=>'VerticalCSSNavTable', 'weather-dl'=>'WeatherDataListPage', @@ -395,6 +398,7 @@ 'TextCurrentConditions'=>'text', 'TextCSSNav'=>'text-c-s-s-nav', 'TextNav'=>'text-nav', +'TickerConditions'=>'ticker', 'TreeItemWidget'=>'tree-item-w', 'VerticalCSSNavTable'=>'vertical-c-s-s-nav-table', 'WeatherDataListPage'=>'weather-dl', Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-02-26 07:09:14 UTC (rev 3367) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-02-26 07:10:13 UTC (rev 3368) @@ -42,6 +42,9 @@ const ID_NAV = 'leftBlock'; protected $centering_width = "500px"; + + + protected $include_ticker = true; /** * This is the constructor. @@ -122,20 +125,33 @@ $this->add_js_link( 'http://ajax.googleapis.com/ajax/libs/scriptaculous/1/scriptaculous.js' ); $this->add_js_link( '/js/ajax.js' ); $this->add_js_link( '/js/main.js' ); + $this->add_js_link( '/js/ticker.js' ); } protected function header_block() { - $header = new Container(); + $header = new Container(); + + + if ($this->include_ticker) { + $script = SCRIPTtag::factory(); + $script->add("Event.observe(window, 'load', start_ticker);"); + $header->add($script); + } + $header->add( new DIVtag(array('id' => 'idPageHeadText'),"Hemna's Weather Station"), new DIVtag(array('id' => 'idPageSubHeadText'),"Pilot Hill, CA") ); - $table = TABLEtag::factory("1024",0,0,0,"center"); + $table = TABLEtag::factory("1024",0,0,0,"center"); - $table->add_row(new TDtag(array("id" => "pageheader"), + $table->add_row(new TDtag(array("id" => "headtopleft"), "Pilot Hill, CA Weather"), + new TDtag(array("id" => "headtopcenter"), "something"), + new TDtag(array("id" => "headtopright"), "nothing")); + + $table->add_row(new TDtag(array("id" => "pageheader", "colspan" => "3"), $header)); - $table->add_row(new TDtag(array('id' => self::ID_MENU), $this->menu_block())); + $table->add_row(new TDtag(array('id' => self::ID_MENU, "colspan" => "3"), $this->menu_block())); return $table; } Added: trunk/open2300/lib/modules/home/widgets/TickerConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc (rev 0) +++ trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 07:10:13 UTC (rev 3368) @@ -0,0 +1,140 @@ +<?php +/** + * This file contains the CurrentConditions + * widget class. + */ + + + +class TickerConditions extends JSONWidget { + + const ID = "ticker"; + + /** + * This contains the current + * weatherDataObject for + * the conditions that you want to display + * + * @var weatherDataObject + */ + protected $wx; + + protected $rain_total; + + protected $temp_low_high = array("low" => 0, + "high" => 0); + + /** + * Class Constructor + * + */ + public function init() { + $log = Log::singleton(); + $hots = "<span class=\"hot\">"; + $hote = "</span>"; + $colds = "<span class=\"cold\">"; + $colde = "</span>"; + + + if ($wx == null) { + //we don't have the current conditions. + //we need to get them + $this->wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); + } else { + $this->wx = $wx; + } + + //load min max temps + $db = open2300DB::singleton(); + $today = date("Y-m-d"); + + //TEMPERATURE + $stmt = $db->queryBindOneRowCache("Select min(temp_out) as low, datetime from weather where datetime like :date", + array(":date" => $today.'%'), 60*5); + $this->temp_low_high["low"] = $stmt->low; + $this->temp_low_high["low_str"] = $colds.$stmt->low. "°F".$colde." at " . substr($stmt->datetime,10); + + $stmt = $db->queryBindOneRowCache("Select max(temp_out) as high, datetime from weather where datetime like :date", + array(":date" => $today.'%'), 60*5); + + $this->temp_low_high["high"] = $stmt->high; + $this->temp_low_high["high_str"] = $hots.$stmt->high . "°F".$hote." at " . substr($stmt->datetime,10); + + //HUMIDITY + $stmt = $db->queryBindOneRowCache("Select max(rel_hum_out) as high, datetime from weather where datetime like :date", + array(":date" => $today.'%'), 60*5); + + $this->temp_low_high["high_hum"] = $stmt->high; + $this->temp_low_high["high_hum_str"] = $hots.$stmt->high . "%".$hote." at " . substr($stmt->datetime,10); + + $stmt = $db->queryBindOneRowCache("Select min(rel_hum_out) as low, datetime from weather where datetime like :date", + array(":date" => $today.'%'), 60*5); + + $this->temp_low_high["low_hum"] = $stmt->low; + $this->temp_low_high["low_hum_str"] = $colds.$stmt->low . "%".$colde." at " . substr($stmt->datetime,10); + + + $year = date("Y"); + $stmt = $db->queryBindOneRowCache("Select rain_total from weather where datetime like :date order by datetime asc limit 0,1", + array(":date" => $year.'%')); + $year_rain_start = $stmt->rain_total; + + $this->rain_total = sprintf("%0.2f", $this->wx->get_rain_total() - $year_rain_start); + + + + //WIND + $stmt = $db->queryBindOneRowCache("Select avg(wind_speed) as average from weather where datetime like :date", + array(":date" => $today.'%'), 60*5); + $this->wind['average'] = sprintf("%0.2f",$stmt->average); + + //get the peak winds + //$db->set_debug_flag(true); + $sql = "select datetime,wind_speed, wind_angle, wind_direction from weather where ". + "wind_speed = (select max(wind_speed) from weather where datetime like :date) ". + "and datetime like :date2"; + $stmt = $db->queryBindOneRow($sql, + array(":date" => $today.'%', + ":date2" => $today.'%')); + $log->debug(var_export($stmt,true)); + $this->peak_wind['speed'] = $stmt->wind_speed; + $this->peak_wind['angle'] = $stmt->wind_angle; + $this->peak_wind['direction'] = $stmt->wind_direction; + $this->peak_wind['time'] = substr($stmt->datetime,10); + $log->debug("peak wind was ".$stmt->wind_speed); + } + + + + public function build_object() { + + $outside_temp = $this->wx->get_temp_out(); + $outside_tempC = WXConversion::fahrenheit_to_celsius($outside_temp); + + + $data = array(); + //the middle td + $data["middle"] = array("Last Update: ".$this->wx->get_datetime(), + "Low Temp: ".$this->temp_low_high["low_str"], + "High Temp: ".$this->temp_low_high["high_str"], + "Average Wind: ".$this->wind['average']."mph", + "Peak Wind ".$this->peak_wind['direction']." ". + $this->peak_wind['speed'].'mph@'.$this->peak_wind['angle']. + " ".$this->peak_wind['time'], + "Low Humidity: ".$this->temp_low_high["low_hum_str"], + "High Humidity: ".$this->temp_low_high["high_hum_str"]); + + //the right td + $data["right"] = array(date("G:i:s"), + $outside_temp."°F / ".$outside_tempC."°C", + $this->wx->get_wind_direction()." ".$this->wx->get_wind_speed().'mph@'.$this->wx->get_wind_angle(), + $this->wx->get_rel_pressure()." inHG", + "Humidity: ".$this->wx->get_rel_hum_out().'%', + "Rain 1h: ".$this->wx->get_rain_1h(), + "Rain 24h: ".$this->wx->get_rain_24h(), + "Rain Year: ".$this->rain_total); + + return $data; + } +} +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:09:20
|
Revision: 3367 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3367&view=rev Author: hemna Date: 2010-02-26 07:09:14 +0000 (Fri, 26 Feb 2010) Log Message: ----------- set the header Modified Paths: -------------- trunk/phphtmllib/src/widgets/JSONWidget.inc Modified: trunk/phphtmllib/src/widgets/JSONWidget.inc =================================================================== --- trunk/phphtmllib/src/widgets/JSONWidget.inc 2010-02-26 03:56:43 UTC (rev 3366) +++ trunk/phphtmllib/src/widgets/JSONWidget.inc 2010-02-26 07:09:14 UTC (rev 3367) @@ -23,7 +23,8 @@ } - public function render() { + public function render() { + header("Content-type:text/javascript"); $data = $this->build_object(); return json_encode($data); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 03:56:49
|
Revision: 3366 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3366&view=rev Author: hemna Date: 2010-02-26 03:56:43 +0000 (Fri, 26 Feb 2010) Log Message: ----------- Added JSONWidget Modified Paths: -------------- trunk/phphtmllib/CHANGELOG trunk/phphtmllib/src/generator/AutoloadGenerator.inc Added Paths: ----------- trunk/phphtmllib/src/widgets/JSONWidget.inc Modified: trunk/phphtmllib/CHANGELOG =================================================================== --- trunk/phphtmllib/CHANGELOG 2010-02-25 15:34:48 UTC (rev 3365) +++ trunk/phphtmllib/CHANGELOG 2010-02-26 03:56:43 UTC (rev 3366) @@ -17,6 +17,7 @@ + added support to disable controller request debug output 2 on objects that provide the controller_debug_allowed() method. + added hostname port support in RequestBuilder + + Added new JSONWidget and AutoloadGenerator support. version 3.0.2 - 03/18/08 - fixed a bug with RequestBuilder::get_url() when a RequestBuilder::set_file() was called. Modified: trunk/phphtmllib/src/generator/AutoloadGenerator.inc =================================================================== --- trunk/phphtmllib/src/generator/AutoloadGenerator.inc 2010-02-25 15:34:48 UTC (rev 3365) +++ trunk/phphtmllib/src/generator/AutoloadGenerator.inc 2010-02-26 03:56:43 UTC (rev 3366) @@ -177,7 +177,8 @@ * * @var array */ - protected $renderable_parents = array('Container','HTMLPage', 'HTMLWidget', 'HTMLDataList'); + protected $renderable_parents = array('Container','HTMLPage', 'HTMLWidget', 'HTMLDataList', + 'JSONWidget'); /** * list of class names that if extended will Added: trunk/phphtmllib/src/widgets/JSONWidget.inc =================================================================== --- trunk/phphtmllib/src/widgets/JSONWidget.inc (rev 0) +++ trunk/phphtmllib/src/widgets/JSONWidget.inc 2010-02-26 03:56:43 UTC (rev 3366) @@ -0,0 +1,46 @@ +<?php + +/** + * This class is used to render a JSON array output that gets + * put back to the browser. + */ + + +/** + * JSONWidget is used when you want the controller + * to be able to call a "renderable" object that + * simply returns JSON. + * + * @author waboring + * + */ +abstract class JSONWidget { + + protected $data = null; + + public function __construct() { + $this->init(); + } + + + public function render() { + $data = $this->build_object(); + return json_encode($data); + } + + /** + * called at constructor time to do something. + * @return none + */ + abstract public function init(); + + /** + * This method is used to build the object + * that will be converted to json and + * returned to the request + * @return mixed + */ + abstract public function build_object(); + +} +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-25 15:34:55
|
Revision: 3365 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3365&view=rev Author: hemna Date: 2010-02-25 15:34:48 +0000 (Thu, 25 Feb 2010) Log Message: ----------- new image Modified Paths: -------------- trunk/open2300/htdocs/css/main.css Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2010-02-25 15:33:03 UTC (rev 3364) +++ trunk/open2300/htdocs/css/main.css 2010-02-25 15:34:48 UTC (rev 3365) @@ -18,7 +18,7 @@ background-color: #AFB5FF; width: 100%; height:150px; - background: url('/images/pano_banner_winter.jpg') no-repeat top center; + background: url('/images/pano_banner_winter2.jpg') no-repeat top center; } #idPageHeadText { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-25 15:33:10
|
Revision: 3364 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3364&view=rev Author: hemna Date: 2010-02-25 15:33:03 +0000 (Thu, 25 Feb 2010) Log Message: ----------- added Added Paths: ----------- trunk/open2300/htdocs/images/pano_banner_winter2.jpg Added: trunk/open2300/htdocs/images/pano_banner_winter2.jpg =================================================================== (Binary files differ) Property changes on: trunk/open2300/htdocs/images/pano_banner_winter2.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |