Internally, weewx traffics in ValueTuples, which is a value along with a
measurement unit. SI Units are things like "second", "meter", "kilogram,"
etc. not "seconds", "meters", and "kilograms".  See NIST
<https://www.nist.gov/pml/owm/metric-si/si-units>. So, internally, that's
what we want.

Now when we talk with humans, we may want to use plurality if there is
likely to be more than one, but that requires a mapping to and from the
singular value used internally. WeeWX already has some software that does
the transition from internal (SI) units to language, so I suppose we could
write something to go the other way.

It all seems unnecessarily complicated, but if someone wants to write a PR,
I'm willing to take a look.

-tk


On Sat, Apr 1, 2023 at 4:51 AM G Hammer <[email protected]> wrote:

> If I'm asking someone which system they use, I have never asked foot or
> meter. It's always do you prefer feet or meters.
>
> On Monday, March 27, 2023 at 10:15:37 PM UTC-4 Peter Fletcher wrote:
>
>> I was certainly really thinking about the underlying code rather than the
>> installation script. When specifying units of measurement, I think that
>> using the singular form (foot or meter) is the quirky approach!
>>
>> On Monday, March 27, 2023 at 9:46:06 PM UTC-4 Graham Eddy wrote:
>>
>>> i agree that this is what is being asked for, which is some kind of
>>> free-format description of altitude in local quirky dialect (i exaggerate
>>> for effect).
>>> i think what is presently provided is the correct approach i.e.
>>> unequivocal in a supported weewx unit system
>>> *⊣GE⊢*
>>>
>>> On 28 Mar 2023, at 12:36 pm, Vince Skahan <[email protected]> wrote:
>>>
>>> I think they're asking that the underlying code use plural for altitude
>>> because it is unlike the altitude would ever be 1 foot/meter regardless of
>>> whether it's a pip/apt/yum installation.   (it's always 0 or 2 or 123
>>> feet/meters etc.)
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" 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-development/3b39341b-6d61-4339-b8f7-d9e6072273c4n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/3b39341b-6d61-4339-b8f7-d9e6072273c4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zEDtqz5%3D5udtqCzXRi3bmybzgA58oRmhbKPTS5_mUdojiw%40mail.gmail.com.

Reply via email to