Monthly Rainfall Total **Solved**
Posted: Thu Aug 27, 2015 10:59 pm
I'm trying to have an email sent to me via "one time alarm" of the total rainfall for the month at the last day, last hour, last minute of the month. Here is what I have:
Raise Cond: ((([M] = 2 & [D] = 28) | ( ([M] = 4 | 6 | 9 | 11 ) & [D] = 30 ) | ( ([M] = 1 | 3 | 5 | 7 | 8 | 10 | 12 ) & [D] = 31 ) ) & ([h] = 23 & [m] = 59 & [s] = 20 ))
Clear Cond: ([hh] = 1) && ([mm]=1)
Output: Weather Station# Day [D] of Month [M], Total Rain This Month = [rain0total-monthsum=in.2] inches
Can anybody let me know where I'm going wrong. I understand that I might miss a small bit of rainfall at the end of the day and also leap year is not addressed.
Raise Cond: ((([M] = 2 & [D] = 28) | ( ([M] = 4 | 6 | 9 | 11 ) & [D] = 30 ) | ( ([M] = 1 | 3 | 5 | 7 | 8 | 10 | 12 ) & [D] = 31 ) ) & ([h] = 23 & [m] = 59 & [s] = 20 ))
Clear Cond: ([hh] = 1) && ([mm]=1)
Output: Weather Station# Day [D] of Month [M], Total Rain This Month = [rain0total-monthsum=in.2] inches
Can anybody let me know where I'm going wrong. I understand that I might miss a small bit of rainfall at the end of the day and also leap year is not addressed.