Nice !! Many thanks for your answer
On Wednesday, October 18, 2017 at 12:47:29 AM UTC+2, Tom Keffer wrote: > > Use the .raw <http://weewx.com/docs/customizing.htm#formatting_options> > suffix > > #if $current.outTemp.raw > 30.0 > <p>It's hot!</p> > #else if $current.outTemp.raw > 20.0 > <p>Nice temperature</p> > #else > <p>It's cold!</p> > #end if > > On Tue, Oct 17, 2017 at 3:32 PM, zemadmat <[email protected] > <javascript:>> wrote: > >> Hi, >> >> I try to customize the layout with some image. This should be based on >> the value of the current.outTemp. >> <tr> >> <td class="stats_label">Exterieur $current.outTemp</td> >> #if $current.outTemp < 200.0 >> <td class="stats_data"><i class="material-icons">face</i>FROID >> $current.outTemp</td> >> #end if >> #if $current.outTemp > 200.0 >> <td class="stats_data"><i class="material-icons">wb_sunny</i>CHAUD >> $current.outTemp</td> >> #end if >> </tr> >> >> The value in the DB is about 55 and it is display 12.4°C. and i have >> always the same result it display CHAUD follow by the temp value. >> >> How can i compare the current.outTemp value in order to have a specific >> image depending on a given threshold. >> >> Cheers >> >> -- >> 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] <javascript:>. >> 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]. For more options, visit https://groups.google.com/d/optout.
