<p>The temperature 24 hours ago was $current(timestamp=$current.dateTime.raw-86400).outTemp</p>
--
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/571e351c-cbbc-446a-8cc5-e7e96fa95a42%40googlegroups.com.
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 <messyp...@gmail.com> 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 weewx...@googlegroups.com.
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/207b4e40-894c-42d2-88bc-9e1b4a31d7eb%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/207b4e40-894c-42d2-88bc-9e1b4a31d7eb%40googlegroups.com.
in skin.conf:
[[yesterday_images]]
# x_label_format = %H:%M
# bottom_label_format = %x %H:%M
# time_length = 97200 # == 27 hours
# axis_label_font_size = 8
x_label_format = %d
bottom_label_format = %m/%d/%y %H:%M
time_length = 172800 # == 2 days
#aggregate_type = avg
aggregate_interval = 10800 # == 3 hours
show_daynight = true
[[[yesterdaybarometer]]]
time_length = 172800 # == 2 days
[[[[barometer]]]]
[[[yesterdaytempdew]]]
time_length = 172800 # == 2 days
[[[[outTemp]]]]
[[[[dewpoint]]]]
[[[yesterdayrain]]]
# Make sure the y-axis increment is at least 0.02 for the rain plot
time_length = 172800 # == 2 days
yscale = None, None, 0.02
plot_type = bar
[[[[rain]]]]
aggregate_type = sum
aggregate_interval = 3600
label = Rain (hourly total)
[[[yesterdaypond]]]
time_length = 172800 # == 2 days
yscale = None, None, 0.5
[[[[extraTemp1]]]]
[[[yesterdayDnldSpd]]]
time_length = 172800 # == 2 days
yscale = 5, 50, 5
[[[[leafTemp1]]]]
label = Vega-Net MB/sec
[[[yesterdaywind]]]
time_length = 172800 # == 2 days
[[[[windSpeed]]]]
[[[[windGust]]]]
[[[yesterdayinside]]]
time_length = 172800 # == 2 days
[[[[inTemp]]]]
label = Fish Pond Temp
[[[yesterdaywinddir]]]
time_length = 172800 # == 2 days
# Hardwire in the y-axis scale for wind direction
yscale = 0.0, 360.0, 45.0
[[[[windDir]]]]
<!-- 48-hr plots -->
<div class="header">
<h3>(48-hr Plots)</h3>
</div>
<div id="plots">
<img src="yesterdaytempdew.png" alt="temperatures" />
<img src="yesterdayrain.png" alt="rain" />
<img src="yesterdaywind.png" alt="wind" />
<img src="yesterdaybarometer.png" alt="barometer"/>
<img src="yesterdaywinddir.png" alt="Hi Wind" />
<img src="yesterdayinside.png" alt="Inside" />
<img src="yesterdayDnldSpd.png" alt="Download" />
#if $week.extraTemp1.has_data
<img src="weekpond.png" alt="Pond Temperatures" />
#end if
</div>
<!-- end 48-hr plots -->
.png?part=0.1&view=1)

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/09a5af02-10d7-4c23-a44a-397e491cbc13%40googlegroups.com.