Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.6.10 (build 3086) - 24 June 2020 (please see important announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

See the Wiki to download the software or click on the Downloads link in the Forum Banner.

Latest (final) Cumulus version

Discussion of the Weather34 web site template

Moderators: saratogaWX, weatherist34

Post Reply
Steepleian
Posts: 21
Joined: Sat 29 Mar 2014 7:33 am
Weather Station: WH2650
Operating System: Debian 9
Location: Steeple Claydon
Contact:

Latest (final) Cumulus version

Post by Steepleian »

Didn't want to bother Brian with this, but has anyone noticed any problem with the rainfall module for 3 December version?

I am getting strange values for yesterday's rainfall. For example it is currently showing 0.591mm (https://claydonsweather.org.uk/CU). We have not experienced rain for several days and my hardware only records in 0.3mm intervals anyway.

Steepleian
Posts: 21
Joined: Sat 29 Mar 2014 7:33 am
Weather Station: WH2650
Operating System: Debian 9
Location: Steeple Claydon
Contact:

Re: Latest (final) Cumulus version

Post by Steepleian »

Steepleian wrote:
Fri 04 Jan 2019 10:37 pm
Didn't want to bother Brian with this, but has anyone noticed any problem with the rainfall module for 3 December version?

I am getting strange values for yesterday's rainfall. For example it is currently showing 0.591mm (https://claydonsweather.org.uk/CU). We have not experienced rain for several days and my hardware only records in 0.3mm intervals anyway.
Just spotted the problem: -

rainfall.php line 16, change variable $weatherflow to $weather

However this correction shows an empty display for zero rainfall so need to have a closer look.

Steepleian
Posts: 21
Joined: Sat 29 Mar 2014 7:33 am
Weather Station: WH2650
Operating System: Debian 9
Location: Steeple Claydon
Contact:

Re: Latest (final) Cumulus version

Post by Steepleian »

Steepleian wrote:
Fri 04 Jan 2019 10:55 pm
Steepleian wrote:
Fri 04 Jan 2019 10:37 pm
Didn't want to bother Brian with this, but has anyone noticed any problem with the rainfall module for 3 December version?

I am getting strange values for yesterday's rainfall. For example it is currently showing 0.591mm (https://claydonsweather.org.uk/CU). We have not experienced rain for several days and my hardware only records in 0.3mm intervals anyway.
Just spotted the problem: -

rainfall.php line 16, change variable $weatherflow to $weather

However this correction shows an empty display for zero rainfall so need to have a closer look.
OK solved the problem.

rainfall.php. Change the lines 16 to 18 to this: -

Code: Select all

<?php echo "Yesterday<br>";echo "<rainblue>",$weather["rainydmax"],"</rainblue>";
if($weather["rain_units"]=="mm"){echo "&nbsp;<raingrey>".$weather["rain_units"]."</raingrey>";}
else echo " <grey>in</grey>";?>
This now gives a correct display of 0.0mm for zero rain yesterday.

User avatar
saratogaWX
Posts: 1035
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Latest (final) Cumulus version

Post by saratogaWX »

Thanks for finding the fix. I've pushed the fix to the GitHub distribution. https://github.com/ktrue/CU-HWS

Best regards,
Ken

GiveToLive
Posts: 18
Joined: Tue 26 Mar 2013 5:49 pm
Weather Station: Davis Vantage Pro2
Operating System: Win 7
Location: Alvarado, TX USA
Contact:

Re: Latest (final) Cumulus version

Post by GiveToLive »

Thanks for the fix. Really appreciated.
Glenn

To give is to live.

www.give2live.info/Weather/

Post Reply