Thanks for spotting this, Graham. A very subtle typo! Fixed in commit a4d482b <https://github.com/weewx/weewx/commit/a4d482b8e2545a39b1f84ccf9f71fc6ffc3291ba>
-tk On Mon, Nov 15, 2021 at 1:39 AM Graham Eddy <[email protected]> wrote: > (third attempt at post - not getting error msg posting online except > ‘failed to post’) > > i might have explanation why beta7 installation left out vast chunk of > weewx.conf, including everything about units. > see following lines in ~weewx/bin/weewx/defaults.py, which shows embedded > quotes that surely caused run-time error during installation: > knot = " knots" > knot2 = " knots" > kPa" = " kPa", > kPa_per_hour" = " kPa/h", > liter" = " l", > litre" = " l", > lux" = " lx", > mbar = " mbar" > mbar_per_hour = " mbar/h" > > > *_____________Graham Eddy* > > On 14 Nov 2021, at 11:42, Graham Eddy <[email protected]> wrote: > > that fixed the IndexError crashing cheetah while generating Seasons, and > files are generated without errors > > now what i see in the generated files is US units, whereas i selected > metric units during clean install. > same config files as i submitted last time; i can resubmit for convenience > > (i know how to fix these things; i am trying the beta from scratch and > looking for glitches) > cheers > > On 13 Nov 2021, at 23:53, matthew wall <[email protected]> wrote: > > graham, > > please try this fix. in bin/weewx/units.py, change line 652 from this: > > return label[1] if plural else label[0] > > to this: > return label[1] if plural and len(label) > 1 else label[0] > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-development" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-development/h_NNrIk830s/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-development/90ac1568-6f4b-444e-aecb-2358e923ce9en%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/90ac1568-6f4b-444e-aecb-2358e923ce9en%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/30F96001-4BFA-46A2-BC52-183103B0C959%40gmail.com > <https://groups.google.com/d/msgid/weewx-development/30F96001-4BFA-46A2-BC52-183103B0C959%40gmail.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/CAPq0zEBDS-dx1HxuO8uOH5d5KEQMqAjVJpxAZ3%2BkG_LZhi0m6Q%40mail.gmail.com.
