I suspect it is easy enough to change to have rainfall in mm and snow in
cm, though it will be at the expense of creating an orphan. I am not
familiar with the latest forecast templates but if Mathew is true to form
he will have used ValueHelpers for his tags (I had a quick look at one
template and that appears to be the case) so you can use the dot code
<http://weewx.com/docs/customizing.htm#The_dot_code> to force a particular
unit for a particular tag in the template. For example:
$period.qsf.nolabel('%.2f',' ')
would use whatever default units are defined in weex.conf/skin.conf. You
can force this to cm by using:
$period.qsf.cm.nolabel('%.2f',' ')
As I said the price you pay is your template is an orphan, you can no
longer (1) automatically change units from weex.conf/skin.conf (well you
can but any tags you force in the template will not chnage) and (2) if you
upgrade the templates when the next version is released you lose your
changes.
Gary
On Sunday, 11 December 2016 12:27:02 UTC+10, Louis De Lange wrote:
>
>
> It was absolutely a matter of formatting. With the right formatting I can
> round to whole numbers of rain or snow.
>
> I would prefer to display rain in mm and snow in cm, but there is only one
> group unit for precipitation.
>
>
>
--
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.