Hello,

is there any possibility how to debug weewx output to identify line in 
template which causes error? I had to restore snapshot of my machine from 
previous day backup and discovered this error which wasn't visible before. 
I am parsing API from openweather on several places and don't wanna go line 
by line and test. Thanks for hints.

Apr 17 06:10:17 new-weather-machine journal: weewx[5310] INFO weewx.restx: 
PWSWeather: Published record 2021-04-17 06:10:00 CEST (1618632600)
Apr 17 06:10:18 new-weather-machine journal: weewx[5310] INFO weewx.restx: 
OWM: Published record 2021-04-17 06:10:00 CEST (1618632600)
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: Generate failed with exception '<type 
'exceptions.ValueError'>'
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: **** Ignoring template 
/etc/weewx/skins/neowx/index.html.tmpl
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: **** Reason: could not convert string to float:
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: ****  Traceback (most recent call last):
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: ****    File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: ****      unicode_string = 
compiled_template.respond()
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: ****    File 
"cheetah__etc_weewx_skins_neowx_index_html_tmpl_1618632018_51_95540.py", 
line 1506, in respond
Apr 17 06:10:19 new-weather-machine journal: weewx[5310] ERROR 
weewx.cheetahgenerator: ****  ValueError: could not convert string to float:
Apr 17 06:10:25 new-weather-machine journal: weewx[5310] INFO 
weewx.cheetahgenerator: Generated 15 files for report StandardReport in 
7.57 seconds
Apr 17 06:10:25 new-weather-machine journal: weewx[5310] INFO 
weewx.reportengine: Copied 0 files to /var/www/html/weewx

-- 
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/6df33614-0b43-4873-8ce7-421d47090c7bn%40googlegroups.com.

Reply via email to