I haven't tried it, but form the docs, 
file:///usr/share/doc/weewx/customizing.htm#general_aggregation_periods, I 
would think something like this would work.  If you were using the Seasons 
skin I would add it to "current.inc".
   <tr>
       <td class="label">$obs.label.Rainfall Yesterday</td>
        <td class="data">$$day($days_ago=1).rain.sum</td>
</tr>


On Sunday, June 14, 2020 at 2:04:32 PM UTC-6, Dale Reid wrote:
>
> While yesterday's rain total isn't exactly a current condition, I would 
> like to have the display page show the amount of rain from yesterday.
>
> I know there are different ideas on when rain totals should zero out, but 
> I'm asking for something slightly different, and for me, would add to the 
> usefulness.
>
> I'm thinking of the situation that often occurs when a storm series moves 
> through, with say 1/2" or so of rain before midnight, then even more after 
> midnight, say 1/4" in the new day.
>
> It is really all the same storm, and not worth the logic to have it done 
> automatically, but to glance at the summary page and see today's rain is 
> 1/4", when the storm total is 3/4" would really work better to list what 
> yesterday's rain was right after today's total so far.
>
> I don't know how the inner structure of WeeWx works, so one way would be, 
> if the variable is available, to have today's rain total saved at midnight 
> to a new variable called YesterdayRain, then zero the today's rain 
> variable.  It seems simple,but I don't know if the ordinary user would have 
> the ability to modify WeeWx to make this work.
>
> Is there already this Yesterday's Rain value available, and if so by what 
> name? 
>
> Can we add a display line to the skin that generates the standard page, or 
> not?
>
> Another way to do it would be have the database total up yesterdays rain 
> with a date range but this seems to be a lot of work, involve accessing the 
> data base for no added reason, if one just had the YesterdaysRain already 
> stored.
>
> Just some thoughts. So far this is the only tweak I've thought of that 
> WeeWx doesn't seem to already do.  Python is really beyond my current 
> skills, and while I know some might whip this together in short order with 
> their programming knowledge, I don't know how to find the stored variables 
> already, or fiddle around with it and screw something up.
>
> Dale
>
> ecwx.info/weewx
>
> (There are no error logs, there is nothing to submit, other than my idea).
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f1c83484-b283-4ec4-b97d-8e4a7e48cacdo%40googlegroups.com.

Reply via email to