Hi -
I am trying to implement a new Meteobridge template rain0total-count
the template is designed to count the number of rain days for a given period ie month/year However, when adding the template to MBtags-template.txt file wvar rain0total-mcount
wvar rain0total-ycount
instead of getting the count it looks the it is returning inches of rain instead of the actual day count. However, if you convert the returned amount in to millimeters the correct day count is returned(with slight rounding).
Example using the noted tags above.
MBtags.php returns:
rain0total-mcount|0.35|// :|:
for the current month when converted to mm is 8.9 when rounded to the nearest whole number matches the current rain days, 9, for the month April
rain0total-ycount|1.81|
for the current year when converted to mm is 45.9 when rounded to the nearest whole number is 46 which is the count of rain days for 2024
I cant quite track down how the calculation is being made so of anyone has any insight it would be appreciated.
g