Okay, upgrade to 3.9.2, (with Standard skins), went without a hitch. Made a 
few edits to skin.conf and the .tmpls. Yes now the format options work. 
Still trying to find where all the right places are to make the changes to 
formats I need. 
----
Going to try to add a "yesterday" tab between "current", "week", ...   if 
you have an abbreviated short list of steps, I'd be grateful.

Thanks,
Phil

===========================
On Tuesday, April 14, 2020 at 1:42:55 AM UTC+2, gjr80 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 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/ed30ee8d-2bb4-46bf-8ee9-3fc5fc728bf8%40googlegroups.com.

Reply via email to