Have a look at the Formatting options 
<http://weewx.com/docs/customizing.htm#formatting_options> section in the 
Customization Guide.
 
$xxxxx.windSpeed.raw will certainly give you a number (not a string) with 
no units and you can do whatever you want with the data but you will need 
to do all formatting manually. Also have a look at $xxxxx.windSpeed.format, 
it will give you a string and there are numerous arguments that can be 
passed to .format that do things such as omitting the units, specifying a 
format string, what to display if None etc. There are examples further down.

Gary 
On Monday, 21 December 2020 at 05:28:01 UTC+10 [email protected] wrote:

> I'm making a skin to display on a small screen (a 7" RPi LCD) and would 
> like to format the wind speed myself, but $windSpeed and all other wind 
> values seem to include the "mph" string. Is there a tag that is just the 
> numeric value?
>
> I guess one option is to use skin.conf to set the units to "", right? Is 
> there another way?
>
> Thanks for any suggestions!
>
>

-- 
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/a3f64902-6cc3-435e-bd07-4d1ead6817e4n%40googlegroups.com.

Reply via email to