Re: [weewx-user] Retrieving all archive records for the past 24 hours

33 views
Skip to first unread message

Thomas Keffer

unread,
Apr 19, 2020, 7:15:38 AM4/19/20
to weewx-user
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 <kenca...@gmail.com> 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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ed09e52b-46e9-4905-b125-22814d9c5892%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages