I am not sure if this belongs here or over in the PWS_Dashboard stuff, but i have the WU History/Reports installed in my PWS menu and its working just fine.
I notice, however, that in counting the raindays per month in the reports, it counts the “0” days as a rainday such that the total number of rain days each month is always the number of days in the month.
I have stared for some time at the code in the WUReports directory and see where i think its counting the number of days, but a solution exceeds my understanding and knowledge.
Hmm, i wonder if we have the same files dates. Mine are dated 2021-5-10 in the WUReports directory, with a version 4.04, except for those without dates that are v. 4.0.
After considerable bleary-eyed staring at the code, i found, what i think is the problem. Both in wsReportsSum.php (@ line 220) and in wsReportsDaily.php (@ line 198) is the line $value = @arrTotals[1][$k];
arrTotals[1] holds the number data elements in the array (i.e. the number of days in the month) whereas arrTotals[4] holds the number of non-zero data elements.
changing arrTotals from 1 to 4 on those two lines results in correct raindays in all the reports. The seasonal summary had some wildely creative totals, but this change brought everything into line.
I don’t understand that either. But look at your seasonal total raindays. They don’t look right. I think i remember seeing the decimal place difference somewhere in the unit normalization code which doesn’t differentiate between rainfall and raindays.
I saw that older thread, but didn’t learn much from it.
Interestingly, raindays in the older version of Reports installed on my 1907 dashboard (access from Menu on 2012_lts) all work fine with $value = $arrTotals[1][$k];