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
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?
- 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?
Yes, but the point is that you have to edit it on Jan 1st anyway if it's changed.
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?
Oh, I get it now. I'm not storing the value anywhere am I, of course I have to re-enter it on 1st Jan.steve wrote:Yes, but the point is that you have to edit it on Jan 1st anyway if it's changed.
Thanks for pointing out the flaw in my thinking. I'll engage brain next time.
bigmac
Menston Weather
Menston Weather
- 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?
I might have added wettest/driest year to the all-time records before next Jan 1st 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?
OK, just in case anyone else is following this or wants to do this on their site, this is what I have done.
I put the following code at that start of the "records" page (note I use php pages)
I took the viewpoint that the driest year is the current year until it's rainfall exceeds the existing driest year value.
This is what I used to print the values out:
I know I still have to manually enter the values at the start of each year, but as Steve said:
I put the following code at that start of the "records" page (note I use php pages)
Code: Select all
$wettestyearamnt = 'whatever value your highest yearly rainfall is';
$wettestyear = 'whatever that wettest year is';
if($wettestyearamnt > $ryear)
$wettestyearamnt=$wettestyearamnt;
else
($wettestyearamnt=$ryear) && ($wettestyear=$year);
$driestyearamnt = 'whatever value your lowest yearly rainfall is';
$driestyear = 'whatever that driest year is';
if($driestyearamnt < $ryear)
$driestyearamnt=$driestyearamnt;
else
($driestyearamnt=$ryear) && ($driestyear=$year);This is what I used to print the values out:
Code: Select all
<tr class="td_data">
<td>Wettest Year</td>
<td><?php print $wettestyearamnt;?> <?php print $rainunit;?> </td>
<td><?php print $wettestyear;?></td>
</tr>
<tr class="td_data">
<td>Driest Year</td>
<td><?php print $driestyearamnt;?> <?php print $rainunit;?> </td>
<td><?php print $driestyear;?></td>
</tr>Hope that helps someone else.I might have added wettest/driest year to the all-time records before next Jan 1st anyway
bigmac
Menston Weather
Menston Weather