#if $day.rain.sum.raw <p>There's rain!</p> #else <p>No rain today. :-(</p> #end if
should do it -tk On Mon, Jan 30, 2017 at 3:36 PM, Barton Phillips <bartonphill...@gmail.com> wrote: > I want to show the rain only when there is rain. I tried > #if $day.rain.has_data > <img src="dayrain.png" alt="rain" /> > #end if > > But that does not seem to work in the skins/Standard/index.php.tmpl file. > I always get the blank rain png. > > PS I am now using 3.7 and it seems to work OK so far. > > -- > 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. > 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.