Aha. I began to suspect that. It's doing what I need it to for now. But will upgrade to 3.9.2 soon. Thx.
On Tue, Apr 14, 2020, 01:43 gjr80 <[email protected]> wrote: > Hi, > > The 'problem' is that you are using WeeWX v3.6.2 but reading the > Customization Guide for the current WeeWX release which is v3.9.2 - and > things have changed. What label formatting options you want will determine > what tag you should use, $current.leafTemp1.formatted will use the > skin.conf defined format but no label, > $current.leafWet1.no_label(string_format, > NONE_string) will use no label but requires a user specified string > format and None string in the tag. > > You will find the guides for your WeeWX version on your WeeWX machine in > /usr/share/doc/weewx or /home/weewx/docs depending on your install type. > Unless you have special glasses for reading HTML you will need to view them > in your browser. Alternatively, you can view the Formatting options section > of the 3.6.2 Customization Guide here > <https://htmlpreview.github.io/?https://github.com/weewx/weewx/blob/v3.6.2/docs/customizing.htm#formatting_options> > - bear in mind though that most links won't work. And or of course you > could upgrade to v3.9.2 :) > > Gary > > On Tuesday, 14 April 2020 07:33:23 UTC+10, Messy Potamia wrote: >> >> Trying to change the default format in reports for leafTemp1 from "degF" >>> to nothing, or just 2.2f, so followed the guide, >>> http://www.weewx.com/docs/customizing.htm#formatting_options, to >>> current.leafTemp1.format(add_label=False) >>> >> and I'm getting all kinds of errors. Just changed to .format(), since doc >> says it's an option, now I "only" get these errors: >> Apr 13 23:20:17 RPI3 weewx[25402]: cheetahgenerator: Generate failed with >> exception '<type 'exceptions.TypeError'>' >> Apr 13 23:20:17 RPI3 weewx[25402]: cheetahgenerator: **** Ignoring >> template /home/weewx/skins/Standard/week.html.tmpl >> Apr 13 23:20:17 RPI3 weewx[25402]: cheetahgenerator: **** Reason: format >> () takes at least 2 arguments (1 given) >> Apr 13 23:20:17 RPI3 weewx[25402]: **** Traceback (most recent call last >> ): >> Apr 13 23:20:17 RPI3 weewx[25402]: **** File >> "/home/weewx/bin/weewx/cheetahgenerator.py", line 315, in generate >> Apr 13 23:20:17 RPI3 weewx[25402]: **** print >> _file, text >> Apr 13 23:20:17 RPI3 weewx[25402]: **** File >> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in >> __str__ >> Apr 13 23:20:17 RPI3 weewx[25402]: **** rc = getattr(self, >> mainMethName)() >> Apr 13 23:20:17 RPI3 weewx[25402]: **** File >> "_home_weewx_skins_Standard_week_html_tmpl.py", line 1095, in respond >> Apr 13 23:20:17 RPI3 weewx[25402]: **** File >> "_home_weewx_skins_Standard_week_html_tmpl.py", line 322, in >> __errorCatcher37 >> Apr 13 23:20:17 RPI3 weewx[25402]: **** File "<string>", line 1, in >> <module> >> Apr 13 23:20:17 RPI3 weewx[25402]: **** TypeError: format() takes at >> least 2 arguments (1 given) >> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator: Generate failed with >> exception '<type 'exceptions.TypeError'>' >> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator: **** Ignoring >> template /home/weewx/skins/Standard/index.html.tmpl >> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator: **** Reason: format >> () takes at least 2 arguments (1 given) >> Apr 13 23:20:19 RPI3 weewx[25402]: **** Traceback (most recent call last >> ): >> Apr 13 23:20:19 RPI3 weewx[25402]: **** File >> "/home/weewx/bin/weewx/cheetahgenerator.py", line 315, in generate >> Apr 13 23:20:19 RPI3 weewx[25402]: **** print >> _file, text >> Apr 13 23:20:19 RPI3 weewx[25402]: **** File >> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in >> __str__ >> Apr 13 23:20:19 RPI3 weewx[25402]: **** rc = getattr(self, >> mainMethName)() >> Apr 13 23:20:19 RPI3 weewx[25402]: **** File >> "_home_weewx_skins_Standard_index_html_tmpl.py", line 1037, in respond >> Apr 13 23:20:19 RPI3 weewx[25402]: **** File >> "_home_weewx_skins_Standard_index_html_tmpl.py", line 182, in >> __errorCatcher17 >> Apr 13 23:20:19 RPI3 weewx[25402]: **** File "<string>", line 1, in >> <module> >> Apr 13 23:20:19 RPI3 weewx[25402]: **** TypeError: format() takes at >> least 2 arguments (1 given) >> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator: Generated 12 files >> for report StandardReport in 4.00 seconds >> Apr 13 23:20:20 RPI3 weewx[25402]: genimages: Generated 12 images for >> StandardReport in 0.77 seconds >> Apr 13 23:20:20 RPI3 weewx[25402]: reportengine: copied 14 files to /home >> /weewx/public_html >> Apr 13 23:20:40 RPI3 weewx[25402]: reportengine: ftp'd 38 files in 19.90 >> seconds >> >> My weewx is 3.6.2, it's not a version problem is it? >> It's late here (Sembach, Germany), I hope I didn't fat finger a typo with >> all the editing, but I've checked and it looks clean. >> Thanks ---- >> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/QoUlovvIZoI/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-user/00726158-cc77-489f-b0ae-a895fe054bea%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/00726158-cc77-489f-b0ae-a895fe054bea%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAB7-S74akk1EXa3OVfWGq10qB_wQi_yr%2BqYu0i8-bCbrzgqr9Q%40mail.gmail.com.
