The two tags serve different purposes. The tag $yesterday represents an
*aggregation* over the day. The tag $current represents a single record.
There is an undocumented feature in v3.9.2 (documented in V4.0) that gets
you what you want:

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


-tk

On Fri, Apr 17, 2020 at 7:01 AM Messy Potamia <[email protected]>
wrote:

> The high/low table is working, showing but I'd like to get the upper table
> in yesterday.html.tmpl  to show the data from 86400 seconds ago, or one
> day ago, $day($days_ago=1), or $yesterday.  This doesn't seem to be working.
> In otherwords, on my Yesterday page, (weewx 3.9.2 Standard skins) I'd like
> it to show the same data as if you looked at it exactly 24 hrs ago.
> When I replace the $current.outTemp with $yesterday.outTemp,  it generates
> an error.
> Any ideas?   Thanks--
>
> --
> 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/571e351c-cbbc-446a-8cc5-e7e96fa95a42%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/571e351c-cbbc-446a-8cc5-e7e96fa95a42%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/CAPq0zEDKtRv2tsEURbDMMR7_qCitit8pWj7ufi8Qj4W6r60GYA%40mail.gmail.com.

Reply via email to