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/ae233b06-5ff7-46e3-9f8d-f9f866505cf0n%40googlegroups.com.

Reply via email to