You could do something like this:

#set $now = $current.dateTime.raw
#set $ago24 = $now - 86400
<p>The temperature 24 hours ago was $current(timestamp=$ago24).outTemp</p>

NB: This assumes that there is a record exactly 24 hours ago. If you're
willing to settle for something within 10 minutes of 24 hours ago, the last
line would be:

<p>The temperature 24 hours ago was $current(timestamp=$ago24,
max_delta=600).outTemp</p>

-tk

On Thu, Mar 14, 2019 at 5:08 PM Pat <p...@obrienphoto.net> wrote:

> If you need a specific time, or "this hour yesterday", you would probably
> have to do a custom extension to get that data for you. Search the group
> here for some insight on those who've made custom extensions.
>
> On Thursday, March 14, 2019 at 6:41:16 PM UTC-4, Ferran Vidal Marginet
> wrote:
>>
>> Thank you Pat but, if I'm not wrong, the tag $yesterday can be used to
>> show some aggregations. But, how can I use this to show yesterday
>> temperature at a certain specific time, not an aggregation?
>> Many thanks!
>> Ferran
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to