Evening all, >From the http://www.weewx.com/docs/customizing.htm#aggregation_types page I believe the following should work for months with equivalents working for weeks and years.
$month.rain.sum_ge(1.0) and thus provide me with a value comparable to the MET Office Climate Averages. https://www.metoffice.gov.uk/research/climate/maps-and-data but at the moment I'll getting an error: Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/tags.py", line 326, in sum_ge Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** return self._do_query('sum_ge', val=val) Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/tags.py", line 364, in _do_query Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** db_manager, val=val, **self.option_dict) Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/xtypes.py", line 102, in get_aggregate Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** **option_dict) Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/xtypes.py", line 422, in get_aggregate Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** if len(val) == 2: Sep 28 20:05:44 pecan-ubuntu wee_reports[30045] ERROR weewx.cheetahgenerator: **** TypeError: object of type 'float' has no len() and a different error if I wrap 1.0 in quotes. How am I getting this wrong? Chris -- 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/13789d5f-eb48-4309-89f8-3af3e8759adbn%40googlegroups.com.
