Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

is there a webtag for record yearly rainfall?

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
hills
Posts: 692
Joined: Sat 26 Dec 2009 8:52 am
Weather Station: Fine Offset WH1091
Operating System: Raspbian Buster
Location: Crafers, South Australia
Contact:

is there a webtag for record yearly rainfall?

Post by hills »

Hi Steve

Is there a webtab for highest annual rainfall that could be included in the records page like <#HighYearlyRainRecordSet>?

I couldn't find one in the webtags section.

Cheers

Phil
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: is there a webtag for record yearly rainfall?

Post by steve »

No, Cumulus doesn't maintain any 'year-by-year' records at all.
Steve
hills
Posts: 692
Joined: Sat 26 Dec 2009 8:52 am
Weather Station: Fine Offset WH1091
Operating System: Raspbian Buster
Location: Crafers, South Australia
Contact:

Re: is there a webtag for record yearly rainfall?

Post by hills »

no worries, thanks for that. Given that its only once a year, I've manually entered it into my records page. ;)
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: is there a webtag for record yearly rainfall?

Post by steve »

hills wrote:Given that its only once a year, I've manually entered it into my records page. ;)
Yes, I was going to suggest that, as it's once a year (at most).
Steve
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: is there a webtag for record yearly rainfall?

Post by steve »

Although - if the current year becomes the new record holder and you want it to update straight away and keep the total updating, it's a bit more of a pain.
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: is there a webtag for record yearly rainfall?

Post by mcrossley »

A little bit of JavaScript on the page could keep it updated dynamically - you would only have to update that once a year (at most) with the last yearly record. Just compare the hard coded record value with the current year total, display whichever is greater.
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: is there a webtag for record yearly rainfall?

Post by bigmac »

No, Cumulus doesn't maintain any 'year-by-year' records at all.
mcrossley wrote:A little bit of JavaScript on the page could keep it updated dynamically - you would only have to update that once a year (at most) with the last yearly record. Just compare the hard coded record value with the current year total, display whichever is greater.
I was wondering if there was a webtag as well, so from searching the forums, found this thread and now know that there isn't :( . Which is a shame as I think the wettest year (or even the driest year) is quite an important record to show on my "Records" page.

Soooooo, when you say "a little bit of Javascript", how difficult would it be, given I have no programming skills and have basically "used" many other peoples websites, their hard work, and my "tinkering trying to get it to work for me", to put my site together :oops:

In my mind, for the wettest year, I just need to add the monthly totals together for each year and then display the highest value that results, but I guess in a web page I would have to calculate that every time, whereas I probably need to store this value once it's calculated so that this is just a one time operation.

How would I go about the driest year, probably the same way, but then use the lowest total calculated?
Can I do this without a MySQL database?

Lots of questions, hope someone can point me in the right direction :D
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: is there a webtag for record yearly rainfall?

Post by steve »

I just wrote a long reply explaining what you could do (just expanding a little on what Mark has already said) but then accidentally hit some key combination that cleared my reply. So here's a shorter version: You don't need to do any rain total calculations on the web page; manually find the current record holder using 'this year' in Cumulus, put that on a web page. Add javascript to check the <#rainyear> tag, and if it's higher, display this year's total and year instead. On Jan 1st, if the year just ended now holds record, edit the default on the web page.

The same method applies to 'driest', but you can really only update that at the end of the year, so you could do it manually anyway.
Steve
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: is there a webtag for record yearly rainfall?

Post by bigmac »

Thanks Steve.
So , in a basic form, something like this?

Code: Select all

<script type="text/javascript">
var wettestyear = "whatever my existing highest rainfall year is";
var driestyear = "whatever my existing lowest rainfall year is";
if(wettestyear > #rainyear)
	document.write("Wettest Year" wettestyear); 
else
	document.write("Wettest Year" #rainyear);

if(driestyear < #rainyear)
	document.write("Driest Year" driestyear); 
else
	document.write("Driest Year" #rainyear);

</script>
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: is there a webtag for record yearly rainfall?

Post by mcrossley »

Except you cannot compare your driest year to the current year, the current year will probably nearly always be the driest until it is a substantial way through! The direst year record is only valid for whole past years.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: is there a webtag for record yearly rainfall?

Post by beteljuice »

Mark wrote:... The direst year record ...
The beteljuice likes that :lol:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: is there a webtag for record yearly rainfall?

Post by mcrossley »

Sounds scotch to me :lol:
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: is there a webtag for record yearly rainfall?

Post by bigmac »

mcrossley wrote:Except you cannot compare your driest year to the current year, the current year will probably nearly always be the driest until it is a substantial way through!
:bash: Doh, of course.
So, for the driest year, I could also add a statement that checks the date that basically says if it's not December 31st , ignore it?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: is there a webtag for record yearly rainfall?

Post by steve »

You might as well just edit it in manually (if it's changed) on Jan 1st, and not use Javascript at all for that one.
Steve
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: is there a webtag for record yearly rainfall?

Post by bigmac »

Except I'm lazy and would like to have it automated :D
Post Reply