Hi to all,
I have seen, on others websites, the month's number of rainy days and the year's number of rainy days.
Is it possible to have the same with Cumulus (with or without the possibility to set a treshold, ie >1mm for example)
I could not find a webtag to do that.
Thank you in advance for any answer.
Marcel
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
Month's and year's number of rainy days
- mlj1
- Posts: 63
- Joined: Mon 26 Dec 2011 8:14 pm
- Weather Station: Davis Vantage Pro2 Plus
- Operating System: Windows 7 SP1
- Location: Saint-Brevin les Pins, France
- Contact:
Month's and year's number of rainy days
Marcel Le Jeune F6DOW, Saint-Brevin les Pins, Pays de la Loire, France
Davis VP2+, D-Link wifi IP webcam DCS2130
http://www.meteo-saint-brevin.fr

Davis VP2+, D-Link wifi IP webcam DCS2130
http://www.meteo-saint-brevin.fr
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Month's and year's number of rainy days
The number of dry and wet days for any month or year (or any other period) can be displayed on the "This month/year/period" screens in Cumulus. But there aren't currently web tags for this month's or this year's figures because the counts aren't currently stored anywhere.
Steve
- mlj1
- Posts: 63
- Joined: Mon 26 Dec 2011 8:14 pm
- Weather Station: Davis Vantage Pro2 Plus
- Operating System: Windows 7 SP1
- Location: Saint-Brevin les Pins, France
- Contact:
Re: Month's and year's number of rainy days
Thank you very much Steve for your fast answer, as usual.
Best regards,
Marcel
Best regards,
Marcel
Marcel Le Jeune F6DOW, Saint-Brevin les Pins, Pays de la Loire, France
Davis VP2+, D-Link wifi IP webcam DCS2130
http://www.meteo-saint-brevin.fr

Davis VP2+, D-Link wifi IP webcam DCS2130
http://www.meteo-saint-brevin.fr
-
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: Month's and year's number of rainy days
Hi Marcel,
Whilst there isn't a webtag as such, I do a similar thing on my website , although in fact I ask the exact opposite, as in the UK it is nice to know how many days it didn't rain!
I use a MYSQL query to do this so you do need to be running this on your site, although there may be other ways to do it through Java scripts.
This is the query and code I use for the current year, which other members from the forum helped me create:
You would, I guess, change the "...AND TotRainFall=0" in the query to "...AND TotRainFall>0" to get the number of days it rained.
You can obviously change it to look at per month as well, but I found this to be more complicated for some reason (I am not a MYSQL expert, in fact I am a complete novice so my code is not what you would call "tight" and hence the reason why my month code is done in a different way to my year code), but through trial and error I got it to work:
For the month query, I wanted it based on a user selected month hence the $mo variable which is passed through a "select" drop down box code option.
Hope that helps you in some small way, as many others have helped me on here
Whilst there isn't a webtag as such, I do a similar thing on my website , although in fact I ask the exact opposite, as in the UK it is nice to know how many days it didn't rain!
I use a MYSQL query to do this so you do need to be running this on your site, although there may be other ways to do it through Java scripts.
This is the query and code I use for the current year, which other members from the forum helped me create:
Code: Select all
$querytydnr='SELECT COUNT(TotRainFall) as daysnorain FROM Dayfile WHERE YEAR(LogDate)=YEAR(NOW()) AND TotRainFall=0';
$resulttydnr=mysql_query($querytydnr)or die('Error: '.mysql_error());
.
.
<?php while($row=mysql_fetch_object($resulttydnr)){?>
<td><?php echo $row->daysnorain;?></td>
<?php
}
?>You can obviously change it to look at per month as well, but I found this to be more complicated for some reason (I am not a MYSQL expert, in fact I am a complete novice so my code is not what you would call "tight" and hence the reason why my month code is done in a different way to my year code), but through trial and error I got it to work:
Code: Select all
<?php $resulttysmdnr=mysql_query("SELECT COUNT(TotRainFall) as daysnorain FROM Dayfile WHERE YEAR(LogDate)=YEAR(NOW()) AND MONTH(LogDate)=$mo AND TotRainFall=0")or die('Error: '.mysql_error());?>
<?php while($row=mysql_fetch_object($resulttysmdnr)){?>
<td><?php echo $row->daysnorain;?></td>
<?php
}
?>Hope that helps you in some small way, as many others have helped me on here
bigmac
Menston Weather
Menston Weather