On Wednesday, 9 May 2018 11:52:58 UTC+10, Thomas Keffer wrote: > > As you're writing code for WeeWX, whether it's a search list extension, a > new service, or a driver, it's useful to get in the habit of checking > whether a value could be None. It's how WeeWX signals that a datum is > missing or bad. >
Am I on the right track with this snippet? I wasn't able to find any examples and I'm new to python/cheetah #if ($current.outTemp.degree_F.raw is not None and $current.dewpoint.degree_F.raw is not None and $station.altitude.foot.raw is not None) #set $cloudHeight = round((($current.outTemp.degree_F.raw - $current.dewpoint.degree_F.raw) * 1000 / 4.4 + $station.altitude.foot.raw) * .3048, 0) $cloudHeight|#slurp #else |#slurp #end if > -- 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.
