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
Sunshine hours in minutes?
Moderator: mcrossley
-
NigelG
- Posts: 15
- Joined: Tue 24 Nov 2020 12:31 am
- Weather Station: Froggit WH3000SE + DP1500
- Operating System: Raspberry PI prebuilt image
Sunshine hours in minutes?
Is it possible to extract sunshine hours in minutes from Cumulux MX somehow? The reason behind this apparently contradictory question is my use of the somewhat idiosyncratic WsWin software for long term weather analysis. This requires sunshine duration to be provided from Cumulus MX to WsWin as the number of minutes recorded in each logging interval. Cumulux MX only provides a resolution of 0.1 hours in the standard monthly log. I am currently using the standard logging interval of 10 minutes. Changing my logging interval to a multiple of 6 minutes may provide a solution but I don't really want to mess with a good working system.
NigelG
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Sunshine hours in minutes?
Well, David is just ahead of me and I think that is the only solution.
Nevertheless, if you really want the sunshine per interval in minutes you will have to do some arithmetic as the webtag #SunshineHours only gives hours so far, you will have to make the difference with the previous value and convert that from hrs to minutes.
That works if you want to use webtags. But from your post I understand you want to use the monthly log. In there you find the value of the webtag in field 24 (hrs of sunshine today so far) and you will have to do the same calculation as with the webtag. So it depends a bit on how you are calculating.
There is a problem however, when you start analyzing the monthly logfiles you will notice that the interval in longer series is not constant and apart from not being constant you will find there are gaps. That will lead to errors in hrs of sunshine. I assume (not sure, neither do I know how the webtag values vary with disturbances in the interval value).
In my CumulusUtils I took another approach (because I also needed to calculate the energy for the whole day it was not really additional work):
Well, many roads to Rome. Hope it helps a bit
Nevertheless, if you really want the sunshine per interval in minutes you will have to do some arithmetic as the webtag #SunshineHours only gives hours so far, you will have to make the difference with the previous value and convert that from hrs to minutes.
That works if you want to use webtags. But from your post I understand you want to use the monthly log. In there you find the value of the webtag in field 24 (hrs of sunshine today so far) and you will have to do the same calculation as with the webtag. So it depends a bit on how you are calculating.
There is a problem however, when you start analyzing the monthly logfiles you will notice that the interval in longer series is not constant and apart from not being constant you will find there are gaps. That will lead to errors in hrs of sunshine. I assume (not sure, neither do I know how the webtag values vary with disturbances in the interval value).
In my CumulusUtils I took another approach (because I also needed to calculate the energy for the whole day it was not really additional work):
- Loop over all entries of a day and if the theoretical sunshine max > 0 use the row for calculation
- Detect the interval size by calculating the time difference to the next row
- Calculate if the sunshine is counted in that interval i.e. radiation > theoretical max radiation * SunThreshold (SunThreshold you find in settings)
- If sunshine is counted, assume it is valid for the detected interval period so set your SunshineHrs = SunshineHrs + IntervalDuration
- Goto the next interval
Well, many roads to Rome. Hope it helps a bit
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
-
NigelG
- Posts: 15
- Joined: Tue 24 Nov 2020 12:31 am
- Weather Station: Froggit WH3000SE + DP1500
- Operating System: Raspberry PI prebuilt image
Re: Sunshine hours in minutes?
Thank you for your suggestions. I shall have to experiment with the theoretical and measured values on every sample to see how the result compares with the value derived by Cumulus MX. Hopefully, I can align the results on a sufficiently large sample.
NigelG