You need to surround the expression with $(...) to get Cheetah to evaluate it, instead of just turn it into HTML. So, you want
$($current.extraTemp6.raw - $current.extraHumid6.raw) -tk On Sun, Jul 7, 2019 at 5:00 AM Mic G77 <[email protected]> wrote: > Hello, > in the current.html.tmpl, i have written this code: > <td > class="stats_data">$current.extraTemp6.raw-$current.extraHumid6.raw</td> > > I was expecting an evaluation of > $current.extraTemp6.raw-$current.extraHumid6.raw > but i get (i suppose a string) : 13.7-70.0 > > How could the template evaluate the expression ? > I think it is possible because in the user_guide ( > usr/share/doc/weewx/customizing.htm#Comprehensive_example), I've seen this > line : > > <td>$hour.start.format("%H:%M")-$hour.end.format("%H:%M")</td> > > > > Thanks in advance, > > Mic > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/d10751ed-ce27-465f-a19c-acffde9f3c8c%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/d10751ed-ce27-465f-a19c-acffde9f3c8c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEA6uqZZPv9OEyKQLTJBtyqxhfRXwDQJJseVz5D%2BLnfw2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
