If you put the template in the [[ToDate]] section it should do what you want. NB: $day is *since midnight*. If you want the last 24 hours, you probably want $span($day_delta=1).records.
On Sat, Apr 18, 2020 at 8:17 PM Ken C <[email protected]> wrote: > > Hello, > > Is it possible to create a template that outputs archive records for the > past 24 hours to a single file? > > The closest I've been able to find in the Customization Guide is using > [[SummaryByDay]] and a #for $record in $day.records loop, but rather than > generating a file for every day in the database, I want a single file that > has the last 24 hours on a rolling basis. > > Just need a point in the right direction. > > Cheers, > Ken C. > > -- > 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/ed09e52b-46e9-4905-b125-22814d9c5892%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/ed09e52b-46e9-4905-b125-22814d9c5892%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEAsc9A4egoKcKiNczSRsn3_duyHa33rfbkxxfRWcgSGeA%40mail.gmail.com.
