91
Weather Website PHP/AJAX scripting / Re: MBtag rain0total-count
« Last post by hymrog on April 21, 2024, 05:15:44 PM »The reconstruct of the database did not solve the problem.
g
g
Problems with the forum? Please use Contact or PM saratogaWX with details. Thanks!
In #26 you have to setup 4 for 5 and above to create and upload
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).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