Adding Rain info to wxlocal5.html (Carterlake/AJAX)

Lew at Farmingtonweather wondered why no rain info was shown on the Trends page in the template… Good question, so I’ve added it to wxlocal5.html to appear just under the Records and Stats heading.

You can replace (in wxlocal5.html in your Weather Display \webfiles directory)

	  <h3>Records and Stats</h3> 

<table width="99%" cellpadding="0" cellspacing="0" border="0">

<tr class="table-top">
<td colspan="2">TEMPERATURE HIGHS</td>
<td colspan="2">HOT DAYS THIS MONTH</td>
</tr>

with

	  <h3>Records and Stats</h3> 

<table width="99%" cellpadding="0" cellspacing="0" border="0">

<tr class="table-top">
<td colspan="2">RAIN</td>
<td colspan="2">RAIN HISTORY </td>
</tr>

<tr class="column-light">
<td>Today</td>
<td>%dayrn% (%hourrn% last hour) </td>
<td>Today</td>
<td>%dayswithnorain% days since last rain on %dateoflastrainalways% at %timeoflastrainalways%</td>
</tr>

<tr class="column-dark">
<td>Yest.</td>
<td>%yesterdayrain%</td>
<td>Week</td>
<td>%raincurrentweek% in. over last 7 days.</td>
</tr>

<tr class="column-light">
<td>Month</td>
<td>%monthrn% (%dayswithrain% days with rain this month)</td>
<td>Month</td>
<td>%raintodatemonthago% last month. </td>
</tr>

<tr class="column-dark">
<td>Year</td>
<td>%yearrn% (%dayswithrainyear% days with rain this year)</td>
<td>Year</td>
<td>%raintodateyearago% total last year at this time.</td>
</tr>

<tr class="table-top">
<td colspan="2">TEMPERATURE HIGHS</td>
<td colspan="2">HOT DAYS THIS MONTH</td>
</tr>

and that should give you a nice summary of the rain information.

I’ve updated the distribution files at http://saratoga-weather.org/scripts-WD-AJAX.php#WDajax to V2.06 (only change was in wxlocal5.html)

Best regards,
Ken

Ken,
New stats page working fine in San Diego!

THANKS!

John

added the new wxlocal5/wx5 here and also working & looking good…thanks ken

http://www.gateway2capecod.com/wx5.html

chris

It is great that the rain data appears on the stats page now, BUT, there is something really wrong with the data, my eyes, or ???

RAIN
Today 0.23 in. (0.00 in. last hour)
Yest. 0.24 in.
Month 0.47 in. (1 days with rain this month)
Year 19.40 in. (27 days with rain this year)

RAIN HISTORY
Today 0 days since last rain on 9/7/2007 at 6:16 AM
Week 0.240 in over last 7 days.
Month 0.68 last month.

Year 0.00 total last year at this time.

We had one rain this month that rain half before midnight and half after…so the today and yesterday numbers are right as well as the month. Why would the “week” total only be “yesterday”'s rain and not the total for the week? Shouldn’t “week” include current day?

Also, the last month data should be August? or last 30 days? There was about 9" of rain in August… Most of that rain took place in the last half of August. So whether the “month” was last month or last 30 days, there was a lot more than .68??

Thanks,

Lew