Turn on the Hose Piston


#1

Each day right before midnight I want to capture the total rain total for the day, so I created a variable yesterday_rain in an attempt to do so.

Yesterday we received 1.7 in. of rain, but whenever the piston sets the variable it only sets it as “1”.

Also, the I would like the “if” statement to only trigger when there has been less than “.5” in. of rain and for some reason I cannot enter in a number between 0 and 1.

Piston attached.


#2

I wonder if it would help to switch the variable type from dynamic to Number (decimal)… it seems like the dynamic variable may have assumed you’re working with integers rather than decimals. That may not be the whole of the problem but should at least help with the < .5 in logic.