I downloaded weewx_data.json.tmpl and I am using the beta.
Restarted weewx with the new .tmpl and got following error:
Feb 14 12:50:30 localhost weewx[24717] INFO weewx.restx: MQTT: Published
record 2020-02-14 12:50:00 CST (1581706200)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator:
Generate failed with exception '<class 'SyntaxError'>'
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
Ignoring template /home/weewx/skins/Belchertown/graphs/index.html.tmpl
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
Reason: invalid syntax
(_home_weewx_skins_Belchertown_graphs_index_html_tmpl.py, line 192)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
Traceback (most recent call last):
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 828, in
compile
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
source, file, generatedModuleCode, exception=e)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 2044, in
genParserErrorFromPythonException
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
reader = SourceReader(source, filename=filename)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/usr/lib/python3/dist-packages/Cheetah/SourceReader.py", line 19,
in __init__
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
self._srcLen = len(src)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
TypeError: object of type 'NoneType' has no len()
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
During handling of the above exception, another exception occurred:
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
Traceback (most recent call last):
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
filtersLib=weewx.cheetahgenerator)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1336, in
__init__
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
self._compile(source, file, compilerSettings=compilerSettings)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1637, in
_compile
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
keepRefToGeneratedCode=True)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 832, in
compile
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
raise e
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 823, in
compile
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
co = compile(generatedModuleCode, __file__, 'exec')
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
File "_home_weewx_skins_Belchertown_graphs_index_html_tmpl.py", line 192
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
self._handleCheetahInclude("page-header.inc" -->, trans=trans,
includeFrom="file", raw=False)
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
^
Feb 14 12:50:31 localhost weewx[24717] ERROR weewx.cheetahgenerator: ****
SyntaxError: invalid syntax
Feb 14 12:50:32 localhost weewx[24717] INFO weewx.cheetahgenerator:
Generated 10 files for report Belchertown in 1.87 seconds
Feb 14 12:50:32 localhost weewx[24717] INFO weewx.reportengine: Copied 2
files to /var/www/html/weewx/belchertown
Feb 14 12:50:36 localhost weewx[24717] INFO weeutil.rsyncupload: rsync'd 18
files (617,503 bytes) in 0.34 seconds
Feb 14 12:50:40 localhost weewx[24717] INFO weewx.restx: MQTT: Published
record 2020-02-14 12:50:30 CST (1581706230)
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/7236c4be-32d0-45bc-b2ed-d2009a6016b5%40googlegroups.com.