making units case-insensitive would mean that all of these are equivalent: 
foot, Foot, fooT, FOOT.  currently there are some mixed-case units, so 
these would also be equivalent: degree_C, degree_c, Degree_c, Degree_C

there are a few contexts where this matters:

a) specifying unit-related parameters in weewx.conf
  altitude
  StdQC
  many uploaders
b) specifying unit groups in skin.conf (and weewx.conf overrides)
c) specifying unit labels in skin.conf (and weewx.conf overrides)
d) specifying unit formats in skin.conf (and weewx.conf overrides)

to make units case-insensitive across all of weewx, then any code that 
reads from these sources must be modified to do case-insensitive 
comparisons.  there is a fair amount of this in the restful code, a little 
bit in some of the drivers, a lot in the wxservices, and a great deal in 
the uploaders and forecasting extensions.

given how many different places in the code do case-sensitive comparisons 
for units, a weewx-wide change to case-insensitivity is probably a 4.x kind 
of change...

the existing unit groups are all lower case, so there is probably no value 
in making unit groups case-insensitive.

m 

-- 
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.

Reply via email to