cloudy

Author Topic: Temperature Detail addon page for WD-AJAX-PHP-USA template  (Read 14327 times)

0 Members and 3 Guests are viewing this topic.

Offline K3JAE

  • Posts: 696
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #90 on: January 16, 2010, 05:09:24 AM »
Added the new hi/lo table img below the current table.
2009 was colder than 08.
http://www.knology.net/~blackjack52/wxtempdetail.php

Is this additional table sharable? A link to the code if it is?


73's de K3JAE

John
K3JAE Weather Station

Blackjack52

  • Guest
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #91 on: January 16, 2010, 03:25:29 PM »
No code. I just captured the previous yrs table and added the link below the php.

Offline K3JAE

  • Posts: 696
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #92 on: January 16, 2010, 11:32:01 PM »
No code. I just captured the previous yrs table and added the link below the php.

Well for us who are not too php savvy would you share how you captured that information please? I would like to incorporate some of this into my temp detail page and possibly even my rain detail page.


73's de K3JAE

John
K3JAE Weather Station

Offline FrankP999

  • Posts: 1,131
  • Macon, Georgia USA
    • My Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #93 on: January 17, 2010, 02:13:54 AM »
I used a screen capture program to copy the summary section and saved it as an image file (i.e. gif, jpg, etc). See mine at the bottom of http://frankpinkston.com/weather/wxtempdetail.php

Frank
 

Blackjack52

  • Guest
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #94 on: January 17, 2010, 06:11:06 PM »
I appologize for that.
After you capture the section, crop it down to the size in the <img> tags below using a graphics editor. Then add the <img> code into your .php. In the code below, I included the code before the <img> tags as a reference.
Code: [Select]
<?php
if ($colorhilight != 1){    
echo '<table cellpadding="3" cellspacing="1" width="100%" class="tempday">';
echo '<tr>';
echo '<td align="center" style="color:white" bgcolor="#0000CC">&lt;&nbsp;' $tempvalues[0].$temptype '</td>';
echo '<td align="center" style="color:white" bgcolor="#0066cc">' $tempvalues[0].$temptype " - " .$tempvalues[1].$temptype '</td>';
echo '<td align="center" style="color:white" bgcolor="#0099cc"> ' $tempvalues[1].$temptype " - " .$tempvalues[2].$temptype '</td>';
echo '<td align="center" bgcolor="#00ccff">' $tempvalues[2].$temptype " - " .$tempvalues[3].$temptype '</td>';
echo '<td align="center" bgcolor="#00ffcc">' $tempvalues[3].$temptype " - " .$tempvalues[4].$temptype '</td>';
echo '<td align="center" bgcolor="#00ff99">'$tempvalues[4].$temptype " - " .$tempvalues[5].$temptype '</td>';
echo '<td align="center" bgcolor="#99ff99">'$tempvalues[5].$temptype " - " .$tempvalues[6].$temptype '</td>';
echo '<td align="center" bgcolor="#ffff66">'$tempvalues[6].$temptype " - " .$tempvalues[7].$temptype '</td>';
echo '<td align="center" bgcolor="#ffcc00">'$tempvalues[7].$temptype " - " .$tempvalues[8].$temptype '</td>';
echo '<td align="center" bgcolor="#ff9933">'$tempvalues[8].$temptype " - " .$tempvalues[9].$temptype '</td>';
echo '<td align="center" bgcolor="#ff6600">'$tempvalues[9].$temptype " - " .$tempvalues[10].$temptype '</td>';
echo '<td align="center" bgcolor="#ff3300">'$tempvalues[10].$temptype " - " .$tempvalues[11].$temptype '</td>';
echo '<td align="center" bgcolor="#ff99ff">'$tempvalues[11].$temptype '&gt;</td>';
echo '</tr>  ';
echo '</table> ';
    }
?>

<br />
<img style="width: 662px; height: 116px;" alt=""
 src="images/2009ta.PNG" />

<img style="width: 662px; height: 116px;" alt=""
 src="images/2008ta.PNG" />
</div><!-- end main-copy -->

<?php
############################################################################
 
@include("footer.php");
############################################################################

Offline Cienega32

  • Posts: 104
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #95 on: January 20, 2010, 11:27:07 AM »
On an aesthetic note - using a width="7%" in the color bar table cells gives more of a balanced look to each temp range cell.

Offline Cienega32

  • Posts: 104
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #96 on: January 21, 2010, 09:43:22 AM »
Any thoughts or potential for addition for this?
(Blue and zeros filled accordingly using the "MEAN" field of the array)


Offline Murry Conarroe

  • Posts: 478
  • Decatur, Texas
    • Wildwood Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #97 on: January 21, 2010, 09:51:26 AM »
I had already made that change. See at http://weather.wildwoodnaturist.com/wxtempdetail.php
Just want to make a few other minor changes as well before making a new update available.
Murry

Offline Cienega32

  • Posts: 104
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #98 on: January 21, 2010, 11:07:01 AM »
I knew that!   :lol:

Blackjack52

  • Guest
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #99 on: January 21, 2010, 03:11:43 PM »
I like that Murry.

Offline Silversword

  • --Stan Y.
  • Posts: 786
  • Maui, Hawaii
    • Up Country Maui Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #100 on: January 21, 2010, 09:20:32 PM »
Murry,  while you are doing another version, can you add this function as suggested by Lee as well?

Added the new hi/lo table img below the current table.
2009 was colder than 08.
http://www.knology.net/~blackjack52/wxtempdetail.php

Be a nice addition.

--Stan Y.
   Maui, Hawaii
WD 10.37r Bld 23
WDL 6.05

Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Webcam: Panasonic BL-C1A

Offline Murry Conarroe

  • Posts: 478
  • Decatur, Texas
    • Wildwood Weather
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #101 on: January 22, 2010, 12:57:22 AM »
Version 1.6 is now available. No big changes. Added the Monthly mean temperature to the monthly summary table and various CSS changes.

The latest version is available at http://weather.wildwoodnaturist.com/downloads.php

For those asking for the addition of summary tables for previous years, I will be doing that in a separate script.
  
« Last Edit: March 27, 2010, 01:19:27 AM by Murry Conarroe »
Murry

Blackjack52

  • Guest
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #102 on: January 22, 2010, 02:29:40 AM »
Thanks Murry.

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,440
  • Rome, New York
    • CNYWeather.com
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #103 on: January 22, 2010, 11:44:58 AM »
Looks great Murry.
Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Blackjack52

  • Guest
Re: Temperature Detail addon page for WD-AJAX-PHP-USA template
« Reply #104 on: January 23, 2010, 02:30:39 AM »
I like what you've changed.
I shortened the titles to make the boxes smaller since it's implied the data shown is monthly.
http://www.knology.net/~blackjack52/wxtempdetail.php

 

cumulus