Versti pranešimą į lietuvių *On Thursday, December 26, 2013 3:54:03 PM UTC-5, Derek Sedunary wrote:* > > *I will have a look at it to night and post some instructions of what I > did to get around the problem. May be Matt will come up with a better > solution. * >
*here is a rather invasive approach, but it works. a cmon plot is attached.i patched units.py so that it will recognize the data labels from cmon, and so that it will understand bytes, kilobytes, megabytes, gigabytes, and terabytes. these are in a new group called group_data. technically it is only scaling from one to another, not units conversions. but weewx does not (yet) distinguish between units conversions and scaling.i consider this a hack job. or perhaps proof-of-concept to explore our options. long-term we should make units extensible instead of hard-coding new types into the group and conversion definitions.here is how to do it:1) install the attached units.pymv bin/weewx/units.py bin/weewx/units.py-origcp /var/tmp/units.py bin/weewx/units.py* *mwall*Is possible to update units.py file to meet weewx 3.8.2 syntax (old attached file does not work) Thanks Andrej 2013-12-27 -- 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.
