wee_reports[14046]: cheetahgenerator: Generate failed with exception '<class 'weewx.ViolatedPrecondition'>'
wee_reports[14046]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Smartphone/temp.html.tmpl
wee_reports[14046]: cheetahgenerator: **** Reason: Invalid aggregation type 'minmax'
wee_reports[14046]: **** Traceback (most recent call last):
wee_reports[14046]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 332, in generate
wee_reports[14046]: **** fd.write(str(compiled_template))
wee_reports[14046]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1045, in __str__
wee_reports[14046]: **** rc = getattr(self, mainMethName)()
wee_reports[14046]: **** File "_home_weewx_skins_Smartphone_temp_html_tmpl.py", line 151, in respond
wee_reports[14046]: **** File "/home/weewx/bin/weewx/tags.py", line 329, in __getattr__
wee_reports[14046]: **** return self._do_query(aggregate_type)
wee_reports[14046]: **** File "/home/weewx/bin/weewx/tags.py", line 343, in _do_query
wee_reports[14046]: **** val=val, **self.option_dict)
wee_reports[14046]: **** File "/home/weewx/bin/weewx/wxmanager.py", line 60, in getAggregate
wee_reports[14046]: **** return weewx.manager.DaySummaryManager.getAggregate(self, timespan, obs_type, aggregateType, **option_dict)
wee_reports[14046]: **** File "/home/weewx/bin/weewx/manager.py", line 1268, in getAggregate
wee_reports[14046]: **** **option_dict)
wee_reports[14046]: **** File "/home/weewx/bin/weewx/manager.py", line 450, in getAggregate
wee_reports[14046]: **** raise weewx.ViolatedPrecondition("Invalid aggregation type '%s'" % aggregate_type)
wee_reports[14046]: **** ViolatedPrecondition: Invalid aggregation type 'minmax'
Pity. This is very unfortunate missing crucial feature. These two really should exist in any good meteo program.
Then again, why they exist in standard form which is useless to describe graphs?
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/26FB5345-2EA6-41AB-A6A7-09CD1FECBCA3%40gmail.com.
[ $(date +"%H:%M") == "00:00" ] && create_templates || skip
Yup. An extremely ugly fix to a problem for which I claim should not have existed. Works. I just hope it is not doing to a database something.
Yup. An extremely ugly fix to a problem for which I claim should not have existed. Works. I just hope it is not doing to a database something.
Of course, the proper solution for me would be to fix it in a source code to achieve seamless consistent use of maxmin and minmax. Should I continue using it, that will have to wait until I learn Phyton. For now, I am unable to reduce graph margins.