Page 1 of 1

website showing more rainfall in since midnight

Posted: Sat 07 Jan 2012 6:38 pm
by dezzeer
hi all sorry if this as been covered but my today rainfall shows less than rainfall since midnight than todays rainfall, i have the midnight rollover ticked so thought they would read the same. unless me being stupid
www.dazmather.co.uk
many thanks in advance
darron

Re: website showing more rainfall in since midnight

Posted: Sat 07 Jan 2012 10:24 pm
by steve
They should be the same, yes. If you zip up the diags file, I'll see if I can see anything. The pragmatic solution might be to not display 'rain since midnight' at all, as it's the same for you as 'rain today', but it might be an indication of some other problem, so it's worth investigating.

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 11:04 am
by dezzeer
hi not sure i have done it right but here it is

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 11:58 am
by steve
Your 'midnight' rain counter value is the same as your 'start of day' rain counter value, so it's hard to see how the calculation can come out differently:

08/01/2012 00:00:00.126 : Midnight rain reset, count = 47.40 time = 08/01/2012
08/01/2012 00:00:01.126 : Writing today.ini, LastUpdateTime = 07/01/2012 23:55:00 raindaystart = 47.4000015258789 rain counter = 47.4000015258789

Could you please show me the code you are using on your web page template to display the rain since midnight? And, indeed, your 'rain in the last 24 hours', because that's clearly wrong too. Attaching the entire file will probably be easiest.

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 12:56 pm
by dezzeer
hi steve do you mean loading the index t file
regards darron

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:11 pm
by steve
Yes, the file that you have edited to add the 'rain since midnight' and 'rain in last 24 hours' items (I don't think they are in the file as supplied with Cumulus as standard?) which would normally be called indexT.htm.

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:21 pm
by dezzeer
wont let me upload file will copy and paste
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
<meta name="description" content="<#location> weather data" />
<meta name="keywords" content="Cumulus, <#location> weather data, weather, data, weather station" />
<title><#location> weather</title>
<link href="weatherstyle.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="content">
<h1><#location> weather</h1>
<h2 style="text-align: left; text-transform: none;" >
&nbsp;Latitude&nbsp;<#latitude>&nbsp;&nbsp;&nbsp;&nbsp;Longitude&nbsp;<#longitude>&nbsp;&nbsp;&nbsp;&nbsp;Elevation&nbsp;<#altitude></h2>
<!-- Almanac -->
<table width="100%" border="0" cellpadding="10">
<tbody><tr>
<td class="labels">Dawn:</td>
<td class="site_data" style="text-align: left;"><#dawn></td>
<td class="labels">Sunrise:</td>
<td class="site_data" style="text-align: left;"><#sunrise></td>
<td class="labels">Moonrise:</td>
<td class="site_data" style="text-align: left;"><#moonrise></td>
<td rowspan="3"><img src="images/moon.bmp" alt="Moon" width="64" align="left" border="0" height="64" style="margin: 0px 10px" /></td>
</tr>
<tr>
<td class="labels">Dusk:</td>
<td class="site_data" style="text-align: left;"><#dusk></td>
<td class="labels">Sunset:&nbsp;</td>
<td class="site_data" style="text-align: left;"><#sunset></td>
<td class="labels">Moonset:</td>
<td class="site_data" style="text-align: left;"><#moonset></td>
</tr>
<tr>
<td class="labels">Daylight:</td>
<td class="site_data" style="text-align: left;"><#daylightlength></td>
<td class="labels">Day length:</td>
<td class="site_data" style="text-align: left;"><#daylength></td>
<td class="labels">Moon Phase:</td>
<td class="site_data" style="text-align: left;"><#moonphase></td>
</tr>
</tbody></table>
<!-- END Almanac -->
<p>Welcome to <#longlocation>. </p>
<p>The weather station in use is the <#stationtype>, and these pages are updated
every <#interval> minutes. The meteorological day used at this station ends at
<#rollovertime>.</p>
<p>Forecast: <#forecast></p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<caption>Conditions at local time <#time></caption>
<tr>
<td colspan="4" class="tableseparator_temp">Temperature and Humidity </td>
</tr>
<tr class="td_temperature_data">
<td>Temperature</td>
<td><#temp>&nbsp;<#tempunit></td>
<td>Dew&nbsp;Point </td>
<td><#dew>&nbsp;<#tempunit></td>
</tr>
<tr class="td_temperature_data">
<td>Windchill</td>
<td><#wchill>&nbsp;<#tempunit></td>
<td>Humidity</td>
<td><#hum>%</td>
</tr>
<tr class="td_temperature_data">
<td>Heat Index</td>
<td><#heatindex>&nbsp;<#tempunit></td>
<td>Apparent Temperature</td>
<td><#apptemp>&nbsp;<#tempunit></td>
</tr>
<!-- Solar data. If you don't have a solar sensor, you may wish to delete everything from here to the next comment -->
<tr class="td_temperature_data">
<td>Solar Radiation</td>
<td><#SolarRad>&nbsp;W/m&sup2;</td>
<td>Evapotranspiration Today</td>
<td><#ET>&nbsp;<#rainunit></td>
</tr>
<!-- End of solar data -->
<tr>
<td colspan="4" class="tableseparator_rainfall">Rainfall</td>
</tr>
<tr class="td_rainfall_data">
<td>Rainfall&nbsp;Today</td>
<td><#rfall>&nbsp;<#rainunit></td>
<td>Rainfall&nbsp;Rate</td>
<td><#rrate>&nbsp;<#rainunit>/hr</td>
</tr>
<tr class="td_rainfall_data">
<td>Rainfall&nbsp;This&nbsp;Month</td>
<td><#rmonth>&nbsp;<#rainunit></td>
<td>Rainfall&nbsp;This&nbsp;Year</td>
<td><#ryear>&nbsp;<#rainunit></td>
</tr>
<tr class="td_rainfall_data">
<td>Rainfall&nbsp;Last Hour</td>
<td><#rhour>&nbsp;<#rainunit></td>
<td>Last rainfall</td>
<td><#LastRainTipISO></td>
</tr>
<tr class="td_rainfall_data">
<td>Rainfall&nbsp;Since&nbsp;Midnight</td>
<td>0.6&nbsp;mm</td>
<td>Rainfall&nbsp;Last&nbsp;24&nbsp;Hours</td>
<td>1.2&nbsp;mm</td>
<tr>
<td colspan="4" class="tableseparator_wind">Wind</td>
</tr>
<tr class="td_wind_data">
<td>Wind&nbsp;Speed&nbsp;(gust)</td>
<td><#wgust>&nbsp;<#windunit></td>
<td>Wind&nbsp;Speed&nbsp;(avg)</td>
<td><#wspeed>&nbsp;<#windunit></td>
</tr>
<tr class="td_wind_data">
<td>Wind Bearing</td>
<td><#avgbearing>&deg; <#wdir></td>
<td>Beaufort&nbsp;<#beaufort></td>
<td><#beaudesc></td>
</tr>
<tr>
<td colspan="4" class="tableseparator_pressure">Pressure</td>
</tr>
<tr class="td_pressure_data">
<td>Barometer&nbsp;</td>
<td><#press>&nbsp;<#pressunit></td>
<td><#presstrend></td>
<td><#presstrendval>&nbsp;<#pressunit>/hr</td>
</tr>
<tr>
<td colspan="4" class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="gauges.htm">gauges</a>::<a href="today.htm">today</a>::<a href="yesterday.htm">yesterday</a>::<a href="thismonth.htm">this&nbsp;month</a>::<a href="thisyear.htm">this&nbsp;year</a>::<a href="record.htm">records</a>::<a href="trends.htm">trends</a>:<#forum><#webcam></td>
</tr>
</table>
<p class="credits"><br />
Page updated <#update><br />
powered by
<a href="http://sandaysoft.com/products/cumulus" target="_blank">Cumulus</a>
v<#version> (<#build>)
</p>
</div>
</body>
</html>

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:26 pm
by steve
You've hard coded the values 0.6 and 1.2 instead of using web tags.

<tr class="td_rainfall_data">
<td>Rainfall&nbsp;Since&nbsp;Midnight</td>
<td>0.6&nbsp;mm</td>
<td>Rainfall&nbsp;Last&nbsp;24&nbsp;Hours</td>
<td>1.2&nbsp;mm</td>
<tr>

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:28 pm
by dezzeer
cheers do i just delete the values in notepad

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:39 pm
by dezzeer
or should it read
</tr>
<tr class="td_rainfall_data">
<td>Rainfall&nbsp;Since&nbsp;Midnight</td>
<td><#sincemidnight>&nbsp;mm</td>
<td>Rainfall&nbsp;Last&nbsp;24&nbsp;Hours</td>
<td><#24hours>&nbsp;mm</td>

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:50 pm
by steve

Code: Select all

<tr class="td_rainfall_data">
    <td>Rainfall&nbsp;Since&nbsp;Midnight</td>
    <td><#rmidnight>&nbsp;<#rainunit></td>
    <td>Rainfall&nbsp;Last&nbsp;24&nbsp;Hours</td>
    <td><#r24hour>&nbsp;<#rainunit></td>
</tr>

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:52 pm
by dezzeer
will try again
</tr>
<tr class="td_rainfall_data">
<td>Rainfall&nbsp;Since&nbsp;Midnight</td>
<td><#rmidnight>&nbsp;mm</td>
<td>Rainfall&nbsp;Last&nbsp;24&nbsp;Hours</td>
<td><#r24hour>&nbsp;mm</td>
thanks for the help
is it also possible to do webtag for storm rain like it has in davis
cheers Darron

Re: website showing more rainfall in since midnight

Posted: Sun 08 Jan 2012 1:54 pm
by dezzeer
we must of posted at same time thanks for your help once again
regards darron