Thanks Pat! phil
On Monday, December 31, 2018 at 10:15:46 PM UTC-5, Pat wrote: > > For those with Belchertown skin, if you get hit with the new year bug grab > an updated copy of the bin/user/belchertown.py file > <https://raw.githubusercontent.com/poblabs/weewx-belchertown/master/bin/user/belchertown.py> > > and place it into your bin/user folder and restart weewx. > > The bug is when there's no data populated in certain tables yet because of > the new year, which breaks the records page - thus breaking the whole skin. > > Should be fixed now! > > On Monday, December 31, 2018 at 8:00:08 PM UTC-5, Pat wrote: >> >> Starting to look now >> >> On Monday, December 31, 2018 at 7:52:55 PM UTC-5, Colin Larsen wrote: >>> >>> Ah well, if you're quick you'll fix it before it strikes there :) >>> >>> On Tue, Jan 1, 2019 at 1:48 PM Pat <p...@obrienphoto.net> wrote: >>> >>>> I'm awake! But it's 7:30pm here, not 2019 yet. Hmm... >>>> >>>> On Monday, December 31, 2018 at 6:39:02 PM UTC-5, Colin Larsen wrote: >>>>> >>>>> sqllite here >>>>> >>>>> On Tue, Jan 1, 2019 at 12:34 PM <kutz...@gmail.com> wrote: >>>>> >>>>>> Colin, >>>>>> >>>>>> Out of curiosity, are you using mySQL or sqlite? Pat tailors the SQL >>>>>> statements to the database. I'm running weeWX and the Belchertown skin >>>>>> on >>>>>> sqlite. I'm in the US Eastern timezone, so will see if the skin coughs >>>>>> up >>>>>> for me after the year roll over. >>>>>> >>>>>> phil >>>>>> >>>>>> On Monday, December 31, 2018 at 6:08:19 PM UTC-5, Colin Larsen wrote: >>>>>>> >>>>>>> Thanks Greg and HNY to you. >>>>>>> >>>>>>> Yep I just did a reboot and got a better look at the error, it >>>>>>> certainly looks like a skin problem. I'll have to wait for Pat to wake >>>>>>> up :) >>>>>>> >>>>>>> Jan 1 12:05:15 raspberrypi weewx[1004]: manager: Added record >>>>>>> 2019-01-01 12:05:00 NZDT (1546297500) to database 'weewx.sdb' >>>>>>> >>>>>>> Jan 1 12:05:15 raspberrypi weewx[1004]: manager: Added record >>>>>>> 2019-01-01 12:05:00 NZDT (1546297500) to daily summary in 'weewx.sdb' >>>>>>> >>>>>>> Jan 1 12:05:20 raspberrypi weewx[1004]: cheetahgenerator: >>>>>>> Generated 14 files for report StandardReport in 4.36 seconds >>>>>>> >>>>>>> Jan 1 12:05:25 raspberrypi weewx[1004]: imagegenerator: Generated >>>>>>> 36 images for StandardReport in 3.78 seconds >>>>>>> >>>>>>> Jan 1 12:05:25 raspberrypi weewx[1004]: copygenerator: copied 9 >>>>>>> files to /var/www/html/weewx >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: cheetahgenerator: >>>>>>> Generated 4 files for report Highcharts_Belchertown in 5.74 seconds >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: copygenerator: copied 0 >>>>>>> files to /var/www/html/weewx/belchertown >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: Belchertown Extension: >>>>>>> version 0.8.1 >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: reportengine: Caught >>>>>>> unrecoverable exception in generator >>>>>>> weewx.cheetahgenerator.CheetahGenerator >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** 'NoneType' >>>>>>> object has no attribute '__getitem__' >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** Traceback >>>>>>> (most recent call last): >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** >>>>>>> obj.start() >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** >>>>>>> self.run() >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** ngen = >>>>>>> self.generate(gen_dict[section_name], self.gen_ts) >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** ngen += >>>>>>> self.generate(section[subsection], gen_ts) >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** ngen += >>>>>>> self.generate(section[subsection], gen_ts) >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** >>>>>>> default_binding) >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in >>>>>>> _getSearchList >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** searchList >>>>>>> += obj.get_extension_list(timespan, db_lookup) >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** File >>>>>>> "/usr/share/weewx/user/belchertown.py", line 297, in get_extension_list >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** >>>>>>> year_rainiest_month_tuple >>>>>>> = (year_rainiest_month_query[1], rain_unit, 'group_rain') >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** TypeError: >>>>>>> 'NoneType' object has no attribute '__getitem__' >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: **** Generator >>>>>>> terminated >>>>>>> >>>>>>> Jan 1 12:05:30 raspberrypi weewx[1004]: copygenerator: copied 22 >>>>>>> files to /var/www/html/weewx/belchertown >>>>>>> >>>>>>> On Tue, Jan 1, 2019 at 11:52 AM Greg from Oz <ubea...@gmail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> I am in Oz and mine is OK. >>>>>>>> Probably the skin. >>>>>>>> https://weather.ubeaut.work/ >>>>>>>> >>>>>>>> On Tuesday, 1 January 2019 09:00:43 UTC+11, Colin Larsen wrote: >>>>>>>>> >>>>>>>>> Happy New Year all >>>>>>>>> >>>>>>>>> I awoke this morning (2019 here in NZ) to find this; >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: reportengine: Caught >>>>>>>>> unrecoverable exception in generator >>>>>>>>> weewx.cheetahgenerator.CheetahGenerator >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** 'NoneType' >>>>>>>>> object has no attribute '__getitem__' >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** Traceback >>>>>>>>> (most recent call last): >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** >>>>>>>>> obj.start() >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** >>>>>>>>> self.run() >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** ngen = >>>>>>>>> self.generate(gen_dict[section_name], self.gen_ts) >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** ngen >>>>>>>>> += self.generate(section[subsection], gen_ts) >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** ngen >>>>>>>>> += self.generate(section[subsection], gen_ts) >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** >>>>>>>>> default_binding) >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in >>>>>>>>> _getSearchList >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** searchList >>>>>>>>> += obj.get_extension_list(timespan, db_lookup) >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** File >>>>>>>>> "/usr/share/weewx/user/belchertown.py", line 297, in >>>>>>>>> get_extension_list >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** >>>>>>>>> year_rainiest_month_tuple >>>>>>>>> = (year_rainiest_month_query[1], rain_unit, 'group_rain') >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** TypeError: >>>>>>>>> 'NoneType' object has no attribute '__getitem__' >>>>>>>>> >>>>>>>>> Jan 1 10:55:29 raspberrypi weewx[9736]: **** Generator >>>>>>>>> terminated >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> None of the year/month/day records appear to have rolled over and >>>>>>>>> the 2019 NOAA reports haven't generated. >>>>>>>>> >>>>>>>>> >>>>>>>>> Not quite sure where the hiccup lays, Weewx or skin? >>>>>>>>> >>>>>>>>> >>>>>>>>> Cheers >>>>>>>>> >>>>>>>>> Colin >>>>>>>>> >>>>>>>> -- >>>>>>>> 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. >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> -- >>>>>> 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. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> -- >>>> 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. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- 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.