Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Sunshine Hours - how calculated

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Sunshine Hours - how calculated

Post by jank »

Hello,
I searched a little bit in older Topics but found nothing what helped me.
I have a Fioneoffset WH3080 with Solar.
Currently (and in the past days) I have more then 8hours sunchine here in germany.

My solar values are looking similar like this:
Radiation 931 W/m2
UV Index 8.0
But when I look into the today/yesterday TAB I only have
Hours of Sunshine: 0.5 hrs

How are these sunchine hours calculated ....or better, whats going wrong ?

Jan
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine Hours - how calculated

Post by mcrossley »

You need to compare the graph of theoretical solar value against measured value. Then adjust the theoretical value so the curve matches your measured values. I'm assuming you are using the default theoretical value calculation of Ryan-Stolzenbach.

In station setting, adjust the "RS Transmission factor", increase this to increase the theoretical value, and vice versa.

Once you have the curves matching pretty well - you want theoretical value to be slightly greater than measured value, and you need to do this on a cloudless day without haze - then whenever the measured value percentage of theoretical is greater than the settings "Sun Threshold (percent)" value, MX will start incrementing the sunshine minutes.

Here is an (old) example of my curves (blue=theoretical, red=measured)...
perfect_day.png
You do not have the required permissions to view the files attached to this post.
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: Sunshine Hours - how calculated

Post by jank »

thank you Mark, for the quick answer .......I wil ltry....
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine Hours - how calculated

Post by mcrossley »

You need to do the adjustments around local solar noon of course, so the values are at their maximum.
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: Sunshine Hours - how calculated

Post by billy »

mcrossley wrote: Tue 19 May 2020 1:34 pm you want theoretical value to be slightly greater than measured value


Is there a (simple) explanation for why you want it to be slightly greater around midday?
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine Hours - how calculated

Post by mcrossley »

You want theoretical to be slightly greater because as the curve drops off in the morning and evening, the percentage value of a single W/m2 gets much greater. If the measured is just above theoretical you will find that it starts recording false sunshine in the morning and evening.

You will also find that the measured value can increase (considerably at times) if there are clouds around, they can reflect a lot of extra radiation down. So for broken cloud days that effect could lift the measured value above the sunshine threshold if your clear sky measured value is already above theoretical.

You could compensate for that by increasing the percent threshold, but I have found it is better to make measured value slightly lower.

There is also the "Solar Minimum (W/m2)" setting, which defines the minimum theoretical value below which it will not measure sunshine. This again is to stop false measurements at the low parts of the curve. The better your curves fit, the lower you can make that threshold value, but take care!
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: Sunshine Hours - how calculated

Post by billy »

Mark, many thanks for that - I will revisit my fiddles of early last year when I was installing my Davis station
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine Hours - how calculated

Post by mcrossley »

Today there was a bit of hazy high cloud around but still very sunny, you can see it dropped the percentage down to around 91-92% for most of the day. Those gin clear days are rare, though with the current lack of aircraft the skies are noticeably clearer than "normal" - not natural :(
hazier_day.png
You do not have the required permissions to view the files attached to this post.
User avatar
rogerthn
Posts: 499
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Sunshine Hours - how calculated

Post by rogerthn »

Please let me know if this should be a new topic but I'm puzzled regarding hours of sunshine and log rollover.
Looking at the console Now Sunshine Today it did say 4,4 hrs around 09:50, Today/Yesterday Hours of Sunshine did say 4.4 and 13.7 for yesterday.
The Chart Sunshine Hours didn't show the 12th until after 10, as expected since I've Log Rollover 9am with Use 10am in Summer.
I can now see 13.7 for the 12th on Chart Sunshine Hours
I've added #SunshineHours to https://rogerthn.se/weather3/index.htm, it looks like this isn't meteorological day value?
Image
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine Hours - how calculated

Post by mcrossley »

Correct, sunshine hours is a midnight to midnight value.
User avatar
rogerthn
Posts: 499
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Sunshine Hours - how calculated

Post by rogerthn »

mcrossley wrote: Mon 13 Jul 2020 9:05 am Correct, sunshine hours is a midnight to midnight value.
Thanks!
indexT.htm updated ;)
Image
User avatar
rogerthn
Posts: 499
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Sunshine Hours - how calculated

Post by rogerthn »

Getting there :P
I did increase Solar minimum (W/m2) from 0 to 10 i.e. sun hours is not increased if Solar Radiation is below 10?
Hours of sunshine yesterday did start to increase at 04:50, theoretical solar value was 0.
We'll see if I need to lower Solar minimum.
Image
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine Hours - how calculated

Post by mcrossley »

I think 10 is still very low - the error margins down at those levels are huge.
User avatar
rogerthn
Posts: 499
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Sunshine Hours - how calculated

Post by rogerthn »

mcrossley wrote: Wed 15 Jul 2020 9:21 am I think 10 is still very low - the error margins down at those levels are huge.
Thanks!
Trying with 15 and waiting for a morning without clouds, this morning it was 15 at 05:55 with a theoretical solar value of 39.
Image
Post Reply