Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 10:26 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 59 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Sun Aug 28, 2011 12:54 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2513
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Whilst we are on the subject, is it a 'standard' that these values do not include today?

Whilst ConsectiveDryDays cannot include today, Wet days could - if it has already reached the threshold.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Sun Aug 28, 2011 5:43 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
mcrossley wrote:
Whilst we are on the subject, is it a 'standard' that these values do not include today?

I don't know; but I reasoned that since you don't know until the end of the day whether it's a dry day or not, it made sense not to update either of them until the end of the day.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 1:08 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2513
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
It looks like I have a small problemette with the ConsecutiveRainDays, it missing some days in b1008.

From my dayfile...

23/8 = 0.0mm
24/8 = 0.9mm
25/8 = 12.7mm
26/8 = 2.1mm
27/8 = 9.7mm
28/8 = 4.1mm

(Today 29/9 = 4.7mm so far)

But ConsecutiveRainDays is reporting "3", does it not read the dayfile on startup as the 3 day count is correct from the last restart of Cumulus - when I installed it on the 26/8.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 1:12 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
mcrossley wrote:
does it not read the dayfile on startup

No, it stores the current counts in today.ini and adjusts them as necessary at the end of the day.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 1:42 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
I am having SEVERE problems putting these features into my site,

The longest wet & longest dry days I mean, actually putting the code into the page.

This is what I currently have in my "rainfall" area of records

<tr class="td_rainfall_data">
<td width="4%"></td>
<td><b>Last Rain</td>
<td><span id="LastRainDaysAgo"></span> <span id="LastRainDate"></span></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighRainRateRecordSet"></td>
<td><b>Highest&nbsp;Rain&nbsp;Rate</td>
<td id="rrateM"></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighHourlyRainRecordSet"></td>
<td><b>Highest&nbsp;Hourly&nbsp;Rainfall</td>
<td id="rfallhH"></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighDailyRainRecordSet"></td>
<td><b>Highest&nbsp;Daily&nbsp;Rainfall</td>
<td id="rfallH"></td>
</tr>
<tr class="td_rainfall_data">
<td width="4%" id="HighMonthlyRainRecordSet"></td>
<td><b>Highest&nbsp;Monthly&nbsp;Rainfall</td>
<td id="rfallmH"></td>
</tr>
<tr>

But for the life of me, i cannot figure out how to put the longest wet/dry into code then into this,

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 1:53 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2513
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
steve wrote:
No, it stores the current counts in today.ini and adjusts them as necessary at the end of the day.
Thanks Steve, today.ini adjusted - I looked through Cumulus.ini a few times! :lol:

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
robynfali wrote:
But for the life of me, i cannot figure out how to put the longest wet/dry into code then into this,

Look at the supplied todayT.htm file (it's in the 'originals' folder if you opted not to install it).

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:17 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Rob,

I added 2 new rows to my ThisMonthYear.html page. It comprises 3 columns, same as your page. See if this helps.

<tr class="td_rainfall_data">
<td>Longest Dry Period</td>
<td><#MonthLongestDryPeriod> days to <#MonthLongestDryPeriodD format="d mmmm"</td>
<td><#YearLongestDryPeriod> days to <#YearLongestDryPeriodD format="d mmmm"</td>
</tr>
<tr class="td_rainfall_data">
<td>Longest Wet Period</td>
<td><#MonthLongestWetPeriod> days to <#MonthLongestWetPeriodD format="d mmmm"</td>
<td><#YearLongestWetPeriod> days to <#YearLongestWetPeriodD format="d mmmm"</td>
</tr>

The format command is optional.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:23 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
Just tried that with mine, and I forgot, Cumulus isn't processing my records page, Paul set it up a different way (he did explain, but me being as thick as two short ones....) So the tags wont work on it (as you can see on it now lol)


Steve, thanks for that, almost got there, just got to try and find what created that "gap" now

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:41 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Rob,

The code I supplied is for ThisMonthYear page, not all-time records.

Here is the code for your all-time records...

<tr class="td_rainfall_data">
<td width="5%"></td>
<td class="main_table_text_labels"> Longest Dry Period</td>
<td class="right_align_indented"><#LongestDryPeriod> days</td>
<td class="right_align_indented"><#TLongestDryPeriod format="'to' d mmmm yyyy"></td>
</tr>
<tr class="td_rainfall_data">
<td width="5%"></td>
<td class="main_table_text_labels"> Longest Wet Period</td>
<td class="right_align_indented"><#LongestWetPeriod> days</td>
<td class="right_align_indented"><#TLongestWetPeriod format="'to' d mmmm yyyy"></td>
</tr>

The first <td> entry in each section stores the record light. I don't currently have code in there for these 2 new records. You might want to use the above but use your own code for the record light. Hope that makes sense.

PS. You have multiple links in your sig but none to your site. One would be helpful. ;)

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:43 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
yeah it would wouldn't it!!, sorry about that


http://www.valley-weather.co.uk/

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:46 pm 
Offline

Joined: Sun May 10, 2009 8:52 pm
Posts: 501
Location: Springfield, IL
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Hi Steve
why not put the value in dayfile so if it rained in the middle of the day
you wood not have to wait all day for Consecutive Dry days to rest
Beau


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:52 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Rob,

Sorry. Didn't notice you have only 2 columns for record information (plus the record light column).

This code combines the period and date into a single column for both wet and dry periods...

<tr class="td_rainfall_data">
<td width="5%"></td>
<td class="main_table_text_labels"> Longest Dry Period</td>
<td class="right_align_indented"><#LongestDryPeriod> days to <#TLongestDryPeriod format="'to' d mmmm yyyy"></td>
</tr>
<tr class="td_rainfall_data">
<td width="5%"></td>
<td class="main_table_text_labels"> Longest Wet Period</td>
<td class="right_align_indented"><#LongestWetPeriod> days to <#TLongestWetPeriod format="'to' d mmmm yyyy"></td>
</tr>

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:56 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
Yep, done that mate

(Month year) sorted, thank you SO much

Records, its still showing as the tags, rather than data, I think this is because as i said, the records page is not processd via cumulus?

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Mon Aug 29, 2011 2:57 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Rob,

I can see you're making progress. The ThisYear values don't look right though.

To get the new records text the same replace class="td_rainfall_data" with class="td_temperature_data"

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 59 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group