Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

Latest (final) Cumulus version

Discussion of the Weather34 web site template

Moderators: saratogaWX, weatherist34

Post Reply
Steepleian
Posts: 36
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 » 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.

Steepleian
Posts: 36
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 » 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.

Steepleian
Posts: 36
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 » Fri 04 Jan 2019 11:06 pm

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: 957
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 » Sat 05 Jan 2019 4:12 pm

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 » Sun 06 Jan 2019 4:49 pm

Thanks for the fix. Really appreciated.
Glenn

To give is to live.

www.give2live.info/Weather/

Post Reply