I'm convinced. Home now so set up a VM running 3.8.2 with no data in the db. Runs fine. Download user.belchertown_highchartsSearchX.highchartsDay and add a search_list_extensions option to Standard skin.conf using user.belchertown_highchartsSearchX.highchartsDay as the only SLE. Runs without issue (expected). Stop WeeWX, swap in a db with a few months of simulated data and restart WeeWX and the error occurs:
Aug 25 00:10:16 stretch21 weewx[26121]: highchartsSearchX: timespan=[2016-01 -01 00:00:00 AEST (1451570400) -> 2017-01-01 00:00:00 AEST (1483192800)] _start_ts=1535119200 _end_ts=1535205599 Aug 25 00:10:16 stretch21 weewx[26121]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator Aug 25 00:10:16 stretch21 weewx[26121]: **** start time (1535119200 ) is greater than stop time (1483192800) Aug 25 00:10:16 stretch21 weewx[26121]: **** Traceback (most recent call last): Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weewx/reportengine.py", line 239, in run Aug 25 00:10:16 stretch21 weewx[26121]: **** obj.start() Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weewx/reportengine.py", line 273, in start Aug 25 00:10:16 stretch21 weewx[26121]: **** self.run() Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 158, in run Aug 25 00:10:16 stretch21 weewx[26121]: **** ngen = self. generate(gen_dict[section_name], self.gen_ts) Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate Aug 25 00:10:16 stretch21 weewx[26121]: **** ngen += self. generate(section[subsection], gen_ts) Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate Aug 25 00:10:16 stretch21 weewx[26121]: **** ngen += self. generate(section[subsection], gen_ts) Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate Aug 25 00:10:16 stretch21 weewx[26121]: **** default_binding) Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 372, in _getSearchList Aug 25 00:10:16 stretch21 weewx[26121]: **** searchList += obj. get_extension_list(timespan, db_lookup) Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/user/belchertown_highchartsSearchX.py", line 90, in get_extension_list Aug 25 00:10:16 stretch21 weewx[26121]: **** (time_start_vt, time_stop_vt, outTemp_vt) = db_lookup().getSqlVectors(TimeSpan(_start_ts, timespan.stop), 'outTemp') Aug 25 00:10:16 stretch21 weewx[26121]: **** File "/home/weewx/bin/weeutil/weeutil.py", line 315, in __new__ Aug 25 00:10:16 stretch21 weewx[26121]: **** raise ValueError("start time (%d) is greater than stop time (%d)" % (args[0], args[1])) Aug 25 00:10:16 stretch21 weewx[26121]: **** ValueError: start time (1535119200) is greater than stop time (1483192800) Aug 25 00:10:16 stretch21 weewx[26121]: **** Generator terminated The first line of the log extract is some telemetry I put in highchartsDay to log timespan, _start_ts and _end_ts. You can see how timespan is 1 January 2016 to 1 January 2017 which is the first year span of data used by [[SummaryByYear]], the first report in the skin. Remove the SLE from skin.conf and all reports are generated without error. Add the SLE back in and the reports continue to be generated without error (expected since no historical [[SumaryByxxxxx]] reports are being generated, only the 'current' ones. Delete all the NOAA format reports and next report cycle the error is back. Like I said, I am convinced. Gary On Friday, 24 August 2018 22:57:19 UTC+10, Pat wrote: > > Interesting, but my lab system has over 3 years of data without trouble > with the generator. > > On Friday, August 24, 2018 at 8:48:33 AM UTC-4, gjr80 wrote: >> >> No, and you won't run into the situation I described unless you have >> archive data running across multiple months and you force WeeWX to >> regenerate the [[SummaryByMonth]] reports in your skin (could happen on >> [[SummaryByYear]] too if you have data spanning multiple years). >> >> Gary >> > -- 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. For more options, visit https://groups.google.com/d/optout.