- Code: Select all
rainin - [rain inches over the past hour)] -- the accumulated rainfall in the past 60 min
dailyrainin - [rain inches so far today in local time]
I'd like to keep the plugin API-specific, so I think you have a couple options. If you're using the WUnderstation plugin together with the WUnderground plugin, you can pull yesterday's precip from WUnderground.
You could also create a variable and a couple triggers to track it. Create your variable and then create a trigger to update the variable any time your precip value is greater than the variable value (to get the highest number for the day), then create another trigger to zero out the variable value when it's a new day (say, at 00:00:01, or something like that). You could also do it with a simple Python script which I'd be happy to help you gin up.
If WU ever adds yesterday's precip to the API, I'd be happy to include it.
[Moderator's Note] Moved to the proper thread.