I'm trying to throw a virtual switch (Raining) when there's been at least 1 inch of rain in the past week to stop irrigation. I'm using local variables and I have some questions with regards to the following rule.
Note each day after midnight I shift the daily totals back one day and restart summing up the current day's precipitation. In the other runs I simply add to the current day's precipitation. The really wacky stuff starts then, when trying to get the total for the week and act on the total.
- Is "decimal" the correct type?
- Is the math I'm using going to bog down the hub (note I'm only running this rule 4x/day)?
- Is there a way to simplify the math? Particularly when I derive the total. Due to limitations in how RM allows changes in variables, it seems like I have to gradually build up the total.
- Is there a simpler way to do all of this?
- Am I crazy doing this?