>
> 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f1da88b7-ec6b-41c0-acac-b33504250045%40googlegroups.com.

Reply via email to