<td>$hour.start.format("%H:%M")-$hour.end.format("%H:%M")</td>What you saw in the template was not an evaluation (arithmetic) as such, but simply showing two times in hour:minute format separated by a hyphen, much like the result from your code. To do in-template arithmetic you need to have some in-line python code to do the arithmetic and assign the result to a variable then use the variable as a tag later in your template. Something like (untested):
#set $my_result = $current.extraTemp6.raw-$current.extraHumid6.raw
<td class="stats_data">$my_result</td>
The above is a very simplistic example (formatting will probably not be what you want) but it gives you a start. You will find in-line python in a number of the templates included with WeeWX.
Gary
$($current.extraTemp6.raw - $current.extraHumid6.raw)
--
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/d10751ed-ce27-465f-a19c-acffde9f3c8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.