# Iterate over each requested reportfor report in self.config_dict['StdReport'].sections:# Ignore the [[Defaults]] sectionif report == 'Defaults':continue# See if this report is disabledenabled = to_bool(self.config_dict['StdReport'][report].get('enable', True))if not enabled:log.debug("reportengine: Report '%s' not enabled. Skipping.", report)continuelog.debug("reportengine: Running report '%s'", report)# Fetch and build the skin_dict:try:skin_dict = self._build_skin_dict(report)except SyntaxError:log.error(" **** Report ignored")continue
Gary
Just for future reference, if you get a fault like this could you provide more of the log, in particular the WeeWX startup through until the error occurs. The startup and what goes on in the lead up to the error gives a lot of useful contextual info.
Gary
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Tvwo1N14pS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1d59e7ee-da86-427c-8d2e-583c1e85f10e%40googlegroups.com.
You bet. It all looked like usual to me leading up to the error point. Thanks for letting me know.
# Now add on the [StdReport][[Defaults]] section, if present:
if 'Defaults' in self.config_dict['StdReport']:
merge_dict = copy.deepcopy(self.config_dict['StdReport']['Defaults'])
weeutil.config.merge_config(skin_dict, merge_dict)
# Inject any scalar overrides. This is for backwards compatibility. These options should now go
# under [StdReport][[Defaults]].
for scalar in self.config_dict['StdReport'].scalars:
skin_dict[scalar] = self.config_dict['StdReport'][scalar]
# Finally, inject any overrides for this specific report. Because this is the last merge, it will have the
# final say.
weeutil.config.merge_config(skin_dict, self.config_dict['StdReport'][report])