seems a very strange thing to want to evaluate anyway - subtracting a 
humidity value from a temperature value!!



On Sunday, 7 July 2019 15:13:35 UTC+3, gjr80 wrote:
>
> Hi,
>
> 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
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/81e08575-3c57-44d5-8314-5f31295580a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to