Hi,
I've enabled windrun, and it seems to be writing to the database and functioning normally. For my skin I'm running Seasons but adding a couple of data points. I now want to add windrun to my statistics page, and it seemed like it should function exactly like rain would, since the both aggregate on a daily basis.
Rain <tr> looks like:
<tr>
<td class="label">$obs.label.rain</td>
<td class="units">$unit.label.rain</td>
#for $archive in $archive_data
<td class="data new_row">$archive.rain.sum.format(add_label=False)</td>
#end for
</tr>
My new windrun <tr> looks like:
<tr>
<td class="label">$obs.label.windrun</td>
<td class="units">$unit.label.windrun</td>
#for $archive in $archive_data
<td class="data new_row">$archive.windrun.sum.format(add_label=False)</td>
#end for
</tr>
But for some reason this isn't taking the "max sum" for the day like Rain does, it's adding it for the whole week. Here's the HTML output for both (Today in column 1 and Week in column 2) and the last 10 archive_day records for both from the database. There's the 0.76 for rain. But it's adding the windrun all together to make 66.7 for the week, rather than taking 31, the highest value so far for the week. 8.75 + 27.0 + 31.0 = 66.75. Why are they behaving differently?