Ah, yes this error a Belchertown error. I see why, I don't have the 
conditional wrapped around it. Oops. I just pushed a commit to fix it 
<https://github.com/poblabs/weewx-belchertown/commit/24810fc99a6c530cd6ce689367e1419c1e0726e9>
. 

You're using the beta version of the skin, replace your 
weewx_data.json.tmpl with this one from the commit 
<https://github.com/poblabs/weewx-belchertown/blob/24810fc99a6c530cd6ce689367e1419c1e0726e9/skins/Belchertown/json/weewx_data.json.tmpl>
 
and see how it goes?



On Friday, February 14, 2020 at 11:48:41 AM UTC-5, ed100 wrote:
>
> got related error--from syslog:
>
> Feb 14 10:45:33 localhost weewx[22817] INFO weewx.restx: MQTT: Published 
> record 2020-02-14 10:45:00 CST (1581698700)
> Feb 14 10:45:33 localhost weewx[22817] INFO user.belchertown: version 1.1b8
> Feb 14 10:45:34 localhost weewx[22817] INFO user.belchertown: New forecast 
> file downloaded to 
> /var/www/html/weewx/belchertown/json/darksky_forecast.json
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: 
> Generate failed with exception '<class 'NameMapper.NotFound'>'
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /home/weewx/skins/Belchertown/json/weewx_data.json.tmpl
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'max' while searching for 'day.radiation.max'
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> Traceback (most recent call last):
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generate
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     unicode_string = compiled_template.respond()
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "_home_weewx_skins_Belchertown_json_weewx_data_json_tmpl.py", line 
> 565, in respond
> Feb 14 10:45:35 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> NameMapper.NotFound: cannot find 'max' while searching for 
> 'day.radiation.max'
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: 
> Generate failed with exception '<class 'SyntaxError'>'
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /home/weewx/skins/Belchertown/graphs/index.html.tmpl
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: **** 
> Reason: invalid syntax 
> (_home_weewx_skins_Belchertown_graphs_index_html_tmpl.py, line 192)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> Traceback (most recent call last):
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 828, in 
> compile
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     source, file, generatedModuleCode, exception=e)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 2044, in 
> genParserErrorFromPythonException
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     reader = SourceReader(source, filename=filename)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/usr/lib/python3/dist-packages/Cheetah/SourceReader.py", line 19, 
> in __init__
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     self._srcLen = len(src)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> TypeError: object of type 'NoneType' has no len()
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> During handling of the above exception, another exception occurred:
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> Traceback (most recent call last):
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     filtersLib=weewx.cheetahgenerator)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1336, in 
> __init__
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     self._compile(source, file, compilerSettings=compilerSettings)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1637, in 
> _compile
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     keepRefToGeneratedCode=True)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 832, in 
> compile
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     raise e
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 823, in 
> compile
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     co = compile(generatedModuleCode, __file__, 'exec')
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>   File "_home_weewx_skins_Belchertown_graphs_index_html_tmpl.py", line 192
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>     self._handleCheetahInclude("page-header.inc" -->, trans=trans, 
> includeFrom="file", raw=False)
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
>                                                    ^
> Feb 14 10:45:36 localhost weewx[22817] ERROR weewx.cheetahgenerator: ****  
> SyntaxError: invalid syntax
> Feb 14 10:45:37 localhost weewx[22817] INFO weewx.cheetahgenerator: 
> Generated 9 files for report Belchertown in 3.92 seconds
> Feb 14 10:45:37 localhost weewx[22817] INFO weewx.reportengine: Copied 31 
> files to /var/www/html/weewx/belchertown
> Feb 14 10:45:42 localhost weewx[22817] INFO weeutil.rsyncupload: rsync'd 
> 47 files (770,134 bytes) in 0.45 seconds
> Feb 14 10:45:43 localhost weewx[22817] INFO weewx.restx: MQTT: Published 
> record 2020-02-14 10:45:33 CST (1581698733)
> Feb 14 10:45:53 localhost weewx[22817] INFO weewx.restx: MQTT: Published 
> record 2020-02-14 10:45:43 CST (1581698743)
>
>
> On Thursday, February 13, 2020 at 4:54:46 PM UTC-6, ed100 wrote:
>>
>> I have the Belchertown skin with MQTT running nicely after some serious 
>> help from folks here.
>> There are a bunch of fields in the weewx mariadb database that I will 
>> never use.  I did some searching to how to do this but didn't find out how. 
>> I don't want to damage things, just clean up unnecessary fields. (old 
>> habits...)
>> I did grab the extraTemp1 and use it to show the cpu temp on the weewx 
>> raspberry.
>>
>> 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/5da45465-61aa-44b1-99df-e9884d2c7204%40googlegroups.com.

Reply via email to