Thank you so much! I couldn’t for the life of me find that tag. On Tuesday, December 29, 2020 at 10:18:56 PM UTC-5 gjr80 wrote:
> Hi, > > Try using the $unit.unit_type.xxx tag > <http://weewx.com/docs/customizing.htm#Tag_$unit>, eg: > > The temperature is $current.outTemp. The units being used are > $unit.unit_type.outTemp. > > That should result in the following output: > > The temperature is 30º F. The units being used are degree_F. > > provided of course it is indeed 30.0F at the moment! > > Gary > > On Wednesday, 30 December 2020 at 12:36:15 UTC+10 Lee Bell wrote: > >> Is there a way to make weewx print out (or a way to programmatically >> determine) which units are being used, not just the label? I can use >> $units.label.xxx to get any particular label, but those are subject to >> changes for different languages, etc. Basically I’m trying to figure out if >> I can print “The temperature is 30º F. The units being used are degree_F.” >> Is that possible? > > -- 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/538f4050-4c47-4045-9ba7-14aedb9b882en%40googlegroups.com.
