Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 7:00 am
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: Consecutive Dry/Wet Days
PostPosted: Thu Aug 25, 2011 6:32 am 
Offline
User avatar

Joined: Thu Dec 17, 2009 2:03 pm
Posts: 787
Location: Hurstpierpoint, West Sussex, UK
Weather Station: WH1081
Operating System: Windows XP & 7 Pro
Just wondered if this description should be a flag i.e. 0 for dry and 1 for wet, since only one condition can be true. It would look better on the website rather than showing both conditions. Hope this makes sense.

_________________
Neil
Hurstpierpoint Weather

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Thu Aug 25, 2011 7:20 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17560
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I could create a new web tag containing 1 if we're in a wet spell or 0 if in a dry spell, but wouldn't you then have to write some javascript (or whatever) to examine the value? In which case the javascript could just as easily examine one of the existing items?

Or am I missing your point?

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


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Thu Aug 25, 2011 7:30 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17560
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Ah, hold on, is this what you mean - two new web tags; one contains text, either "Current dry period" or "Current wet period" or something like that, depending on which type of spell you're currently in, and one containing whichever of <#ConsecutiveDryDays> or <#ConsecutiveWetDays> is currently non-zero?

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


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Thu Aug 25, 2011 8:19 am 
Offline
User avatar

Joined: Thu Dec 17, 2009 2:03 pm
Posts: 787
Location: Hurstpierpoint, West Sussex, UK
Weather Station: WH1081
Operating System: Windows XP & 7 Pro
Yes, that's exactly what I meant to ask for - it's a good job you're able to read my mind LOL.

_________________
Neil
Hurstpierpoint Weather

Image


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Fri Aug 26, 2011 12:46 am 
Offline
User avatar

Joined: Tue Apr 21, 2009 4:03 am
Posts: 58
Location: Coromandel, New Zealand
Weather Station: Davis VP2
Operating System: Vista
Hi all, on this topic I just wondered if I had done something wrong ( quite possible with my very limited experience).

You see, I got all brave and added two webtags to my IndexT file for <#ConsecutiveDryDays> and <#ConsecutiveWetDays> . I am currently in a dry-day spell of 8 days, and expected on the roll-over to see an 8 in the appropriate spot.

An 9 shows on my "today" page under days since it last rained.

Is this a beta-bug, or a dummy-bug?

Peter

_________________
Peter Pritchard
http://coromandeltownweather.net


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Fri Aug 26, 2011 7:25 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17560
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
PeterP wrote:
I am currently in a dry-day spell of 8 days, and expected on the roll-over to see an 8 in the appropriate spot.

An 9 shows on my "today" page under days since it last rained.

It looks like 9 days from your daily rain graph? 17th to 25th August inclusive?

But you have a 'zero' for 'Consecutive dry days' on your index page, and a 9 for 'Days since it last rained' (which is the same thing) on your today page, so I don't know what you've done there. What web tags are you using in those two places?

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


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Fri Aug 26, 2011 6:21 pm 
Offline
User avatar

Joined: Tue Apr 21, 2009 4:03 am
Posts: 58
Location: Coromandel, New Zealand
Weather Station: Davis VP2
Operating System: Vista
Quote:
But you have a 'zero' for 'Consecutive dry days' on your index page, and a 9 for 'Days since it last rained' (which is the same thing) on your today page, so I don't know what you've done there.


Aaha, a simple copy-and-paste mistake.(Note to self, double check, then check again before asking a question!)

Quote:
It looks like 9 days from your daily rain graph? 17th to 25th August inclusive?


Yes, I was a bit too hasty when I edited the StartCumulative figure in the Today.ini . Will fix that.

A lesson or two learnt,
thanks again Steve

_________________
Peter Pritchard
http://coromandeltownweather.net


Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Sat Aug 27, 2011 1:34 pm 
Offline
User avatar

Joined: Sat Jul 03, 2010 9:03 pm
Posts: 156
Location: Lake Zurich, IL; USA
Weather Station: Davis Vantage Pro 2
Operating System: Windows 7
My issue with longest dryspell is that the data will be corrupted by winter days when there is snow, but my station won't measure that precipitation.

_________________
Tom Keramidas, Lake Zurich, IL, USA
Image


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

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
nking wrote:
Just wondered if this description should be a flag i.e. 0 for dry and 1 for wet, since only one condition can be true. It would look better on the website rather than showing both conditions. Hope this makes sense.

I've just downloaded b1008. This is what I did so that it will show only 1 condition that is more than 1
Code:
<script type="text/javascript">
<!--
//Michael Holliday's code to display either consecutive rain or dry days, which ever is more than 1
var ConsecutiveRainDays=<#ConsecutiveRainDays>;
var ConsecutiveDryDays=<#ConsecutiveDryDays>;
if (ConsecutiveRainDays>0){
document.write("<td>Consecutive Rain Days</td><td><#ConsecutiveRainDays></td>");
}else {
document.write("<td>Consecutive Dry Days</td><td><#ConsecutiveDryDays></td>");
}
//-->
</script>

I had also done, like 20 lines of code ages ago, to work out "Days since it last rained" using the last tip webtag. Deleted that now. It was impressive though :D

Problem though, I have 110 days with out rain. It shows 0. I have used the dayfile.txt editor then the records editor and the today.ini and it still shows 0. It has just ticked over to the next day here, and no difference. Have I done something in the wrong order?

--EDIT I added 110 in the today.ini file, but it's ticked over to the next day to show 0. What's a startcumulative figure?
EDIT 2 Fixed it. Also I wrote "more than 1", but meant more than 0 as is in my code.

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Last edited by MickinMoulden on Sat Aug 27, 2011 3:01 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Consecutive Dry/Wet Days
PostPosted: Sat Aug 27, 2011 2:58 pm 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
All fixed, I used the "create missing" in the dayfile.txt editor. I think that's what did it.

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 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: 2512
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: 17560
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: 2512
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: 17560
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  
 
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: No registered users and 0 guests


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