I had a feeling I was missing something! Perfect, thanks Tom!
On Monday, August 13, 2018 at 8:54:48 AM UTC-4, Tom Keffer wrote: > > Would the $unit > <http://weewx.com/docs/customizing.htm#_________Tag_$unit_______> tag > work for you? > > -tk > > On Sun, Aug 12, 2018 at 7:31 PM Pat O'Brien <p...@obrienphoto.net > <javascript:>> wrote: > >> Google Groups seems to be having a hard time tonight. Sorry if this is >> the 3rd post. This is my 3rd attempt at asking the question... >> >> >> I know I can get the observation for windSpeed pretty easily using >> $current.windSpeed.formatted, but I'm also looking for the unit label >> isolated on it's own. >> >> This will change based on the locale, so I wanted to see if there was a >> Cheetah tag for this? Or do I have to do something like the below in a >> search list extension? >> >> >> target_unit_nickname = self.generator.config_dict['StdConvert'][ >> 'target_unit'] >> target_unit = weewx.units.unit_constants[target_unit_nickname. >> upper()] >> converter = weewx.units.StdUnitConverters[target_unit] >> speed = converter.group_unit_dict["group_speed"] >> windSpeedUnitLabel = self.generator.skin_dict["Units"]["Labels"][ >> speed] >> >> >> I'm OK with the SLE, but wanted to make sure I wasn't overlooking a >> built-in tag for this information. >> >> Thanks >> >