Hi All,
I'd like to have information over the last 24 hours and I thought I could easily achieve this by defining a $span tag but it's not worked out as I thought.
I've defined the tag as $span($hour_delta=24) and as $span($day_delta=1) both give the same results.
To test I changed the Seasons statstics.inc to include my 24hrs as follows;
#set $archive_data = [$day,$yesterday,$span($hour_delta=24), $week,$seven_day, $month, $year, $alltime]
This seems to work ok as shown below
But there is the occasional anomaly for example looking at the min Barometer it shows;
984.9 for today @ 10:38:36
988.1 for yesterday @ 09:54.36 and
985.0 for last 24 hours @ 10:20
I was expecting the min for last 24 hrs to be equal to or less than today's value (984.9 is less than 985) but it's not, why is that?
It doesn't just happen with min barometer it is the same with max temp which was yesterday's example.
Appreciate your thoughts
Thanks in Advance
Mike
extract from Seasons statistics.inc showing min Barometer
<tr>
<td class="label">$obs.label.barometer</td>
<td class="units">$unit.label.barometer</td>
#for $archive in $archive_data
<td class="data new_row">$archive.barometer.max.format(add_label=False)<br/>
<span class="timestamp">$archive.barometer.maxtime</span><br/>
$archive.barometer.min.format(add_label=False)<br/>
<span class="timestamp">$archive.barometer.mintime</span>
</td>
#end for